Problem reinforcement
User xlpaun
Submission Time 2025-12-01 17:49:01
Score 0
Max Time N/A
Max Memory N/A

Compile Error

reinforcement.cpp: In function ‘int main()’:
reinforcement.cpp:5:49: error: expected ‘;’ before ‘int’
5 | srand(static_cast<unsigned int>(time(nullptr)))
| ^
| ;
6 | int x = (rand() % 1);
| ~~~
reinforcement.cpp:7:12: error: expected initializer before ‘==’ token
7 | if (int x == 0){
| ^~
reinforcement.cpp:7:11: error: expected ‘)’ before ‘==’ token
7 | if (int x == 0){
| ~ ^~~
| )