Problem foodchain
User ToiletBrIcker
Submission Time 2025-01-06 12:19:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

foodchain.cpp: In function ‘int main()’:
foodchain.cpp:6:3: error: ‘cin’ was not declared in this scope
6 | cin >> j;h*=j;
| ^~~
foodchain.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
foodchain.cpp:7:3: error: ‘cout’ was not declared in this scope
7 | }cout << h;
| ^~~~
foodchain.cpp:7:3: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?