Problem scicom
User SirCTan
Submission Time 2026-02-02 15:53:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

scicom.cpp:4:1: error: ‘::main’ must return ‘int’
4 | char main () {
| ^~~~
scicom.cpp: In function ‘int main()’:
scicom.cpp:5:10: error: ‘Pan’ was not declared in this scope
5 | char a = Pan;
| ^~~
scicom.cpp:6:10: error: ‘Silver’ was not declared in this scope
6 | char b = Silver;
| ^~~~~~
scicom.cpp:7:6: error: no match for ‘operator<<’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘char’)
7 | cin << a << b;
| ~~~ ^~ ~
| | |
| | char
| std::istream {aka std::basic_istream<char>}
scicom.cpp:7:6: note: candidate: ‘operator<<(int, int)’ <built-in>
7 | cin << a << b;
| ~~~~^~~~
scicom.cpp:7:6: note: no known conversion for argument 1 from ‘std::istream’ {aka ‘std::basic_istream<char>’} to ‘int’
In file included from /usr/include/c++/9/bits/b