Problem | greeting |
---|---|
User | cobnet |
Submission Time | 2024-02-28 16:54:06 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
greeting.cpp: In function ‘int main()’:
greeting.cpp:3:1: error: ‘string’ was not declared in this scope
3 | string NIANNIANYOUYU;scanf("%d", &NIANNIANYOUYU);
| ^~~~~~
greeting.cpp:3:1: note: suggested alternatives:
In file included from /usr/include/c++/9/string:39,
from greeting.cpp:1:
/usr/include/c++/9/bits/stringfwd.h:79:33: note: ‘std::string’
79 | typedef basic_string<char> string;
| ^~~~~~
In file included from greeting.cpp:1:
/usr/include/c++/9/string:67:11: note: ‘std::pmr::string’
67 | using string = basic_string<char>;
| ^~~~~~
greeting.cpp:3:35: error: ‘NIANNIANYOUYU’ was not declared in this scope
3 | string NIANNIANYOUYU;scanf("%d", &NIANNIANYOUYU);
| ^~~~~~~~~~~~~