Submission #1210870

#TimeUsernameProblemLanguageResultExecution timeMemory
1210870lucasdmyParrots (IOI11_parrots)C++20
Compilation error
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); } }

Compilation message (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]);
      |         ^~~~