Submission #915673

# Submission time Handle Problem Language Result Execution time Memory
915673 2024-01-24T14:08:15 Z NValchanov CONSUL (info1cup19_consul) C++17
Compilation error
0 ms 0 KB
#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

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