Problem monsters2
User dumgod
Submission Time 2026-02-11 22:04:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

monsters2.cpp: In function ‘int main()’:
monsters2.cpp:42:18: error: expected ‘;’ before ‘for’
42 | sort(arr, arr+n)
| ^
| ;
43 | for(int i=0; i<n; i++){
| ~~~
monsters2.cpp:43:18: error: ‘i’ was not declared in this scope
43 | for(int i=0; i<n; i++){
| ^