제출 #1369279

#제출 시각아이디문제언어결과실행 시간메모리
1369279Almonther게임 (IOI14_game)C++20
컴파일 에러
0 ms0 KiB
#include<bits/stdc++.h>
 
using namespace std;
 
#define ll long long

ll cnt[1505]={};
void initialize(int n);
int hasEdge(int u, int v){
    if(u<v) swap(u,v);
    cnt[u]++;
    if(cnt[u]==u) return 1;
    return 0;
}
// void solve(){

// }
 
// int main(){
//     ios_base::sync_with_stdio(0);cin.tie(0);
//     int _=1;
//     // cin>>_;
//     while(_--) solve();
// }

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

/usr/bin/ld: /tmp/ccVYEY8Q.o: in function `main':
grader.cpp:(.text.startup+0x2c): undefined reference to `initialize(int)'
collect2: error: ld returned 1 exit status