Submission #1256279

#TimeUsernameProblemLanguageResultExecution timeMemory
1256279nlknHack (APIO25_hack)C++20
Compilation error
0 ms0 KiB
#include "hack.h" #include <bits/stdc++.h> using namespace std; int hack(){ vector<int> v={1,2}; while(v[1]++)if(collisions(v))return v[1]-1; }

Compilation message (stderr)

hack.cpp: In function 'int hack()':
hack.cpp:7:28: error: could not convert 'v' from 'vector<int>' to 'vector<long long int>'
    7 | while(v[1]++)if(collisions(v))return v[1]-1;
      |                            ^
      |                            |
      |                            vector<int>
hack.cpp:8:1: warning: control reaches end of non-void function [-Wreturn-type]
    8 | }
      | ^