Problem eeniemeenie
User blob
Submission Time 2023-11-24 14:06:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

eeniemeenie.cpp: In function ‘int main()’:
eeniemeenie.cpp:9:5: error: request for member ‘push_back’ in ‘v’, which is of non-class type ‘std::vector<int> [N]’
9 | v.push_back(i);
| ^~~~~~~~~
eeniemeenie.cpp:12:7: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘std::vector<int>’)
12 | cout << v[problem];
| ~~~~ ^~ ~~~~~~~~~~
| | |
| | std::vector<int>
| std::ostream {aka std::basic_ostream<char>}
In file included from /usr/include/c++/9/istream:39,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from eeniemeenie.cpp:1:
/usr/include/c++/9/ostream:108:7: note: candi