제출 #369095

#제출 시각아이디문제언어결과실행 시간메모리
369095NachoLibre친구 (IOI14_friend)C++17
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; #define sz(a) ((int)(a).size()) typedef vector<int> vint; typedef vector<vint> vvint; #ifndef wambule #include "friend.h" #else #endif long long findSample(int n, int cfd[], int hst[], int ptc[]) { long long dr = 0; for(int i = 0; i < n; ++i) { dr += cfd[i]; } return dr; } #ifdef wambule int main() { ios::sync_with_stdio(0); cin.tie(0); return 0; } #endif

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

friend.cpp:11:11: error: ambiguating new declaration of 'long long int findSample(int, int*, int*, int*)'
   11 | long long findSample(int n, int cfd[], int hst[], int ptc[]) {
      |           ^~~~~~~~~~
In file included from friend.cpp:7:
friend.h:7:5: note: old declaration 'int findSample(int, int*, int*, int*)'
    7 | int findSample(int n,int confidence[],int host[],int protocol[]);
      |     ^~~~~~~~~~