Submission #345981

# Submission time Handle Problem Language Result Execution time Memory
345981 2021-01-08T20:24:49 Z ahmet Easter Eggs (info1cup17_eastereggs) C++14
6 / 100
2 ms 516 KB
#include <bits/stdc++.h>
#include "grader.h"
using namespace std;
#define ref(a,b,c) for(int (a)=(b);(a)<=(c);++(a))
#define rep(a,b) for(int (a)=0;(a)<(b);++(a))
#define ll long long
#define pb push_back
#define mp make_pair
 
int findEgg (int N, vector < pair < int, int > > bridges)
{
	for(int i=1;i<=N;++i){
      vector <int> tmp;
      tmp.pb(i);
		if(query(tmp))return i;
	}
}

Compilation message

eastereggs.cpp: In function 'int findEgg(int, std::vector<std::pair<int, int> >)':
eastereggs.cpp:17:1: warning: control reaches end of non-void function [-Wreturn-type]
   17 | }
      | ^
# Verdict Execution time Memory Grader output
1 Partially correct 2 ms 364 KB Number of queries: 16
2 Partially correct 2 ms 364 KB Number of queries: 16
3 Partially correct 1 ms 364 KB Number of queries: 16
4 Partially correct 2 ms 364 KB Number of queries: 16
# Verdict Execution time Memory Grader output
1 Runtime error 2 ms 512 KB Execution killed with signal 6 (could be triggered by violating memory limits)
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 1 ms 516 KB Execution killed with signal 6 (could be triggered by violating memory limits)
2 Halted 0 ms 0 KB -