제출 #133792

#제출 시각아이디문제언어결과실행 시간메모리
133792Runtime_error_저울 (IOI15_scales)C++14
0 / 100
3 ms504 KiB
#include "scales.h" #include <bits/stdc++.h> using namespace std; int mn = 0; void init(int T) { } bool cmp(int x,int y){ int tmp = getHeaviest(mn,x,y); return (tmp == y); } void orderCoins() { int W[] = {1, 2, 3, 4, 5, 6}; mn = getLightest( 1 , getLightest(1,2,3) , getLightest(4,5,6) ); for(int i=1;i<6;i++) if(W[i] == mn) swap(W[i],W[0]); sort(W+1,W+6,cmp); answer(W); }

컴파일 시 표준 에러 (stderr) 메시지

scales.cpp: In function 'void init(int)':
scales.cpp:6:15: warning: unused parameter 'T' [-Wunused-parameter]
 void init(int T) {
               ^
#Verdict Execution timeMemoryGrader output
Fetching results...