Problem laptop
User MegaG
Submission Time 2025-08-20 15:42:48
Score 0
Max Time N/A
Max Memory N/A

Compile Error

laptop.cpp: In function ‘int main()’:
laptop.cpp:5:2: error: ‘cin’ was not declared in this scope
5 | cin >> n >> m;
| ^~~
laptop.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
laptop.cpp:14:16: error: ‘min’ was not declared in this scope; did you mean ‘main’?
14 | minPapple = min(minPapple, b);
| ^~~
| main
laptop.cpp:18:16: error: ‘min’ was not declared in this scope; did you mean ‘main’?
18 | minNormal = min(minNormal, b);
| ^~~
| main
laptop.cpp:23:3: error: ‘cout’ was not declared in this scope
23 | cout << "Pan will buy a laptop made by Papple that will cost him " << minPapple << ".";
| ^~~~
laptop.cpp:23:3: note: ‘std::cout’ is defined in header ‘<