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

Compile Error

laptop.cpp: In function ‘int main()’:
laptop.cpp:9:3: error: expected ‘,’ or ‘;’ before ‘vector’
9 | vector<int> c;
| ^~~~~~
laptop.cpp:10:6: error: invalid types ‘int[int]’ for array subscript
10 | c[c];
| ^
laptop.cpp:15:6: error: expected ‘(’ before ‘v’
15 | if v[1] == 1) {
| ^
| (
laptop.cpp:23:7: error: ‘p’ was not declared in this scope
23 | if (p) {
| ^
laptop.cpp:24:12: error: ‘cost2’ was not declared in this scope; did you mean ‘cosf32’?
24 | if (m > cost2) {
| ^~~~~
| cosf32
laptop.cpp:29:3: error: expected ‘}’ before ‘else’
29 | else if (!p) {
| ^~~~
laptop.cpp:23:10: note: to match this ‘{’
23 | if (p) {
| ^
laptop.cpp:30:12: error: ‘cost1’ was not declared in this scope
30 | if (m > cost1) {
| ^~~~~
laptop.cpp:37:1