Problem platonic5
User NikhilSiddharth67
Submission Time 2026-03-02 14:57:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

platonic5.cpp: In function ‘int main()’:
platonic5.cpp:2:13: error: expected initializer before ‘long’
2 | #define int long long
| ^~~~
platonic5.cpp:14:2: note: in expansion of macro ‘int’
14 | int seconds;
| ^~~
platonic5.cpp:18:10: error: ‘P’ was not declared in this scope
18 | cin >> P[d];
| ^
platonic5.cpp:19:3: error: ‘seconds’ was not declared in this scope; did you mean ‘std::chrono::seconds’?
19 | seconds += abs(P[d]-i);
| ^~~~~~~
| std::chrono::seconds
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:101,
from platonic5.cpp:1:
/usr/include/c++/9/chrono:614:53: note: ‘std::chrono::seconds’ declared here
614 | typedef duration<_GLIBCXX_CHRONO_INT64_T> seconds;
| ^~~~~~~