Problem nycheer
User personjs
Submission Time 2025-01-16 16:33:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

nycheer.cpp: In function ‘int main()’:
nycheer.cpp:6:2: error: ‘string’ was not declared in this scope
6 | string[4] thing = {"", "Hey", "Ho", "Nanyang"};
| ^~~~~~
nycheer.cpp:6:2: note: suggested alternatives:
In file included from /usr/include/c++/9/string:39,
from nycheer.cpp:2:
/usr/include/c++/9/bits/stringfwd.h:79:33: note: ‘std::string’
79 | typedef basic_string<char> string;
| ^~~~~~
In file included from nycheer.cpp:2:
/usr/include/c++/9/string:67:11: note: ‘std::pmr::string’
67 | using string = basic_string<char>;
| ^~~~~~
nycheer.cpp:8:19: error: ‘thing’ was not declared in this scope
8 | printf("%s\n%s", thing[a], thing[b]);
| ^~~~~