Submission #1205646

#TimeUsernameProblemLanguageResultExecution timeMemory
1205646bongoboltoHack (APIO25_hack)C++20
Compilation error
0 ms0 KiB
#include "hack.h"
#include <iostream>
#include <vector>
#include <map>
using namespace std;
using int = long long;

int hack()
{
    vector<int> vec = {1,2,3,4};
    cout<<collisions(vec)<<endl;
}

Compilation message (stderr)

hack.cpp:6:7: error: expected nested-name-specifier before 'int'
    6 | using int = long long;
      |       ^~~
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 | }
      | ^