Problem sum2
User abdullahmazlan13
Submission Time 2026-06-25 10:12:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sum2.cpp: In function ‘int main()’:
sum2.cpp:5:13: error: ‘N’ was not declared in this scope
5 | std::cin >> N >> A[1] >> A[N]
| ^
sum2.cpp:5:18: error: ‘A’ was not declared in this scope
5 | std::cin >> N >> A[1] >> A[N]
| ^
sum2.cpp:8:1: error: ‘vec’ was not declared in this scope
8 | vec.size(N)
| ^~~