제출 #770510

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

const int MAXN = 7e4 + 7;

int S[MAXN];
int D[MAXN];

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

int tryCombination(int S[]);

void exploreCave(int n){
    for(int i = 0; i <= n - 1; i++){
        S[i] = 0;
    }
    
    for(int  i = 0; i <= n - 1; i++){
        int kture = tryCombination(S);
        if(kture == i){
            continue;
        }
        for(int j  = 0; j <= n - 1; j++){
            if(S[j] == 0){
                S[j] = 1;
                int kture = tryCombination(S);
                if(kture == i){
                    continue;
                }
                S[j] = 0;
            }else{
                S[j] = 0;
                int kture = tryCombination(S);
                if(kture == i){
                    continue;
                }
                S[j] = 1;
            }
        }
    }
    
    for(int i = 0; i <= n - 1; i++){
        if(S[i] == 0){
            S[i] = 1;
            int kture = tryCombination(S);
            D[i] = kture;
            S[i] = 0;
        }else{
            S[i] = 0;
            int kture = tryCombination(S);
            D[i] = kture;
            S[i] = 1;
        }
    }
    
    answer(S, D);
}

int main(){
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
    
    /*int n;
    cin >> n;
    
    exploreCave(n);
    */
}

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

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