Problem | squarerect |
---|---|
User | Xiaoyang |
Submission Time | 2023-12-26 14:20:28 |
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:17: error: too few arguments to function ‘void srand(unsigned int)’
31 | x=srand()%n+1,y=srand()%n+1;
| ^
In file included from /usr/include/c++/9/bits/std_abs.h:38,
from /usr/include/c++/9/cmath:47,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from squarerect.cpp:2:
/usr/include/stdlib.h:455:13: note: declared here
45