Problem | scicom |
---|---|
User | roycedaboss |
Submission Time | 2025-06-20 13:00:44 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
scicom.cpp: In function ‘int main()’:
scicom.cpp:5:1: error: ‘define’ was not declared in this scope
5 | define int long long;
| ^~~~~~
scicom.cpp:6:18: error: expected primary-expression before ‘<<’ token
6 | int name, medal; <<"\n";
| ^~
scicom.cpp:7:23: error: no match for ‘operator<<’ (operand types are ‘std::basic_ostream<char>’ and ‘std::istream’ {aka ‘std::basic_istream<char>’})
7 | cout << "name, medal" << cin >> name >> medal <<"\n";
| ~~~~~~~~~~~~~~~~~~~~~ ^~ ~~~
| | |
| | std::istream {aka std::basic_istream<char>}
| std::basic_ostream<char>
scicom.cpp:7:23: note: candidate: ‘operator<<(int, int)’ <built-in>
7 | cout << "name, medal" << cin >> name >> medal <<"\n";
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~