Problem snail
User Vinayak01
Submission Time 2024-02-19 18:27:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

snail.cpp: In function ‘std::vector<long long int> prefix(std::vector<long long int>)’:
snail.cpp:6:22: error: expected ‘;’ before ‘for’
6 | result[0] = array[0]
| ^
| ;
7 | for(int i = 0;i< array.size();i++){
| ~~~
snail.cpp:7:16: error: ‘i’ was not declared in this scope
7 | for(int i = 0;i< array.size();i++){
| ^
snail.cpp:12:11: error: a function-definition is not allowed here before ‘{’ token
12 | int main(){
| ^
snail.cpp: At global scope:
snail.cpp:79:3: error: expected declaration before ‘}’ token
79 | }
| ^