Problem scicom
User Xavier
Submission Time 2025-06-20 14:04:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

scicom.cpp: In function ‘int main()’:
scicom.cpp:8:19: error: invalid cast from type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} to type ‘char’
8 | int N = char(s);
| ^
scicom.cpp:9:19: error: invalid cast from type ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} to type ‘char’
9 | int M = char(m);
| ^
scicom.cpp:12:9: error: break statement not within loop or switch
12 | break;
| ^~~~~
scicom.cpp:15:5: error: expected primary-expression before ‘)’ token
15 | )
| ^
scicom.cpp:17:9: error: break statement not within loop or switch
17 | break;
| ^~~~~
scicom.cpp:20:5: error: expected primary-expression before ‘)’ token
20 | )
| ^