Submission #890549

#TimeUsernameProblemLanguageResultExecution timeMemory
890549IwantbemasterEaster Eggs (info1cup17_eastereggs)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; #define int long long #define ff first #define ss second const int ForSpeed = [](){ ios_base::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr); return 0; }(); int findegg(int n, vector<pair<int, int>> brid){ for(int i = 1; i <= n; i++){ vector<int> res; res.emplace_back(i); if(query(res)) return i; } }

Compilation message (stderr)

eastereggs.cpp: In function 'long long int findegg(long long int, std::vector<std::pair<long long int, long long int> >)':
eastereggs.cpp:14:6: error: 'query' was not declared in this scope
   14 |   if(query(res)) return i;
      |      ^~~~~
eastereggs.cpp:16:1: warning: control reaches end of non-void function [-Wreturn-type]
   16 | }
      | ^