Problem laptop
User chairta
Submission Time 2026-06-22 16:59:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

laptop.cpp: In function ‘int main()’:
laptop.cpp:6:2: error: ‘cin’ was not declared in this scope
6 | cin >> n >> m;
| ^~~
laptop.cpp:26:2: error: ‘string’ was not declared in this scope
26 | string x = "made by";
| ^~~~~~
laptop.cpp:27:20: error: ‘x’ was not declared in this scope
27 | if (tchoice == 0) x = "not made by";
| ^
laptop.cpp:29:3: error: ‘cout’ was not declared in this scope
29 | cout << "NA";
| ^~~~
laptop.cpp:31:3: error: ‘cout’ was not declared in this scope
31 | cout << "Pan will buy a laptop " << x << " Papple that will cost him " << cchoice << ".";
| ^~~~
laptop.cpp:31:39: error: ‘x’ was not declared in this scope
31 | cout << "Pan will buy a laptop " << x << " Papple that will cost him " << cchoice << ".";
| ^