제출 #1091004

#제출 시각아이디문제언어결과실행 시간메모리
1091004AndreasK동굴 (IOI13_cave)C++14
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> #include "cave.h" using namespace std; void exploreCave(int N) { vector <int> A(N, 0); vector <int> B(N); for (int c = 0; c < N; c++) A[c] = c + 1; int x = tryCombination(A); while (x != -1) { A[x - 1] = 1; x = tryCombination(A); } answer(A, B); }

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

cave.cpp:10:30: warning: `\U0000037e' is not in NFC [-Wnormalized=]
   10 |     int x = tryCombination(A);
      |                              ^
cave.cpp:13:30: warning: `\U0000037e' is not in NFC [-Wnormalized=]
   13 |         x = tryCombination(A);
      |                              ^
cave.cpp: In function 'void exploreCave(int)':
cave.cpp:10:28: error: cannot convert 'std::vector<int>' to 'int*'
   10 |     int x = tryCombination(A);
      |                            ^
      |                            |
      |                            std::vector<int>
In file included from cave.cpp:2:
cave.h:8:24: note:   initializing argument 1 of 'int tryCombination(int*)'
    8 | int tryCombination(int S[]);
      |                    ~~~~^~~
cave.cpp:10:9: warning: unused variable 'x' [-Wunused-variable]
   10 |     int x = tryCombination(A);
      |         ^