Problem party_noi
User yumzc
Submission Time 2025-06-18 15:31:14
Score 0
Max Time N/A
Max Memory N/A

Compile Error

party_noi.cpp: In function ‘int main()’:
party_noi.cpp:31:21: error: missing template arguments before ‘[’ token
31 | cin >> array[i];
| ^
party_noi.cpp:33:16: error: missing template arguments before ‘,’ token
33 | sort (array, array + n, greater<int>());
| ^
party_noi.cpp:33:24: error: missing template arguments before ‘+’ token
33 | sort (array, array + n, greater<int>());
| ^
party_noi.cpp:44:25: error: missing template arguments before ‘[’ token
44 | sum += max(array[i], 0) ;
| ^