Problem joke
User dumgod
Submission Time 2025-02-14 18:29:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

joke.cpp: In function ‘void bfs()’:
joke.cpp:26:13: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
26 | ans[i]=0;
| ^~~
| abs
joke.cpp:36:20: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
36 | if(ans[gyat[time].front().second]==-1){
| ^~~
| abs
joke.cpp:49:37: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
49 | q.push({e,time+1}); ans[e]=time+1;
| ^~~
| abs
joke.cpp: In function ‘int main()’:
joke.cpp:59:26: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
59 | cin>>n>>m>>qe;memset(ans, -1, sizeof(ans));
| ^~~
| abs