Problem 3nplus1
User CapK1wi
Submission Time 2026-04-11 21:33:05
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:12:20: error: expected ‘;’ before ‘}’ token
12 | seq.push_back(n)
| ^
| ;
13 | }
| ~
3nplus1.cpp:16:20: error: expected ‘;’ before ‘}’ token
16 | seq.push_back(n)
| ^
| ;
17 | }
| ~
3nplus1.cpp:19:7: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘std::vector<int>’)
19 | cout << seq
| ~~~~ ^~ ~~~
| | |
| | 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/cco