Problem slimes
User Khai
Submission Time 2024-06-28 15:49:32
Score 0
Max Time N/A
Max Memory N/A

Compile Error

slimes.cpp:2:20: error: expected ‘;’ before ‘int’
2 | using namespace std
| ^
| ;
3 |
4 | int main (){
| ~~~
slimes.cpp: In function ‘int main()’:
slimes.cpp:5:11: error: expected initializer before ‘==’ token
5 | int n, r == 0;
| ^~
slimes.cpp:11:10: error: ‘r’ was not declared in this scope
11 | a = p ,r++;}
| ^
slimes.cpp:12:15: error: ‘r’ was not declared in this scope
12 | cout << n - r << endl
| ^