| Problem | justright |
|---|---|
| User | phoenixai0 |
| Submission Time | 2025-12-04 14:23:27 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
justright.cpp: In function ‘int main()’:
justright.cpp:25:21: error: conversion from ‘vector<long long int>’ to non-scalar type ‘vector<int>’ requested
25 | vector<int> q = p;
| ^
justright.cpp:33:15: error: invalid initialization of reference of type ‘const std::vector<long long int>&’ from expression of type ‘std::vector<int>’
33 | f.a(c(q, 0), 1);
| ^
justright.cpp:13:24: note: in passing argument 1 of ‘int c(const std::vector<long long int>&, l)’
13 | int c(const vector<l>& v, l x) {
| ~~~~~~~~~~~~~~~~~^
justright.cpp:39:19: error: invalid initialization of reference of type ‘const std::vector<long long int>&’ from expression of type ‘std::vector<int>’
39 | f.a(c(q, p[i]), 1);
| ^
justright.cpp:13:24: note: in passing argument 1 of ‘int c(const std::vector<long long int&g