Problem psle
User Gj
Submission Time 2026-04-01 13:46:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

psle.cpp: In function ‘int main()’:
psle.cpp:6:117: error: invalid operands of types ‘const char [2]’ and ‘<unresolved overloaded function type>’ to binary ‘operator<<’
6 | cout << (n > 90) ? "A*" : (n > 74) ? "A" : (n > 59) ? "B" : (n > 49) ? "C" : (n > 34) ? "D" : (n > 19) ? "E" : "U" << endl;
| ~~~~^~~~~~~
psle.cpp: At global scope:
psle.cpp:8:1: error: ‘A’ does not name a type
8 | A*: 91 and above
| ^