제출 #1205647

#제출 시각아이디문제언어결과실행 시간메모리
1205647bongoboltoHack (APIO25_hack)C++20
컴파일 에러
0 ms0 KiB
#include "hack.h" #include <iostream> #include <vector> #include <map> using namespace std; #define int long long int hack() { vector<int> vec = {1,2,3,4}; cout<<collisions(vec)<<endl; }

컴파일 시 표준 에러 (stderr) 메시지

hack.cpp:8:5: error: ambiguating new declaration of 'long long int hack()'
    8 | int hack()
      |     ^~~~
In file included from hack.cpp:1:
hack.h:3:5: note: old declaration 'int hack()'
    3 | int hack();
      |     ^~~~
hack.cpp: In function 'long long int hack()':
hack.cpp:12:1: warning: no return statement in function returning non-void [-Wreturn-type]
   12 | }
      | ^