Problem | flamethrower |
---|---|
User | Henries |
Submission Time | 2024-09-29 16:18:08 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
flamethrower.cpp: In function ‘long long int cost(std::vector<long long int>, long long int, long long int)’:
flamethrower.cpp:8:9: error: cannot convert ‘std::vector<long long int>’ to ‘long long int’ in return
8 | return v2
| ^~
flamethrower.cpp:8:11: error: expected ‘;’ before ‘}’ token
8 | return v2
| ^
| ;
9 | }
| ~
flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:18:32: error: conversion from ‘long long int’ to non-scalar type ‘std::vector<long long int>’ requested
18 | vector<long long> costs = cost(v,n,k);
| ~~~~^~~~~~~