Problem flamethrower
User Henries
Submission Time 2024-09-29 16:17:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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:36: error: too few arguments to function ‘long long int cost(std::vector<long long int>, long long int, long long int)’
18 | vector<long long> costs = cost(v,k);
| ^
flamethrower.cpp:3:11: note: declared here
3 | long long cost(vector<long long> v,long long n,long long k){
| ^~~~