Problem staircase
User Zixuan
Submission Time 2023-12-04 11:15:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

staircase.cpp: In function ‘int main()’:
staircase.cpp:8:9: error: overloaded function with no contextual type information
8 | count =1;
| ^
staircase.cpp:10:10: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator==’
10 | if(c[j]==count) count +=1;
| ~~~~^~~~~~~
staircase.cpp:10:27: error: overloaded function with no contextual type information
10 | if(c[j]==count) count +=1;
| ^
staircase.cpp:12:6: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘<unresolved overloaded function type>’)
12 | cout<<count;
| ~~~~^~~~~~~
In file included from /usr/include/c++/9/istream:39,
from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex