Problem | discharging |
---|---|
User | chenweilian |
Submission Time | 2023-11-29 15:39:37 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
discharging.cpp: In function ‘void upd(ll, ll)’:
discharging.cpp:88:18: error: conversion from ‘std::pair<long long int, long long int>’ to non-scalar type ‘Line’ requested
88 | Line lin = mp(k, b);
| ^
At global scope:
cc1plus: error: ‘::main’ must return ‘int’
discharging.cpp: In function ‘int main()’:
discharging.cpp:127:26: error: no matching function for call to ‘std::vector<Line>::push_back(std::pair<int, int>)’
127 | dq.push_back(mp(0, 0));
| ^
In file included from /usr/include/c++/9/vector:67,
from /usr/include/c++/9/functional:62,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from discharging.cpp:2:
/usr/include/c++/9/bits/stl_vector.h:1184:7: note: candidate: ‘void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp