Problem boxispull
User chenyuming
Submission Time 2026-11-03 12:58:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

boxispull.cpp: In function ‘int main()’:
boxispull.cpp:8:6: error: ‘i’ was not declared in this scope
8 | for(i = 0; i < t; i++){
| ^
boxispull.cpp:9:19: error: ‘y2’ was not declared in this scope; did you mean ‘x2’?
9 | int x1, x2; y1, y2;
| ^~
| x2
boxispull.cpp:10:19: error: no match for ‘operator>>’ (operand types are ‘std::basic_istream<char>::__istream_type’ {aka ‘std::basic_istream<char>’} and ‘double(double) noexcept’)
10 | cin >> x1 >> x2 >> y1 >> y2;
| ~~~~~~~~~~~~~~~ ^~ ~~
| | |
| | double(double) noexcept
| std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}
In file included from /usr/include/c++/9/sstream:38,
from /usr/include/c++/9/complex:45,
from /usr/include/c++/9/