Problem explosives
User username
Submission Time 2024-02-25 13:13:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

explosives.cpp: In function ‘void runtc()’:
explosives.cpp:43:41: error: ‘num’ was not declared in this scope; did you mean ‘enum’?
43 | for (int j=arr[i];j<brr[i];j++) num[j]++;
| ^~~
| enum
explosives.cpp:44:41: error: ‘num’ was not declared in this scope; did you mean ‘enum’?
44 | for (int j=brr[i];j<arr[i];j++) num[j]++;
| ^~~
| enum
explosives.cpp:48:15: error: ‘num’ was not declared in this scope; did you mean ‘enum’?
48 | ans+=(num[i]+c-1)/c;
| ^~~
| enum