Problem | psle |
---|---|
User | YII1719 |
Submission Time | 2023-11-08 14:42:21 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
psle.cpp: In function ‘int main()’:
psle.cpp:5:5: error: expected initializer before ‘cin’
5 | cin >> score
| ^~~
psle.cpp:9:3: error: ‘else’ without a previous ‘if’
9 | else if (90 <= score >= 75) {
| ^~~~
psle.cpp:9:18: error: ‘score’ was not declared in this scope
9 | else if (90 <= score >= 75) {
| ^~~~~
psle.cpp:10:8: error: no match for ‘operator>>’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘char’)
10 | cout>> 'A';
| ~~~~^~ ~~~
| | |
| | char
| std::ostream {aka std::basic_ostream<char>}
psle.cpp:10:8: note: candidate: ‘operator>>(int, int)’ <built-in>
10 | cout>> 'A';
| ~~~~^~~~~~
psle.cpp:10:8: note: no known conversion for argument 1 from ‘std::ostream’ {aka ‘std::basic_ostream<char>’} to ‘int’
In