Submission #1210886

#TimeUsernameProblemLanguageResultExecution timeMemory
1210886lucasdmy앵무새 (IOI11_parrots)C++20
Compilation error
0 ms0 KiB
#include "encoder.h"
#include "encoderlib.h"
#include <bits/stdc++.h>
using namespace std;
void encode(int n, m[])
{
  for(int k=0;k<n;k++){
      m[k]*=100;
      m[k]+=k;
      send(m[k]);
  }
}
#include "decoder.h"
#include "decoderlib.h"
#include <bits/stdc++.h>
using namespace std;
bool comp(int x, int y){
    return x%100>y%100;
}
void decode(int n, int l, x[])
{
  sort(x, x+l, comp);
  for(int k=0;k<l;k++){
      output(x[k]/100);
  }
}

Compilation message (stderr)

# 1번째 컴파일 단계

encoder.cpp:5:20: error: 'm' has not been declared
    5 | void encode(int n, m[])
      |                    ^
encoder.cpp: In function 'void encode(int, int*)':
encoder.cpp:8:7: error: 'm' was not declared in this scope
    8 |       m[k]*=100;
      |       ^