Submission #1368070

#TimeUsernameProblemLanguageResultExecution timeMemory
1368070unknownHack (APIO25_hack)C++20
Compilation error
0 ms0 KiB
#include <vector>
using namespace std;

int hack(){
    int result;
    for (int k = 1; k <= 500000; k++) {
        result = collisions({1, 1+k});
        if (result > 0) {
            return k;
            break;
        }
    }
}

Compilation message (stderr)

hack.cpp: In function 'int hack()':
hack.cpp:7:18: error: 'collisions' was not declared in this scope
    7 |         result = collisions({1, 1+k});
      |                  ^~~~~~~~~~
hack.cpp:13:1: warning: control reaches end of non-void function [-Wreturn-type]
   13 | }
      | ^