Problem sequence_apio
User mertbbm
Submission Time 2023-05-06 18:07:15
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sequence_apio.cpp: In function ‘long long int f(std::pair<long long int, long long int>, long long int)’:
sequence_apio.cpp:10:20: error: request for member ‘first’ in ‘line.std::pair<long long int, long long int>::first’, which is of non-class type ‘long long int’
10 | return line.first.first * x + line.first.second;
| ^~~~~
sequence_apio.cpp:10:43: error: request for member ‘second’ in ‘line.std::pair<long long int, long long int>::first’, which is of non-class type ‘long long int’
10 | return line.first.first * x + line.first.second;
| ^~~~~~
sequence_apio.cpp: In function ‘void ins(long long int, long long int, long long int)’:
sequence_apio.cpp:29:41: error: no matching function for call to ‘make_pair(<brace-enclosed initializer list>, long long int&)’
29 | pair<pii,int> line = make_pair({m,c},id);
|