Submission #1091009

# Submission time Handle Problem Language Result Execution time Memory
1091009 2024-09-19T13:09:31 Z AndreasK Cave (IOI13_cave) C++14
Compilation error
0 ms 0 KB
#include "cave.h"

void exploreCave(int N) {
    answer({1,0,1},{1,0,1});
}

Compilation message

cave.cpp: In function 'void exploreCave(int)':
cave.cpp:4:27: error: cannot convert '<brace-enclosed initializer list>' to 'int*'
    4 |     answer({1,0,1},{1,0,1});
      |                           ^
      |                           |
      |                           <brace-enclosed initializer list>
In file included from cave.cpp:1:
cave.h:9:17: note:   initializing argument 1 of 'void answer(int*, int*)'
    9 | void answer(int S[], int D[]);
      |             ~~~~^~~