Submission #1091005

# Submission time Handle Problem Language Result Execution time Memory
1091005 2024-09-19T12:55:34 Z AndreasK Cave (IOI13_cave) C++14
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>
#include "cave.h"
using namespace std;

void exploreCave(int N) {
    int A[n] = {};
    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, );
}

Compilation message

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:6:11: error: 'n' was not declared in this scope
    6 |     int A[n] = {};
      |           ^
cave.cpp:9:9: error: 'A' was not declared in this scope
    9 |         A[c] = c + 1;
      |         ^
cave.cpp:10:28: error: 'A' was not declared in this scope
   10 |     int x = tryCombination(A);
      |                            ^
cave.cpp:7:9: warning: unused variable 'B' [-Wunused-variable]
    7 |     int B[N];
      |         ^
cave.cpp:10:9: warning: unused variable 'x' [-Wunused-variable]
   10 |     int x = tryCombination(A);
      |         ^