Problem clocktower
User fueh
Submission Time 2026-03-11 17:39:01
Score 0
Max Time N/A
Max Memory N/A

Compile Error

clocktower.cpp: In function ‘int main()’:
clocktower.cpp:11:18: error: ‘N’ was not declared in this scope
11 | for (int i=1; i<N; i++) {
| ^
clocktower.cpp:12:7: error: ‘P’ was not declared in this scope
12 | if (P[i-1] * N >= H * i) hits++;
| ^
clocktower.cpp:12:21: error: ‘H’ was not declared in this scope
12 | if (P[i-1] * N >= H * i) hits++;
| ^