제출 #984586

#제출 시각아이디문제언어결과실행 시간메모리
984586SzymonKrzywda동굴 (IOI13_cave)C++17
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h>
using namespace std;


int tryCombination(int S[]);
void answer(intS[],int D[]);

void exploreCave(int N){
    int S[N];
    int D[N];
    int w = 0;
    while (w != -1){
        w = tryCombination(S);
        if (w != -1) S[w] = 1;
    }
    
    for (int i=0; i<N; i++){
        S[i] = (S[i]+1)%2;
        D[i] = tryCombination(S);
        S[i] = (S[i]+1)%2;
    }
    
    answer(S,N);
}

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

cave.cpp:5:28: warning: `\U0000037e' is not in NFC [-Wnormalized=]
    5 | int tryCombination(int S[]);
      |                            ^
cave.cpp:6:28: warning: `\U0000037e' is not in NFC [-Wnormalized=]
    6 | void answer(intS[],int D[]);
      |                            ^
cave.cpp:5:28: error: expected initializer before '\U0000037e'
    5 | int tryCombination(int S[]);
      |                            ^