Submission #639073

#TimeUsernameProblemLanguageResultExecution timeMemory
639073alexx_stefanCONSUL (info1cup19_consul)C++17
Compilation error
0 ms0 KiB
#include "grader.h" void solve(int n) { /// insert your code /// for example for (int i=1;i<=min(n,25);i++) { int x=kth(i); if (cnt(x)>n/3) { say_answer(x); return ; } } say_answer(-1); }

Compilation message (stderr)

consul.cpp: In function 'void solve(int)':
consul.cpp:7:21: error: 'min' was not declared in this scope
    7 |     for (int i=1;i<=min(n,25);i++)
      |                     ^~~