Problem | maximum |
---|---|
User | smartsword |
Submission Time | 2025-02-17 16:17:37 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
maximum.cpp: In function ‘int main()’:
maximum.cpp:8:23: error: expected primary-expression before ‘>>’ token
8 | if (a > b){ cout; >> a };
| ^~
maximum.cpp:9:5: error: ‘else’ without a previous ‘if’
9 | else (b > a);{cout >> b };
| ^~~~
maximum.cpp:9:24: error: no match for ‘operator>>’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘int’)
9 | else (b > a);{cout >> b };
| ~~~~ ^~ ~
| | |
| | int
| std::ostream {aka std::basic_ostream<char>}
maximum.cpp:9:24: note: candidate: ‘operator>>(int, int)’ <built-in>
9 | else (b > a);{cout >> b };
| ~~~~~^~~~
maximum.cpp:9:24: note: no known conversion for argument 1 from ‘std::ostream’ {aka ‘std::basi