제출 #1287947

#제출 시각아이디문제언어결과실행 시간메모리
1287947eri16동굴 (IOI13_cave)C++20
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> #include "cave.h" using namespace std; void exploreCave(int n){ int d[n],v[n]; for (int i=0; i<n; i++){ v[i]=0; } int ans; for (int i=0; i<n; i++){ v[i]=1 ans=tryCombination(v); v[i]=0; d[i]=ans; } answer(v,d); }

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

cave.cpp: In function 'void exploreCave(int)':
cave.cpp:16:15: error: expected ';' before 'ans'
   16 |         v[i]=1
      |               ^
      |               ;
   17 |         ans=tryCombination(v);
      |         ~~~