Problem typoswap
User Verwene
Submission Time 2026-03-07 10:10:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

typoswap.cpp:2:7: error: expected nested-name-specifier before ‘name’
2 | using name space std;
| ^~~~
typoswap.cpp: In function ‘int main()’:
typoswap.cpp:4:2: error: ‘string’ was not declared in this scope
4 | string A,B
| ^~~~~~
typoswap.cpp:4:2: note: suggested alternatives:
In file included from /usr/include/c++/9/iosfwd:39,
from /usr/include/c++/9/ios:38,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from typoswap.cpp:1:
/usr/include/c++/9/bits/stringfwd.h:79:33: note: ‘std::string’
79 | typedef basic_string<char> string;
| ^~~~~~
In file included from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/ostre