Submission #1213946

#TimeUsernameProblemLanguageResultExecution timeMemory
1213946fskaricaHack (APIO25_hack)C++20
Compilation error
0 ms0 KiB
#include "hack.h"
#include <bits/stdc++.h>

using namespace std;

#define ll long long
#define fi first
#define se second
#define pii pair<int, int>

int hack() {
    vector <int> v;
    int n = 1000000;
    for (int i = 1; i <= n; i++) v.push_back(i);

    int x = collisions(v);
    return n - x;
}

Compilation message (stderr)

hack.cpp: In function 'int hack()':
hack.cpp:16:24: error: could not convert 'v' from 'vector<int>' to 'vector<long long int>'
   16 |     int x = collisions(v);
      |                        ^
      |                        |
      |                        vector<int>