Problem scicom
User Xavier
Submission Time 2025-06-20 13:10:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

scicom.cpp: In function ‘int main()’:
scicom.cpp:11:11: error: could not convert ‘D.std::__cxx11::basic_string<char>::operator=(((const char*)"Gold"))’ from ‘std::__cxx11::basic_string<char>’ to ‘bool’
11 | if (D = "Gold"){
| ~~^~~~~~~~
| |
| std::__cxx11::basic_string<char>
scicom.cpp:12:7: error: ‘Silver’ was not declared in this scope
12 | D = Silver;
| ^~~~~~
scicom.cpp:14:15: error: could not convert ‘D.std::__cxx11::basic_string<char>::operator=(((const char*)"Silver"))’ from ‘std::__cxx11::basic_string<char>’ to ‘bool’
14 | } else if (D = "Silver"){
| ~~^~~~~~~~~~
| |
| std::__cxx11::basic_string<char>
scicom.cpp:16:27: error: expected ‘;’ before ‘{’ token
16 | } else ( D = "Bronze"){
| ^
| ;