QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#311664#4829. Mark on a GraphZhangYiDeCompile Error//C++1480b2024-01-22 17:00:462024-01-22 17:00:47

詳細信息

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 0":"ok");while(t==time(0));}
      | ^~~~
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 0":"ok");while(t==time(0));}
      |                      ^~~~