제출 #1298427

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

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

cave.cpp: In function 'void exploreCave(int)':
cave.cpp:8:15: error: 'n' was not declared in this scope
    8 | for(int i=0;i<n;i++){
      |               ^