Problem collectmushrooms6
User hihihi
Submission Time 2022-12-26 12:37:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

collectmushrooms6.cpp: In function ‘int T2_3_4()’:
collectmushrooms6.cpp:90:15: error: ‘si’ was not declared in this scope; did you mean ‘sj’?
90 | if (Map[si * C + sj] == 'S') {
| ^~
| sj
collectmushrooms6.cpp:96:9: error: ‘k’ was not declared in this scope
96 | if (k >= K) {
| ^
collectmushrooms6.cpp: At global scope:
collectmushrooms6.cpp:102:7: error: ‘cout’ in namespace ‘std’ does not name a type
102 | std::cout << count << std::endl;
| ^~~~
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
from collectmushrooms6.cpp:1:
/usr/include/c++/9/iostream:61:18: note: ‘std::cout’ declared here
61 | extern ostream cout; /// Linked to standard output
| ^~~~
collectmushrooms6.cpp:103:2: error: expected unqualified-id before ‘return’
103 | return 0;
| ^~~~~~