Problem robotbombs
User darius0
Submission Time 2024-12-30 17:31:48
Score 0
Max Time N/A
Max Memory N/A

Compile Error

robotbombs.cpp: In function ‘int main()’:
robotbombs.cpp:14:16: error: invalid type argument of unary ‘*’ (have ‘__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type’ {aka ‘char’})
14 | if(*s[i] == "R") rf++;
| ^
robotbombs.cpp:15:21: error: invalid type argument of unary ‘*’ (have ‘__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type’ {aka ‘char’})
15 | else if(*s[i] == "L") lf++;
| ^