| Problem | party |
|---|---|
| User | LYM2025 |
| Submission Time | 2026-08-17 17:33:42 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
party.cpp:4:19: error: ‘maxlvl’ has not been declared
4 | void bfs(ll start,maxlvl) {
| ^~~~~~
party.cpp: In function ‘void bfs(ll, int)’:
party.cpp:8:5: error: ‘visited’ was not declared in this scope
8 | visited[start] = true;
| ^~~~~~~
party.cpp:14:21: error: ‘adj’ was not declared in this scope
14 | for (ll v : adj[u]) {
| ^~~
party.cpp: In function ‘int main()’:
party.cpp:28:2: error: ‘adj’ was not declared in this scope
28 | adj.resize(n+1);
| ^~~
party.cpp:28:13: error: ‘n’ was not declared in this scope
28 | adj.resize(n+1);
| ^
party.cpp:29:2: error: ‘visited’ was not declared in this scope
29 | visited.resize(n+1,false);
| ^~~~~~~
party.cpp:36:20: error: conversion from ‘void’ to non-scalar type ‘std::vector<int>’ requested
36 | vector<int>ans=bfs(1,2);
|