Submission #1298419

#TimeUsernameProblemLanguageResultExecution timeMemory
1298419gesp3011v2동굴 (IOI13_cave)C++20
Compilation error
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);
}

Compilation message (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);
      |          ^