Problem samelength
User Ski3r3n
Submission Time 2023-07-07 16:18:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

samelength.cpp: In function ‘int main(int, char**)’:
samelength.cpp:7:2: error: ‘string’ was not declared in this scope
7 | string t (308, '\0');
| ^~~~~~
samelength.cpp:7:2: note: suggested alternatives:
In file included from /usr/include/c++/9/string:39,
from samelength.cpp:2:
/usr/include/c++/9/bits/stringfwd.h:79:33: note: ‘std::string’
79 | typedef basic_string<char> string;
| ^~~~~~
In file included from samelength.cpp:2:
/usr/include/c++/9/string:67:11: note: ‘std::pmr::string’
67 | using string = basic_string<char>;
| ^~~~~~
samelength.cpp:8:2: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
8 | cout << t;
| ^~~~
| std::cout
In file included from samelength.cpp:3:
/usr/include/c++/9/iostream:61:18: note: ‘std::cout’ declared here
61 | extern ostream c