0_0_39815564_31040.cpp:6:7: error: expected nested-name-specifier before 'nampspace'
6 | using nampspace std;
| ^~~~~~~~~
0_0_39815564_31040.cpp: In function 'int main()':
0_0_39815564_31040.cpp:8:9: error: 'ios' has not been declared
8 | ios::sync_with_stdio(false);
| ^~~
0_0_39815564_31040.cpp:9:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
9 | cin.tie(NULL);
| ^~~
| std::cin
In file included from 0_0_39815564_31040.cpp:1:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
0_0_39815564_31040.cpp:10:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
10 | cout.tie(NULL);
| ^~~~
| std::cout
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
0_0_39815564_31040.cpp:13:25: error: 'set' was not declared in this scope
13 | map<int,set<int> >mp;
| ^~~
0_0_39815564_31040.cpp:13:25: note: suggested alternatives:
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/set:63,
from 0_0_39815564_31040.cpp:4:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_set.h:94:11: note: 'std::set'
94 | class set
| ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/set:80:13: note: 'std::pmr::set'
80 | using set = std::set<_Key, _Cmp, polymorphic_allocator<_Key>>;
| ^~~
0_0_39815564_31040.cpp:13:17: error: 'map' was not declared in this scope
13 | map<int,set<int> >mp;
| ^~~
0_0_39815564_31040.cpp:13:17: note: suggested alternatives:
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/map:63,
from 0_0_39815564_31040.cpp:3:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_map.h:100:11: note: 'std::map'
100 | class map
| ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/map:80:13: note: 'std::pmr::map'
80 | using map
| ^~~
0_0_39815564_31040.cpp:13:21: error: expected primary-expression before 'int'
13 | map<int,set<int> >mp;
| ^~~
0_0_39815564_31040.cpp:14:21: error: expected primary-expression before 'int'
14 | set<int>::iterator it;
| ^~~
0_0_39815564_31040.cpp:17:25: error: 'mp' was not declared in this scope; did you mean 'm'?
17 | mp[k].insert(i);
| ^~
| m
0_0_39815564_31040.cpp:21:28: error: 'mp' was not declared in this scope; did you mean 'm'?
21 | if(mp[k].empty()) puts("-1");
| ^~
| m
0_0_39815564_31040.cpp:23:33: error: 'it' was not declared in this scope; did you mean 'i'?
23 | it=mp[k].begin();
| ^~
| i
0_0_39815564_31040.cpp:24:44: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
24 | cout<<*it<<endl;
| ^~~~
| std::endl
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/iostream:41:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ostream:735:5: note: 'std::endl' declared here
735 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|