Problem platonic5
User Hatrix
Submission Time 2026-03-02 14:59:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

platonic5.cpp: In function ‘int main()’:
platonic5.cpp:9:16: error: ‘m’ was not declared in this scope
9 | vector<int> p(m);
| ^
platonic5.cpp:3:13: error: expected ‘,’ or ‘;’ before ‘long’
3 | #define int long long
| ^~~~
platonic5.cpp:14:2: note: in expansion of macro ‘int’
14 | int currenttime= 1
| ^~~
platonic5.cpp:16:15: error: ‘i’ was not declared in this scope
16 | for(int i=0; i<M; i++){
| ^
platonic5.cpp:21:18: error: ‘current’ was not declared in this scope
21 | time += abs(N - current);
| ^~~~~~~