Problem | staircase |
---|---|
User | dieunq1309 |
Submission Time | 2024-07-22 08:22:06 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
staircase.cpp: In function ‘int main()’:
staircase.cpp:10:10: error: overloaded function with no contextual type information
10 | count = 0;
| ^
staircase.cpp:11:2: error: ‘start’ was not declared in this scope
11 | start = 1;
| ^~~~~
staircase.cpp:16:9: error: no post-increment operator for type
16 | count++;
| ^~
staircase.cpp:20:7: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘<unresolved overloaded function type>’)
20 | cout << count << endl;
| ~~~~~^~~~~~~~
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:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from staircase.cpp:1: