Main.cc:2:7: error: expected nested-name-specifier before ‘anmespace’ using anmespace std; ^~~~~~~~~ Main.cc: In function ‘int main()’: Main.cc:10:2: error: ‘cin’ was not declared in this scope cin>>m>>n; ^~~ Main.cc:10:2: note: suggested alternative: In file included from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:75:0, from Main.cc:1: /usr/include/c++/7/iostream:60:18: note: ‘std::cin’ extern istream cin; /// Linked to standard input ^~~ Main.cc:13:8: error: ‘c’ was not declared in this scope cin>>c[i]>>f[i]; ^ Main.cc:15:7: error: ‘a’ was not declared in this scope sort(a+1,a+1+n,cmp); ^ Main.cc:15:2: error: ‘sort’ was not declared in this scope sort(a+1,a+1+n,cmp); ^~~~ Main.cc:15:2: note: suggested alternative: In file included from /usr/include/c++/7/algorithm:62:0, from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:65, from Main.cc:1: /usr/include/c++/7/bits/stl_algo.h:4856:5: note: ‘std::sort’ sort(_RandomAccessIterator __first, _RandomAccessIterator __last, ^~~~ Main.cc:18:8: error: ‘c’ was not declared in this scope rpg+=c[i]; ^ Main.cc:21:2: error: ‘cout’ was not declared in this scope cout<