| Problem | scicom |
|---|---|
| User | SirCTan |
| Submission Time | 2026-02-02 15:52:38 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
scicom.cpp: In function ‘int main()’:
scicom.cpp:5:13: error: ‘Pan’ was not declared in this scope
5 | char name = Pan;
| ^~~
scicom.cpp:6:14: error: ‘Silver’ was not declared in this scope
6 | char medal = Silver;
| ^~~~~~
scicom.cpp:7:6: error: no match for ‘operator<<’ (operand types are ‘std::istream’ {aka ‘std::basic_istream<char>’} and ‘char’)
7 | cin << name << medal;
| ~~~ ^~ ~~~~
| | |
| | char
| std::istream {aka std::basic_istream<char>}
scicom.cpp:7:6: note: candidate: ‘operator<<(int, int)’ <built-in>
7 | cin << name << medal;
| ~~~~^~~~~~~
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/basic_string.h:48,
from /usr/include/c++/9