Main.cpp:2:7: error: expected nested-name-specifier before ‘namespase’
2 | using namespase std;
| ^~~~~~~~~
Main.cpp: In function ‘int main()’:
Main.cpp:4:5: error: ‘string’ was not declared in this scope
4 | string s;
| ^~~~~~
Main.cpp:4:5: note: suggested alternatives:
In file included from /usr/include/c++/13/string:41,
from /usr/include/c++/13/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:52,
from Main.cpp:1:
/usr/include/c++/13/bits/stringfwd.h:77:33: note: ‘std::string’
77 | typedef basic_string<char> string;
| ^~~~~~
/usr/include/c++/13/string:66:11: note: ‘std::pmr::string’
66 | using string = basic_string<char>;
| ^~~~~~
Main.cpp:6:5: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
6 | cin >> s >> n;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:146:
/usr/include/c++/13/iostream:62:18: note: ‘std::cin’ declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
Main.cpp:6:12: error: ‘s’ was not declared in this scope
6 | cin >> s >> n;
| ^
Main.cpp:7:5: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
7 | cout << char('a' + n - 1) << ":" << s << endl;
| ^~~~
| std::cout
/usr/include/c++/13/iostream:63:18: note: ‘std::cout’ declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
Main.cpp:7:46: error: ‘endl’ was not declared in this scope; did you mean ‘std::endl’?
7 | cout << char('a' + n - 1) << ":" << s << endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/13/bits/unique_ptr.h:42,
from /usr/include/c++/13/memory:78,
from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:56:
/usr/include/c++/13/ostream:735:5: note: ‘std::endl’ declared here
735 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~