Problem topsilver
User rjdaddy69
Submission Time 2026-06-26 13:48:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

topsilver.cpp: In function ‘int main()’:
topsilver.cpp:6:12: error: lvalue required as left operand of assignment
6 | "X"- 1 ='Y';
| ^~~
topsilver.cpp:7:14: error: lvalue required as left operand of assignment
7 | int 'X' = 185, 'Y' = 184;
| ^~~
topsilver.cpp:7:25: error: lvalue required as left operand of assignment
7 | int 'X' = 185, 'Y' = 184;
| ^~~
topsilver.cpp:8:8: error: no match for ‘operator>>’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘char’)
8 | cin >> 'X' = 185;
| ~~~ ^~ ~~~
| | |
| | char
| std::istream {aka std::basic_istream<char>}
In file included from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/ccomplex:39,
from /usr/include/x8