Problem | flamethrower |
---|---|
User | wongethan8192 |
Submission Time | 2023-02-10 17:46:23 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:12:5: error: overloaded function with no contextual type information
12 | max=0;
| ^
flamethrower.cpp:13:32: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator>’
13 | for(int b=0;b<a-b+1;b++)if(z[b]>max)max=z[b];cout<<max;}
| ~~~~^~~~
flamethrower.cpp:13:44: error: overloaded function with no contextual type information
13 | for(int b=0;b<a-b+1;b++)if(z[b]>max)max=z[b];cout<<max;}
| ^
flamethrower.cpp:13:50: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘<unresolved overloaded function type>’)
13 | for(int b=0;b<a-b+1;b++)if(z[b]>max)max=z[b];cout<<max;}
| ~~~~^~~~~