| Problem | squarerect |
|---|---|
| User | justin271828 |
| Submission Time | 2025-03-03 11:57:24 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
squarerect.cpp: In function ‘bool am_i_square(int, int)’:
squarerect.cpp:8:8: error: ‘inside_shape’ was not declared in this scope
8 | if (inside_shape(x, y)) {
| ^~~~~~~~~~~~
squarerect.cpp:11:7: error: ‘x’ was not declared in this scope
11 | for (x = 80; x > 0; x -= 20) {
| ^
squarerect.cpp:13:7: error: ‘inside_shape’ was not declared in this scope
13 | if (inside_shape(x, 0)) {
| ^~~~~~~~~~~~
squarerect.cpp:14:16: error: no match for ‘operator=’ (operand types are ‘std::pair<int, int>’ and ‘<brace-enclosed initializer list>’)
14 | temp = {x, 0};
| ^
In file included from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from squarerect.cpp:1: