Submission #523102

#TimeUsernameProblemLanguageResultExecution timeMemory
523102BaytoroCONSUL (info1cup19_consul)C++17
Compilation error
0 ms0 KiB
#include "grader.h" #include "grader.cpp" void solve(int n) { for(int i=0;i<min(n,50);i++){ int x=kth(i); int y=cnt(x); if(y>n/3){ say_answer(x); return; } } say_answer(-1); }

Compilation message (stderr)

consul.cpp: In function 'void solve(int)':
consul.cpp:5:19: error: 'min' was not declared in this scope; did you mean 'main'?
    5 |     for(int i=0;i<min(n,50);i++){
      |                   ^~~
      |                   main