Problem flamethrower
User auser24241
Submission Time 2026-02-19 20:06:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:7:18: error: conversion from ‘int’ to non-scalar type ‘std::vector<int>’ requested
7 | vector<int> v = int(n)
| ^~~~~~
flamethrower.cpp:8:12: error: ‘i’ was not declared in this scope
8 | for (i=0; i<n; i++){
| ^
flamethrower.cpp:11:7: error: ‘j’ was not declared in this scope
11 | for (j=0; j<v.size()-k+1; j++){
| ^
flamethrower.cpp:18:17: error: expected ‘;’ before ‘}’ token
18 | largest = sum
| ^
| ;
19 | }
| ~
flamethrower.cpp:21:10: error: ‘largest’ was not declared in this scope
21 | cout << largest
| ^~~~~~~