Submission #358224

#TimeUsernameProblemLanguageResultExecution timeMemory
358224juggernautScales (IOI15_scales)C++14
Compilation error
0 ms0 KiB
#include"scales.h" #include<bits/stdc++.h> using namespace std; void init(int T){} void ordercoins(){ int a=getLightest(1,2,3); int f=getHeaviest(4,5,6); int b=1+(a<=1),c=2+(a<=2); int d=4+(f<=4),e=5+(f<=5); int aa=getLightest(a,d,e); int ff=getHeaviest(f,b,c); if(aa==d)swap(a,d); if(aa==e)swap(a,e); if(ff==b)swap(f,b); if(ff==c)swap(f,c); int bb=getLightest(b,c,d); if(bb==c)swap(b,c); if(bb==d)swap(b,d); bb=getLightest(b,d,e); if(bb==e)swap(b,e); int ee=getHeaviest(c,d,e); if(ee==c)swap(e,c); if(ee==d)swap(e,d); int cc=getLightest(c,d,e); if(cc==d)swap(c,d); int W[]={a,b,c,d,e,f}; answer(W); }

Compilation message (stderr)

scales.cpp: In function 'void init(int)':
scales.cpp:4:15: warning: unused parameter 'T' [-Wunused-parameter]
    4 | void init(int T){}
      |           ~~~~^
/tmp/ccc3hRGZ.o: In function `main':
grader.c:(.text.startup+0xf2): undefined reference to `orderCoins'
collect2: error: ld returned 1 exit status