Problem competition
User PerihelionfromAphelion
Submission Time 2026-07-11 10:48:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

competition.cpp: In function ‘int main()’:
competition.cpp:7:15: error: conflicting declaration ‘std::vector<int> a’
7 | vector <int> a(n);
| ^
competition.cpp:5:9: note: previous declaration as ‘int a’
5 | int n, a, b, total;
| ^
competition.cpp:8:15: error: conflicting declaration ‘std::vector<int> b’
8 | vector <int> b(n);
| ^
competition.cpp:5:12: note: previous declaration as ‘int b’
5 | int n, a, b, total;
| ^
competition.cpp:9:7: error: ‘i’ was not declared in this scope
9 | for (i = 0; i < n; i++) {
| ^
competition.cpp:12:7: error: ‘i’ was not declared in this scope
12 | for (i = 0; i < n; i++) {
| ^
competition.cpp:17:7: error: ‘i’ was not declared in this scope
17 | for (i = 0; i < n; i++) {
| ^
competition.cpp:21:7: error: ‘i’ was not decla