prog.cpp: In function 'int main()':
prog.cpp:35:22: error: 'p' does not name a type
pair<int,int> p=new p[5];
^
prog.cpp:37:9: error: no match for 'operator[]' (operand types are 'std::pair<int, int>' and 'int')
cin>>p[i].first>>p[i].second;
^
prog.cpp:37:21: error: no match for 'operator[]' (operand types are 'std::pair<int, int>' and 'int')
cin>>p[i].first>>p[i].second;
^
prog.cpp:38:18: error: cannot convert 'std::pair<int, int>' to 'std::pair<int, int>*' for argument '1' to 'void qsortfirst(std::pair<int, int>*, int, int)'
qsortfirst(p,0,5);
^
prog.cpp:40:10: error: no match for 'operator[]' (operand types are 'std::pair<int, int>' and 'int')
cout<<p[i].first<<" "<<p[i].second;
^
prog.cpp:40:27: error: no match for 'operator[]' (operand types are 'std::pair<int, int>' and 'int')
cout<<p[i].first<<" "<<p[i].second;
^