Problem potatosalad
User Veera
Submission Time 2024-06-23 10:09:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:7:5: error: ‘cin’ was not declared in this scope
7 | cin >> N >> D;
| ^~~
potatosalad.cpp:3:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
2 | #include <algorithm>
+++ |+#include <iostream>
3 | using namespace std;
potatosalad.cpp:25:5: error: ‘cout’ was not declared in this scope
25 | cout << max_potato << endl;
| ^~~~
potatosalad.cpp:25:5: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
potatosalad.cpp:25:27: error: ‘endl’ was not declared in this scope
25 | cout << max_potato << endl;
| ^~~~
potatosalad.cpp:3:1: note: ‘std::endl’ is defined in header ‘<ostream>’; did you forget to ‘#include <ostream>’?
2 | #include