| Problem | potatosalad |
|---|---|
| User | chenyuming |
| Submission Time | 2026-11-03 13:23:07 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:15:24: error: ‘n’ was not declared in this scope
15 | sort(array1, array1 + n, greater<int>());
| ^
potatosalad.cpp:17:24: error: expected ‘;’ before ‘}’ token
17 | sum = sum + array1[i]
| ^
| ;
18 | }
| ~