Problem potatosalad
User Krishh101
Submission Time 2025-12-21 19:08:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:9:2: error: ‘cin’ was not declared in this scope
9 | cin >> n >> d;
| ^~~
potatosalad.cpp:4:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
3 | #include <numeric>
+++ |+#include <iostream>
4 | using namespace std;
potatosalad.cpp:22:2: error: ‘cout’ was not declared in this scope
22 | cout << sum;
| ^~~~
potatosalad.cpp:22:2: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?