QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#311671#4829. Mark on a GraphZhaoZiLongCompile Error//C1181b2024-01-22 17:06:372024-01-22 17:06:37

Details

answer.code:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
 #import<time.h>
  ^~~~~~
answer.code:2:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
 main(){int t(time(0));puts(t&1?"mark 0":"ok");while(t==time(0));}
 ^~~~
answer.code: In function ‘main’:
answer.code:2:14: error: expected declaration specifiers or ‘...’ before ‘time’
 main(){int t(time(0));puts(t&1?"mark 0":"ok");while(t==time(0));}
              ^~~~
answer.code:2:23: warning: implicit declaration of function ‘puts’ [-Wimplicit-function-declaration]
 main(){int t(time(0));puts(t&1?"mark 0":"ok");while(t==time(0));}
                       ^~~~
answer.code:2:28: error: ‘t’ undeclared (first use in this function); did you mean ‘tm’?
 main(){int t(time(0));puts(t&1?"mark 0":"ok");while(t==time(0));}
                            ^
                            tm
answer.code:2:28: note: each undeclared identifier is reported only once for each function it appears in