Submission #65207

#TimeUsernameProblemLanguageResultExecution timeMemory
65207kylych03Scales (IOI15_scales)C++14
Compilation error
0 ms0 KiB
//#include "scales.h" #include "grader.cpp" //#include <bits/stdc++.h> using namespace std; void init(int T) { /* ... */ //orderCoins(); } void orderCoins() { /* ... */ int W[] = {1, 2, 0, 0, 5, 6}; int a=getMedian(1,2,3); int b=getHeaviest(1,2,3); int c=getLightest(1,2,3); int a1=getMedian(4,5,6); int b1=getHeaviest(4,5,6); int c1=getLightest(4,5,6); W[0]=getLightest(a,b,a1); W[5]=getHeaviest(c,c1,b); if(W[0]==a) W[1]=getLightest(c,b,a1); else W[1]=getLightest(a,b,b1); if(W[5]==c) W[4]=getHeaviest(a,c1,b); else W[4]=getHeaviest(b,c,b1); int ar[1000]; for(int i=1;i<=6;i++) ar[i]=0; for(int i=0;i<6;i++) ar[W[i]]=1; a=0; for(int i=1;i<=6;i++) if(ar[i]==0){ if(a==0) a=i; else b=i; } W[3]=getHeaviest(a,W[0],b); if(W[3]==a) W[2]=b; else W[2]=a; answer(W); }

Compilation message (stderr)

In file included from grader.c:2:0:
graderlib.c: In function 'void answer(int*)':
graderlib.c:53:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if (_ghksjhdfkae19ga_ > 1) 
     ^~
graderlib.c:56:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  for (i = 0; i < 6; i++) {
  ^~~
scales.cpp:2:10: fatal error: grader.cpp: No such file or directory
 #include "grader.cpp"
          ^~~~~~~~~~~~
compilation terminated.