제출 #1011759

#제출 시각아이디문제언어결과실행 시간메모리
1011759uranhishigHotter Colder (IOI10_hottercolder)C++14
0 / 100
2751 ms262144 KiB
#include <bits/stdc++.h> #include "grader.h" using namespace std; int Guess(int G); int HC(int n){ int q = 0, i; int w[501]; bool x = true; bool xx = true; for(int i = 1; i <= 500; i++){ w[i] = Guess(i); if(w[i] == -1){ if(xx){ q = i; xx = false; } x = false; } } if(x){ return 500; } else{ return q - 1; } }

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

hottercolder.cpp: In function 'int HC(int)':
hottercolder.cpp:8:13: warning: unused variable 'i' [-Wunused-variable]
    8 |  int q = 0, i;
      |             ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...