Problem | squarerect |
---|---|
User | Xiaoyang |
Submission Time | 2023-12-26 14:20:39 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
squarerect.cpp:27:6: error: expected constructor, destructor, or type conversion before ‘(’ token
27 | srand(chrono::steady_clock::now().time_since_epoch().count());
| ^
squarerect.cpp: In function ‘bool am_i_square(int, int)’:
squarerect.cpp:29:10: error: ‘rng’ was not declared in this scope
29 | ll x=rng()%n+1,y=rng()%n+1;
| ^~~
squarerect.cpp:30:27: error: ‘y’ was not declared in this scope
30 | while(!inside_shape(x,y)){
| ^
squarerect.cpp:31:19: error: invalid operands of types ‘void’ and ‘int’ to binary ‘operator%’
31 | x=srand(0)%n+1,y=srand(0)%n+1;
| ~~~~~~~~^~
| | |
| | int
| void
squarerect.cpp:31:34: error: invalid operands of types ‘void’ and ‘int’ to binary ‘operator%’
31 | x=srand(0)%n+1,y=srand(0)%n+1;
| ~~~~~~