Problem pairsums
User andikawahyudi
Submission Time 2026-01-31 15:46:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

pairsums.cpp: In function ‘int main()’:
pairsums.cpp:6:9: error: storage size of ‘a’ isn’t known
6 | int N, a[];
| ^
pairsums.cpp:8:16: error: expected primary-expression before ‘]’ token
8 | cin >> N >> a[];
| ^
pairsums.cpp:9:9: error: expected ‘;’ before ‘if’
9 | N = N/2
| ^
| ;
10 | if (N % 2 != 0) {
| ~~