QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#311286 | #4829. Mark on a Graph | dieselhuang | Compile Error | / | / | C++14 | 82b | 2024-01-22 09:55:42 | 2024-01-22 09:55:43 |
Judging History
answer
#import<time.h>
main(){int t=time(0);puts(t&1?"mark\n0":"ok");while(time(0)==t);}
详细
answer.code:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated] 1 | #import<time.h> | ^~~~~~ answer.code:2:1: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type] 2 | main(){int t=time(0);puts(t&1?"mark\n0":"ok");while(time(0)==t);} | ^~~~ answer.code: In function ‘int main()’: answer.code:2:22: error: ‘puts’ was not declared in this scope 2 | main(){int t=time(0);puts(t&1?"mark\n0":"ok");while(time(0)==t);} | ^~~~