QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#664300#8776. Not Another Constructive!ucup-team2454#Compile Error//C++203.8kb2024-10-21 20:06:532024-10-21 20:06:54

Details

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