제출 #1210874

#제출 시각아이디문제언어결과실행 시간메모리
1210874lucasdmy앵무새 (IOI11_parrots)C++20
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h>
using namespace std;
void send(int x){
  
}
void encode(int n, vector<int>m){
    for(int k=0;k<n;k++){
        m[k]*=100;
        m[k]+=k;
        send(m[k]);
    }
}
#include <bits/stdc++.h>
using namespace std;
void output(int x){
  
}
bool comp(int x, int y){
  if(x%100>y%100){
    return true;
  }return false;
}
void decode(int n, int l, vector<int>x){
    sort(x.begin(), x.end(), comp);
    for(int k=0;k<l;k++){
      output(x[k]/100);
    }
}

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

# 1번째 컴파일 단계

/usr/bin/ld: /tmp/ccCLqXn2.o: in function `send(int)':
grader_encoder.cpp:(.text+0xa0): multiple definition of `send(int)'; /tmp/cckWpGps.o:encoder.cpp:(.text+0x0): first defined here
/usr/bin/ld: /tmp/ccCLqXn2.o: in function `main':
grader_encoder.cpp:(.text.startup+0x16e): undefined reference to `encode(int, int*)'
collect2: error: ld returned 1 exit status