QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#175901#6416. Classical Scheduling ProblemHuangHanShengCompile Error//C++202.0kb2023-09-11 04:40:282023-09-11 04:40:28

Details

answer.code:1:9: error: ‘bits’ was not declared in this scope
    1 | include<bits/stdc++.h>
      |         ^~~~
answer.code:1:14: error: ‘stdc’ was not declared in this scope; did you mean ‘std’?
    1 | include<bits/stdc++.h>
      |              ^~~~
      |              std
answer.code:1:9: error: ‘bits’ was not declared in this scope
    1 | include<bits/stdc++.h>
      |         ^~~~
answer.code:1:14: error: ‘stdc’ was not declared in this scope; did you mean ‘std’?
    1 | include<bits/stdc++.h>
      |              ^~~~
      |              std
answer.code:1:9: error: ‘bits’ was not declared in this scope
    1 | include<bits/stdc++.h>
      |         ^~~~
answer.code:1:14: error: ‘stdc’ was not declared in this scope; did you mean ‘std’?
    1 | include<bits/stdc++.h>
      |              ^~~~
      |              std
answer.code:1:9: error: ‘bits’ was not declared in this scope
    1 | include<bits/stdc++.h>
      |         ^~~~
answer.code:1:14: error: ‘stdc’ was not declared in this scope; did you mean ‘std’?
    1 | include<bits/stdc++.h>
      |              ^~~~
      |              std
answer.code:1:9: error: ‘bits’ was not declared in this scope
    1 | include<bits/stdc++.h>
      |         ^~~~
answer.code:1:14: error: ‘stdc’ was not declared in this scope; did you mean ‘std’?
    1 | include<bits/stdc++.h>
      |              ^~~~
      |              std
answer.code:1:9: error: ‘bits’ was not declared in this scope
    1 | include<bits/stdc++.h>
      |         ^~~~
answer.code:1:14: error: ‘stdc’ was not declared in this scope; did you mean ‘std’?
    1 | include<bits/stdc++.h>
      |              ^~~~
      |              std
answer.code:1:9: error: ‘bits’ was not declared in this scope
    1 | include<bits/stdc++.h>
      |         ^~~~
answer.code:1:14: error: ‘stdc’ was not declared in this scope; did you mean ‘std’?
    1 | include<bits/stdc++.h>
      |              ^~~~
      |              std
answer.code:1:9: error: ‘bits’ was not declared in this scope
    1 | include<bits/stdc++.h>
      |         ^~~~
answer.code:1:14: error: ‘stdc’ was not declared in this scope; did you mean ‘std’?
    1 | include<bits/stdc++.h>
      |              ^~~~
      |              std
answer.code:1:9: error: ‘bits’ was not declared in this scope
    1 | include<bits/stdc++.h>
      |         ^~~~
answer.code:1:14: error: ‘stdc’ was not declared in this scope; did you mean ‘std’?
    1 | include<bits/stdc++.h>
      |              ^~~~
      |              std
answer.code:1:1: error: ‘include’ does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
answer.code:9:1: error: ‘vector’ does not name a type
    9 | vector<int> Id[N];
      | ^~~~~~
answer.code: In function ‘int CK(int)’:
answer.code:16:19: error: ‘Id’ was not declared in this scope
   16 |         for(int j:Id[i]) {
      |                   ^~
answer.code: In function ‘void GA(int)’:
answer.code:31:19: error: ‘Id’ was not declared in this scope
   31 |         for(int j:Id[i]) {
      |                   ^~
answer.code:38:13: error: ‘printf’ was not declared in this scope
   38 |             printf("%d ",i);
      |             ^~~~~~
answer.code:1:1: note: ‘printf’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’?
  +++ |+#include <cstdio>
    1 | include<bits/stdc++.h>
answer.code: In function ‘void Solve()’:
answer.code:47:13: error: ‘scanf’ was not declared in this scope
   47 |     int i,j;scanf("%d%lld",&n,&t);for(i=1;i<=n;i++) scanf("%d%d",&A[i],&B[i]),C[i]=i;
      |             ^~~~~
answer.code:48:5: error: ‘sort’ was not declared in this scope; did you mean ‘short’?
   48 |     sort(C+1,C+n+1,cmp);for(i=1;i<=n;i++) Pl[C[i]]=i;
      |     ^~~~
      |     short
answer.code:49:23: error: ‘Id’ was not declared in this scope
   49 |     for(i=1;i<=n;i++) Id[i].clear();for(i=1;i<=n;i++) Id[B[i]].PB(i);
      |                       ^~
answer.code:49:55: error: ‘Id’ was not declared in this scope
   49 |     for(i=1;i<=n;i++) Id[i].clear();for(i=1;i<=n;i++) Id[B[i]].PB(i);
      |                                                       ^~
answer.code:51:5: error: ‘printf’ was not declared in this scope
   51 |     printf("%d\n",l);
      |     ^~~~~~
answer.code:51:5: note: ‘printf’ is defined in header ‘<cstdio>’; did you forget to ‘#include <cstdio>’?
answer.code: In function ‘int main()’:
answer.code:56:11: error: ‘scanf’ was not declared in this scope
   56 |     int t;scanf("%d",&t);while(t--) Solve();
      |           ^~~~~