Problem potatosalad
User zsinfo2010
Submission Time 2023-11-10 14:31:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

potatosalad.cpp: In function ‘int32_t main()’:
potatosalad.cpp:14:36: error: expected ‘;’ before ‘for’
14 | sort(arr, arr + n, greater<int>())
| ^
| ;
15 | for (int j = 0; j < d; j++) {
| ~~~
potatosalad.cpp:15:18: error: ‘j’ was not declared in this scope
15 | for (int j = 0; j < d; j++) {
| ^