Problem | robotbombs |
---|---|
User | Xrh999 |
Submission Time | 2024-12-30 16:14:33 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
robotbombs.cpp: In function ‘int main()’:
robotbombs.cpp:11:84: error: expected ‘;’ before ‘count’
11 | if ((arr[i] == 'L' && arr[i - 1] == 'R') || (arr[i] == 'R' && arr[i - 1] == 'L' ) count++;
| ^~~~~~
| ;
robotbombs.cpp:12:2: error: expected primary-expression before ‘}’ token
12 | }
| ^
robotbombs.cpp:11:93: error: expected ‘)’ before ‘}’ token
11 | if ((arr[i] == 'L' && arr[i - 1] == 'R') || (arr[i] == 'R' && arr[i - 1] == 'L' ) count++;
| ~ ^
| )
12 | }
| ~