Submission #523102

# Submission time Handle Problem Language Result Execution time Memory
523102 2022-02-07T05:28:44 Z Baytoro CONSUL (info1cup19_consul) C++17
Compilation error
0 ms 0 KB
#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

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