Problem potatosalad
User SharpnessChipped
Submission Time 2023-06-12 14:46:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:8:2: error: expected initializer before ‘for’
8 | for (int i=0; i<N; i++) {
| ^~~
potatosalad.cpp:8:16: error: ‘i’ was not declared in this scope
8 | for (int i=0; i<N; i++) {
| ^
potatosalad.cpp:11:11: error: missing template arguments before ‘,’ token
11 | sort(list, list+N, greater<int>);
| ^
potatosalad.cpp:11:17: error: missing template arguments before ‘+’ token
11 | sort(list, list+N, greater<int>);
| ^
potatosalad.cpp:11:33: error: expected primary-expression before ‘)’ token
11 | sort(list, list+N, greater<int>);
| ^
potatosalad.cpp:13:14: error: missing template arguments before ‘[’ token
13 | sum += list[i];
| ^