Submission #639073

# Submission time Handle Problem Language Result Execution time Memory
639073 2022-09-08T13:23:25 Z alexx_stefan CONSUL (info1cup19_consul) C++17
Compilation error
0 ms 0 KB
#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

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++)
      |                     ^~~