#include <iostream>
#include <utility>
using namespace std;
int main()
{
pair<int,string>mypair;
int a;string b;
cin>>a>>b;
mypair.first =a;
mypair.second =b ;
cout << mypair.first << " " ;
cout << mypair.second << endl ;
return 0;
}
#include <utility>
using namespace std;
int main()
{
pair<int,string>mypair;
int a;string b;
cin>>a>>b;
mypair.first =a;
mypair.second =b ;
cout << mypair.first << " " ;
cout << mypair.second << endl ;
return 0;
}
to 100% evaluation ==
ReplyDeletejust make a extra space between angular bracket and mypar like this-
pair mypair;