Submission #1205645

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

Compilation message (stderr)

hack.cpp: In function 'int hack()':
hack.cpp:11:22: error: could not convert 'vec' from 'vector<int>' to 'vector<long long int>'
   11 |     cout<<collisions(vec)<<endl;
      |                      ^~~
      |                      |
      |                      vector<int>
hack.cpp:12:1: warning: no return statement in function returning non-void [-Wreturn-type]
   12 | }
      | ^