Problem | competition |
---|---|
User | ATHY |
Submission Time | 2024-06-21 21:54:08 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
competition.cpp: In function ‘int main()’:
competition.cpp:8:8: error: conflicting declaration ‘int a’
8 | int n,a,b,counter=0; cin >> n >> a >> b;
| ^
competition.cpp:6:14: note: previous declaration as ‘std::vector<int> a’
6 | vector<int> a;
| ^
competition.cpp:8:10: error: conflicting declaration ‘int b’
8 | int n,a,b,counter=0; cin >> n >> a >> b;
| ^
competition.cpp:7:14: note: previous declaration as ‘std::vector<int> b’
7 | vector<int> b;
| ^
competition.cpp:8:32: error: no match for ‘operator>>’ (operand types are ‘std::basic_istream<char>::__istream_type’ {aka ‘std::basic_istream<char>’} and ‘std::vector<int>’)
8 | int n,a,b,counter=0; cin >> n >> a >> b;
| ~~~~~~~~ ^~ ~
| |