Submission #1359474

#TimeUsernameProblemLanguageResultExecution timeMemory
1359474ramez-hammadHack (APIO25_hack)C++20
Compilation error
0 ms0 KiB
#include "hack.h"
#include <bits/stdc++.h>

using namespace std;

int hack() {
    for (int i=1;i<=500,000;i++)
        if ((int)collision(0,i)) return i; 
}

Compilation message (stderr)

hack.cpp: In function 'int hack()':
hack.cpp:8:18: error: 'collision' was not declared in this scope; did you mean 'collisions'?
    8 |         if ((int)collision(0,i)) return i;
      |                  ^~~~~~~~~
      |                  collisions
hack.cpp:7:14: warning: control reaches end of non-void function [-Wreturn-type]
    7 |     for (int i=1;i<=500,000;i++)
      |              ^