Problem railway
User dooweidde
Submission Time 2025-12-17 15:02:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

railway.cpp: In function ‘long long int kpar(long long int, long long int)’:
railway.cpp:21:13: error: ‘j’ was not declared in this scope
21 | if (k&(1<<j)) n = par[n][i];
| ^
railway.cpp: In function ‘void init()’:
railway.cpp:36:23: error: ‘n’ was not declared in this scope
36 | for (int x = 0; x < n;x++){
| ^
railway.cpp: At global scope:
railway.cpp:41:8: error: cannot declare ‘::main’ to be a global variable
41 | signed main{
| ^~~~
railway.cpp:2:13: error: expected primary-expression before ‘long’
2 | #define int long long
| ^~~~
railway.cpp:42:2: note: in expansion of macro ‘int’
42 | int n, q; cin >> n >> q;
| ^~~
railway.cpp:2:13: error: expected ‘}’ before ‘long’
2 | #define int long long
| ^~~~
railway.cpp:42:2: note: in expansion of macro ‘int’
42 | int n, q;