Problem potatosalad
User om2024
Submission Time 2025-07-31 17:02:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:11:35: error: invalid types ‘int[int]’ for array subscript
11 | int size = sizeof(n) / sizeof(n[0]);
| ^
potatosalad.cpp:12:20: error: ‘greatest’ was not declared in this scope
12 | sort(n, n + size, greatest<int>());
| ^~~~~~~~
potatosalad.cpp:12:29: error: expected primary-expression before ‘int’
12 | sort(n, n + size, greatest<int>());
| ^~~