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