제출 #1167739

#제출 시각아이디문제언어결과실행 시간메모리
1167739Dedibeat동굴 (IOI13_cave)C++20
컴파일 에러
0 ms0 KiB
#include "cave.h #include<bits/stdc++.h> #define pb push_back #define eb emplace_back #define F first #define S second #define endl '\n' #define all(x) (x).begin(), (x).end() #define put(x) cout << (x) << '\n' using namespace std; using ll = long long; void exploreCave(int N){ int S[N], D[N]; for(int i = 0; i < N; i++) S[i] = 0; for(int i = 0; i < N; i++){ S[i] = 1; D[i] = tryCombination(S); S[i] = 0; } answer(S, D); }

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

cave.cpp:1:10: warning: missing terminating " character
    1 | #include "cave.h
      |          ^
cave.cpp:1:10: error: #include expects "FILENAME" or <FILENAME>
    1 | #include "cave.h
      |          ^~~~~~~
cave.cpp: In function 'void exploreCave(int)':
cave.cpp:17:16: error: 'tryCombination' was not declared in this scope
   17 |         D[i] = tryCombination(S);
      |                ^~~~~~~~~~~~~~
cave.cpp:20:5: error: 'answer' was not declared in this scope
   20 |     answer(S, D);
      |     ^~~~~~