Submission #1318560

#TimeUsernameProblemLanguageResultExecution timeMemory
1318560g31niusEaster Eggs (info1cup17_eastereggs)C++20
Compilation error
0 ms0 KiB
int findEgg ( int n, vector < pair <int, int> > bridges ) { if ( query ( {1} ) == 1 ) { return 1; } return 0; }

Compilation message (stderr)

eastereggs.cpp:1:31: error: 'pair' was not declared in this scope
    1 | int findEgg ( int n, vector < pair <int, int> > bridges ) {
      |                               ^~~~
eastereggs.cpp:1:31: error: 'pair' was not declared in this scope
eastereggs.cpp:1:31: error: 'pair' was not declared in this scope
eastereggs.cpp:1:31: error: 'pair' was not declared in this scope
eastereggs.cpp:1:22: error: 'vector' has not been declared
    1 | int findEgg ( int n, vector < pair <int, int> > bridges ) {
      |                      ^~~~~~
eastereggs.cpp:1:29: error: expected ',' or '...' before '<' token
    1 | int findEgg ( int n, vector < pair <int, int> > bridges ) {
      |                             ^
eastereggs.cpp: In function 'int findEgg(int, int)':
eastereggs.cpp:2:10: error: 'query' was not declared in this scope
    2 |     if ( query ( {1} ) == 1 ) {
      |          ^~~~~