Problem boxispull
User Memeathon
Submission Time 2025-02-09 10:42:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

boxispull.cpp:4:20: error: redefinition of ‘int y2’
4 | int t, x1, x2, y2, y2;
| ^~
boxispull.cpp:4:16: note: ‘int y2’ previously declared here
4 | int t, x1, x2, y2, y2;
| ^~
boxispull.cpp: In function ‘int main()’:
boxispull.cpp:8:13: error: no match for ‘operator>>’ (operand types are ‘std::basic_istream<char>::__istream_type’ {aka ‘std::basic_istream<char>’} and ‘double(double) noexcept’)
8 | cin >> x1 >> y1 >> x3 >> 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/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/st