제출 #1213946

#제출 시각아이디문제언어결과실행 시간메모리
1213946fskaricaHack (APIO25_hack)C++20
컴파일 에러
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;
}

컴파일 시 표준 에러 (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>