Problem | fertile |
---|---|
User | PlayVoltz |
Submission Time | 2024-01-09 12:29:02 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fertile.cpp: In function ‘void insert(long long int, long long int, long long int)’:
fertile.cpp:30:10: error: conversion from ‘line’ to non-scalar type ‘std::pair<long long int, long long int>’ requested
30 | pii l = line(m, c, id);
| ^~~~~~~~~~~~~~
fertile.cpp:37:31: error: expected primary-expression before ‘)’ token
37 | if (intersect(cht[s-1], line)<=intersect(cht[s-2], line))cht.pop_back();
| ^
fertile.cpp:37:58: error: expected primary-expression before ‘)’ token
37 | if (intersect(cht[s-1], line)<=intersect(cht[s-2], line))cht.pop_back();
| ^
fertile.cpp:40:17: error: no matching function for call to ‘std::deque<line>::push_back(std::pair<long long int, long long int>&)’
40 | cht.push_back(l);
| ^
In file included from /usr/include/c++/9/deque:67,