Submission #1205647

#TimeUsernameProblemLanguageResultExecution timeMemory
1205647bongoboltoHack (APIO25_hack)C++20
Compilation error
0 ms0 KiB
#include "hack.h" #include <iostream> #include <vector> #include <map> using namespace std; #define int long long int hack() { vector<int> vec = {1,2,3,4}; cout<<collisions(vec)<<endl; }

Compilation message (stderr)

hack.cpp:8:5: error: ambiguating new declaration of 'long long int hack()'
    8 | int hack()
      |     ^~~~
In file included from hack.cpp:1:
hack.h:3:5: note: old declaration 'int hack()'
    3 | int hack();
      |     ^~~~
hack.cpp: In function 'long long int hack()':
hack.cpp:12:1: warning: no return statement in function returning non-void [-Wreturn-type]
   12 | }
      | ^