Problem worldline
User wrizz69
Submission Time 2024-12-18 10:54:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

worldline.cpp: In function ‘long long int query(long long int)’:
worldline.cpp:21:44: error: ‘mod’ was not declared in this scope; did you mean ‘modf’?
21 | result = (result + fenwick[idx]) % mod;
| ^~~
| modf
worldline.cpp: In function ‘void update(long long int, long long int)’:
worldline.cpp:28:49: error: ‘mod’ was not declared in this scope; did you mean ‘modf’?
28 | fenwick[idx] = (fenwick[idx] + value) % mod;
| ^~~
| modf
worldline.cpp:30:12: error: return-statement with a value, in function returning ‘void’ [-fpermissive]
30 | return 0;
| ^
worldline.cpp: In function ‘void dfs(long long int)’:
worldline.cpp:37:14: error: ‘v’ was not declared in this scope
37 | z.pb(v);