prog.cpp: In function ‘void pairSum(int*, int, int)’:
prog.cpp:8:2: error: ‘unordered_map’ was not declared in this scope
unordered_map<int,int>m;
^~~~~~~~~~~~~
prog.cpp:8:2: note: suggested alternative:
In file included from /usr/include/c++/8/unordered_map:47,
from prog.cpp:1:
/usr/include/c++/8/bits/unordered_map.h:102:11: note: ‘std::unordered_map’
class unordered_map
^~~~~~~~~~~~~
prog.cpp:8:16: error: expected primary-expression before ‘int’
unordered_map<int,int>m;
^~~
prog.cpp:12:12: error: ‘m’ was not declared in this scope
if(m.find(rem)!=m.end()){
^
prog.cpp:16:21: error: ‘cout’ was not declared in this scope
cout<<rem<<" "<<input[i]<<endl;
^~~~
prog.cpp:16:21: note: suggested alternative: ‘count’
cout<<rem<<" "<<input[i]<<endl;
^~~~
count
prog.cpp:16:47: error: ‘endl’ was not declared in this scope
cout<<rem<<" "<<input[i]<<endl;
^~~~
prog.cpp:16:47: note: suggested alternative: ‘enum’
cout<<rem<<" "<<input[i]<<endl;
^~~~
enum
prog.cpp:19:21: error: ‘cout’ was not declared in this scope
cout<<input[i]<<" "<<rem<<endl;
^~~~
prog.cpp:19:21: note: suggested alternative: ‘count’
cout<<input[i]<<" "<<rem<<endl;
^~~~
count
prog.cpp:19:47: error: ‘endl’ was not declared in this scope
cout<<input[i]<<" "<<rem<<endl;
^~~~
prog.cpp:19:47: note: suggested alternative: ‘enum’
cout<<input[i]<<" "<<rem<<endl;
^~~~
enum
prog.cpp:23:9: error: ‘m’ was not declared in this scope
m[input[i]]++;
^
prog.cpp:25:5: error: ‘cout’ was not declared in this scope
cout<<endl;
^~~~
prog.cpp:25:11: error: ‘endl’ was not declared in this scope
cout<<endl;
^~~~
prog.cpp:25:11: note: suggested alternative: ‘enum’
cout<<endl;
^~~~
enum