Problem | smurf |
---|---|
User | innerspace777 |
Submission Time | 2024-06-11 12:37:30 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
smurf.cpp: In function ‘int32_t main()’:
smurf.cpp:19:7: error: conflicting declaration ‘bool b’
19 | bool b = true;
| ^
smurf.cpp:10:25: note: previous declaration as ‘std::vector<long long int> b’
10 | std::vector<int> a(n), b(n);
| ^
smurf.cpp:21:7: error: could not convert ‘b’ from ‘std::vector<long long int>’ to ‘bool’
21 | if (b) {
| ^
| |
| std::vector<long long int>
smurf.cpp:28:7: error: no match for ‘operator!’ (operand type is ‘std::vector<long long int>’)
28 | b = !b;
| ^~
smurf.cpp:28:7: note: candidate: ‘operator!(bool)’ <built-in>
smurf.cpp:28:7: note: no known conversion for argument 1 from ‘std::vector<long long int>’ to ‘bool’
smurf.cpp:30:9: error: found ‘:’ in nested-name-specifier, expected ‘::’
30 | for (i : a) {
| ^
| ::