Problem laptop
User om2024
Submission Time 2024-06-21 14:39:19
Score 0
Max Time N/A
Max Memory N/A

Compile Error

laptop.cpp: In function ‘int main()’:
laptop.cpp:11:15: error: conflicting declaration ‘std::vector<int> c’
11 | vector<int> c;
| ^
laptop.cpp:9:7: note: previous declaration as ‘int c’
9 | int c, t; cin >> c >> t;
| ^
laptop.cpp:12:6: error: invalid types ‘int[int]’ for array subscript
12 | c[c];
| ^
laptop.cpp:17:6: error: expected ‘(’ before ‘v’
17 | if v[1] == 1) {
| ^
| (
laptop.cpp:31:3: error: expected ‘}’ before ‘else’
31 | else if (!p) {
| ^~~~
laptop.cpp:25:10: note: to match this ‘{’
25 | if (p) {
| ^
laptop.cpp:39:1: error: expected ‘}’ at end of input
39 | }
| ^
laptop.cpp:4:12: note: to match this ‘{’
4 | int main() {
| ^