제출 #1210870

#제출 시각아이디문제언어결과실행 시간메모리
1210870lucasdmy앵무새 (IOI11_parrots)C++20
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h>
using namespace std;
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;
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번째 컴파일 단계

encoder.cpp: In function 'void encode(int, std::vector<int>)':
encoder.cpp:7:9: error: 'send' was not declared in this scope
    7 |         send(m[k]);
      |         ^~~~