제출 #1205645

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

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