제출 #1298419

#제출 시각아이디문제언어결과실행 시간메모리
1298419gesp3011v2Cave (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]; iota(b,b+n,0); memset(a,0,sizeof a); do{ int ans=tryCombination(a); if(ans==-1)break; a[ans]=1; }while(1); answer(a,b); }

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

cave.cpp: In function 'void exploreCave(int)':
cave.cpp:7:10: error: 'n' was not declared in this scope
    7 | iota(b,b+n,0);
      |          ^