编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#17742 | #2008. ikun play genshin | Compile Error | 0 | 0 ms | 0 K | C++ / 222 B | 192024220168 | 2024-10-19 13:53:30 |
int
编译信息
/sandbox/1/a.cpp: In function 'int main()':
/sandbox/1/a.cpp:8:1: error: 'scanf' was not declared in this scope
8 | scanf("%d\n",&x);
| ^~~~~
/sandbox/1/a.cpp:16:5: error: 'printf' was not declared in this scope
16 | printf("%d",n);
| ^~~~~~
/sandbox/1/a.cpp:3:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
2 | #include <string.h>
+++ |+#include <cstdio>
3 | int main(){
/sandbox/1/a.cpp:20:2: error: 'printf' was not declared in this scope
20 | printf("-1");
| ^~~~~~
/sandbox/1/a.cpp:20:2: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?