Problem smurf
User Red123
Submission Time 2025-10-29 11:33:48
Score 0
Max Time N/A
Max Memory N/A

Compile Error

smurf.cpp: In function ‘int main()’:
smurf.cpp:8:15: error: conflicting declaration ‘std::vector<long long int> n’
8 | vector <int> n;
| ^
smurf.cpp:6:6: note: previous declaration as ‘long long int n’
6 | int n;
| ^
smurf.cpp:12:5: error: request for member ‘push_back’ in ‘n’, which is of non-class type ‘long long int’
12 | n.push_back(x);
| ^~~~~~~~~
smurf.cpp:13:11: error: ‘a’ was not declared in this scope
13 | reverse(a.begin(), a.end());
| ^
smurf.cpp:16:14: error: invalid types ‘long long int[long long int]’ for array subscript
16 | cout << n[i] << " ";
| ^