제출 #711400

#제출 시각아이디문제언어결과실행 시간메모리
711400mseebacher앵무새 (IOI11_parrots)C++17
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> #include "encoder.h" #include "encoderlib.h" using namespace std; void encode(int x, int m[]){ for(int i = 0;i<x;i++){ for(int j = 0;j<8;j++){ if((1 << j) & m[i]) send(j+8*i);  } } }
#include <bits/stdc++.h> #include "decoder.h" #include "decoderlib.h" using namespace std; void decode(int x,int l,int m[]){ vector<int> ans(x,0); for(int i = 0;i<l;i++){ int zahl = m[i]/8; int bit = m[i] % 8; ans[zahl] |= (1 << bit); } for(int i = 0;i<x;i++){ output(ans[i]); } }

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

encoder.cpp:9:36: error: extended character   is not valid in an identifier
    9 |    if((1 << j) & m[i]) send(j+8*i); 
      |                                    ^
encoder.cpp: In function 'void encode(int, int*)':
encoder.cpp:9:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
    9 |    if((1 << j) & m[i]) send(j+8*i); 
      |    ^~
encoder.cpp:9:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
    9 |    if((1 << j) & m[i]) send(j+8*i); 
      |                                    ^
encoder.cpp:9:36: error: '\U000000a0' was not declared in this scope