Submission #1353475

#TimeUsernameProblemLanguageResultExecution timeMemory
1353475isctHack (APIO25_hack)C++20
Compilation error
0 ms0 KiB
#include "hack.h"
#include <vector>
#include <bits/stdc++.h>
using namespace std;

int hack()
{
    for (long long i = 3; i++)
    {
        long long response = collisions({1, i});
        if (response == 1)
        {
            return (i - 1);
        }
    }
}

Compilation message (stderr)

hack.cpp: In function 'int hack()':
hack.cpp:8:30: error: expected ';' before ')' token
    8 |     for (long long i = 3; i++)
      |                              ^
      |                              ;
hack.cpp:16:1: warning: control reaches end of non-void function [-Wreturn-type]
   16 | }
      | ^