Problem | flamethrower |
---|---|
User | 3lvian |
Submission Time | 2023-04-10 15:22:52 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:20:9: error: request for member ‘push_back’ in ‘trees’, which is of non-class type ‘std::vector<int> [n]’
20 | trees.push_back(val);
| ^~~~~~~~~
flamethrower.cpp:24:30: error: request for member ‘begin’ in ‘trees’, which is of non-class type ‘std::vector<int> [n]’
24 | int sum = accumulate(trees.begin(),trees.end(),0);
| ^~~~~
flamethrower.cpp:24:44: error: request for member ‘end’ in ‘trees’, which is of non-class type ‘std::vector<int> [n]’
24 | int sum = accumulate(trees.begin(),trees.end(),0);
| ^~~
flamethrower.cpp:26:22: error: expected ‘;’ before ‘}’ token
26 | sums.push_back(sum)
| ^
| ;
27 | }
| ~
flamethrower.cpp:29:7: error: no match for ‘operator<