Submission #915673

#TimeUsernameProblemLanguageResultExecution timeMemory
915673NValchanovCONSUL (info1cup19_consul)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> ///#include "grader.h" #define endl '\n' typedef long long ll; void solve(int n) { for(ll i=1;i<=n;i++) { if(cnt(kth(i))>n/3) say_answer(i); } say_answer(-1); }

Compilation message (stderr)

consul.cpp: In function 'void solve(int)':
consul.cpp:12:16: error: 'kth' was not declared in this scope
   12 |         if(cnt(kth(i))>n/3)
      |                ^~~
consul.cpp:12:12: error: 'cnt' was not declared in this scope; did you mean 'int'?
   12 |         if(cnt(kth(i))>n/3)
      |            ^~~
      |            int
consul.cpp:13:13: error: 'say_answer' was not declared in this scope
   13 |             say_answer(i);
      |             ^~~~~~~~~~
consul.cpp:15:5: error: 'say_answer' was not declared in this scope
   15 |     say_answer(-1);
      |     ^~~~~~~~~~