Problem fraud
User Hengweezy
Submission Time 2024-03-15 22:29:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fraud.cpp: In function ‘int main()’:
fraud.cpp:13:29: error: conflicting declaration ‘std::pair<long long int, long long int> max’
13 | pair<long long, long long> max = {1, max};
| ^~~
fraud.cpp:9:18: note: previous declaration as ‘const long long int max’
9 | const long long max = 100000000000;
| ^~~
fraud.cpp:48:19: error: request for member ‘first’ in ‘max’, which is of non-class type ‘const long long int’
48 | if(ydiff * max.first < xdiff * max.second){
| ^~~~~
fraud.cpp:48:39: error: request for member ‘second’ in ‘max’, which is of non-class type ‘const long long int’
48 | if(ydiff * max.first < xdiff * max.second){
| ^~~~~~
fraud.cpp:49:9: error: request for member ‘first’ in ‘max’, which is of non-class type ‘const long long int’
49 | max.first = abs(xdiff);
|