Problem | greeting |
---|---|
User | cobnet |
Submission Time | 2024-02-28 16:53:40 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
greeting.cpp: In function ‘int main()’:
greeting.cpp:2:6: error: ‘string’ is not a member of ‘std’
2 | std::string NIANNIANYOUYU;std::scanf("%d", &NIANNIANYOUYU);
| ^~~~~~
greeting.cpp:1:1: note: ‘std::string’ is defined in header ‘<string>’; did you forget to ‘#include <string>’?
+++ |+#include <string>
1 | int main(){
greeting.cpp:2:32: error: ‘scanf’ is not a member of ‘std’
2 | std::string NIANNIANYOUYU;std::scanf("%d", &NIANNIANYOUYU);
| ^~~~~
greeting.cpp:2:45: error: ‘NIANNIANYOUYU’ was not declared in this scope
2 | std::string NIANNIANYOUYU;std::scanf("%d", &NIANNIANYOUYU);
| ^~~~~~~~~~~~~
greeting.cpp:3:6: error: ‘printf’ is not a member of ‘std’
3 | std::printf(NIANNIANYOUYU + " xin nian kuai le!")}
| ^~~~~~