Submission #1011746

#TimeUsernameProblemLanguageResultExecution timeMemory
1011746uranhishigHotter Colder (IOI10_hottercolder)C++14
0 / 100
151 ms16236 KiB
#include <bits/stdc++.h>
using namespace std;

int Guess(int G);
 
//int run(int L, int R) {
//    if(L == R){
//    	return 1;
//	}
//}

int HC(int n){
	int q = 0, i;
	bool x = true;
	bool xx = true;
   for(int i = 1; i <= 500; i++){
   		if(Guess(i) == -1){
   			if(xx){
   				q = i;
   				xx = false;
			   }
   				x = false;
		   }
   }
   if(x){
   		cout << "500" << endl;
   }
   else{
   	   cout << q << endl;
   }

}

Compilation message (stderr)

hottercolder.cpp: In function 'int HC(int)':
hottercolder.cpp:13:13: warning: unused variable 'i' [-Wunused-variable]
   13 |  int q = 0, i;
      |             ^
hottercolder.cpp:32:1: warning: no return statement in function returning non-void [-Wreturn-type]
   32 | }
      | ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...