QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#664300 | #8776. Not Another Constructive! | ucup-team2454# | Compile Error | / | / | C++20 | 3.8kb | 2024-10-21 20:06:53 | 2024-10-21 20:06:54 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code: In function ‘int main()’: answer.code:35:5: error: ‘scanf’ was not declared in this scope 35 | scanf("%d%d",&n,&k); | ^~~~~ answer.code:38:19: error: ‘puts’ was not declared in this scope 38 | if(n<3)return puts("-1"),0; | ^~~~ answer.code:92:28: error: ‘printf’ was not declared in this scope 92 | if(t2+t1>T)printf("MyGO\n"); | ^~~~~~ answer.code:1:1: note: ‘printf’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’? +++ |+#include <cstdio> 1 | answer.code:93:30: error: ‘printf’ was not declared in this scope 93 | if(t1+t0>100)printf("MyGO\n"); | ^~~~~~ answer.code:93:30: note: ‘printf’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’? answer.code:123:17: error: ‘puts’ was not declared in this scope 123 | puts(ans+1); | ^~~~ answer.code:128:5: error: ‘puts’ was not declared in this scope 128 | puts("-1"); | ^~~~