Problem sum2
User Vistryx
Submission Time 2026-06-25 09:35:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sum2.cpp:2:1: error: ‘unsing’ does not name a type
2 | unsing namespace std;
| ^~~~~~
sum2.cpp: In function ‘int main()’:
sum2.cpp:6:7: error: ‘A’ was not declared in this scope
6 | int {A == 1};
| ^
sum2.cpp:7:12: error: ‘N’ was not declared in this scope
7 | int {A == N-1};
| ^
sum2.cpp:8:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
8 | cin (N);
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
from sum2.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
sum2.cpp:10:2: error: ‘vector’ was not declared in this scope
10 | vector<int> numbers = {A[0], A[1], A[N-1]};
| ^~~~~~
sum2.cpp:10:2: note: suggested alternatives:
In file included from