Problem collectmushrooms6
User asbx
Submission Time 2023-11-15 11:57:49
Score 0
Max Time N/A
Max Memory N/A

Compile Error

collectmushrooms6.cpp: In function ‘int main()’:
collectmushrooms6.cpp:35:76: error: expected ‘;’ before ‘}’ token
35 | if (ss[x2][y2] - ss[x1-1][y2] - ss[x2][y1-1] + ss[x1-1][y1-1]>=k) ans++
| ^
| ;
36 | }
| ~
collectmushrooms6.cpp:39:6: error: no match for ‘operator>>’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘int’)
39 | cout>>ans;
| ~~~~^~~~~
| | |
| | int
| std::ostream {aka std::basic_ostream<char>}
collectmushrooms6.cpp:39:6: note: candidate: ‘operator>>(int, int)’ <built-in>
39 | cout>>ans;
| ~~~~^~~~~
collectmushrooms6.cpp:39:6: note: no known conversion