QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#311976#4829. Mark on a GraphMaverikCompile Error//C++2381b2024-01-23 06:41:272024-01-23 06:41:28

Judging History

你现在查看的是最新测评结果

  • [2024-01-23 06:41:28]
  • 评测
  • [2024-01-23 06:41:27]
  • 提交

answer

#import<time.h>
main(){int t=time(0);puts(t&1?"mark 0":"ok");while(t==time(0));}

Details

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));}
      |                      ^~~~