Problem squarerect
User red24
Submission Time 2023-01-29 19:07:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

squarerect.cpp: In function ‘bool am_i_square(int, int)’:
squarerect.cpp:12:8: error: ‘inside_shape’ was not declared in this scope
12 | if (inside_shape(i, j))
| ^~~~~~~~~~~~
squarerect.cpp: In function ‘int main()’:
squarerect.cpp:27:2: error: ‘ios_base’ has not been declared
27 | ios_base::sync_with_stdio(0);
| ^~~~~~~~
squarerect.cpp:28:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
28 | cin.tie(NULL); cout.tie(NULL);
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
from squarerect.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
squarerect.cpp:28:17: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
28 | cin.tie(NULL); cout.tie(NULL);
|