Problem smurfpaths
User OviyanGandhi
Submission Time 2024-04-19 01:00:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

smurfpaths.cpp:1:8: error: expected constructor, destructor, or type conversion before ‘(’ token
1 | dfs(1, 0);
| ^
smurfpaths.cpp:5:5: error: expected unqualified-id before ‘while’
5 | while (true){
| ^~~~~
smurfpaths.cpp:61:5: error: expected unqualified-id before ‘for’
61 | for (int i = 1; i <= n; i++)
| ^~~
smurfpaths.cpp:61:21: error: ‘i’ does not name a type
61 | for (int i = 1; i <= n; i++)
| ^
smurfpaths.cpp:61:29: error: ‘i’ does not name a type
61 | for (int i = 1; i <= n; i++)
| ^
smurfpaths.cpp:65:9: error: expected constructor, destructor, or type conversion before ‘(’ token
65 | fill(bit, bit+n+1, 0); // clear bit to use for count of sociable smurfs
| ^
smurfpaths.cpp:67:5: error: expected unqualified-id before ‘for’
67 | for (int i = 1; i <= q; i++