Problem collectmushrooms6
User cobnet
Submission Time 2023-02-08 18:11:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

collectmushrooms6.cpp: In function ‘int main()’:
collectmushrooms6.cpp:6:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
6 | cin >> height >> breadth;
| ^~~
| std::cin
In file included from collectmushrooms6.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
collectmushrooms6.cpp:31:20: error: expected ‘;’ before ‘}’ token
31 | if(s1 < 0){s1 = 0}
| ^
| ;
collectmushrooms6.cpp:32:20: error: expected ‘;’ before ‘}’ token
32 | if(s2 < 0){s2 = 0}
| ^
| ;
collectmushrooms6.cpp:33:30: error: expected ‘;’ before ‘}’ token
33 | if(s3 > height){s3 = height}
| ^
| ;
collectmushro