Submission #1091003

#TimeUsernameProblemLanguageResultExecution timeMemory
1091003AndreasKCave (IOI13_cave)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "cave.h" using namespace std; void exploreCave(int N) { vector <int> A(N, 0); int x = tryCombination(A); while (x != -1) { A[x - 1] = 1; x = tryCombination(A); } answer(A); }

Compilation message (stderr)

cave.cpp:7:30: warning: `\U0000037e' is not in NFC [-Wnormalized=]
    7 |     int x = tryCombination(A);
      |                              ^
cave.cpp:10:30: warning: `\U0000037e' is not in NFC [-Wnormalized=]
   10 |         x = tryCombination(A);
      |                              ^
cave.cpp: In function 'void exploreCave(int)':
cave.cpp:7:28: error: cannot convert 'std::vector<int>' to 'int*'
    7 |     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:7:9: warning: unused variable 'x' [-Wunused-variable]
    7 |     int x = tryCombination(A);
      |         ^