Problem lightningrod
User Dynonychus
Submission Time 2023-12-31 19:27:38
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lightningrod.cpp: In function ‘int main()’:
lightningrod.cpp:70:73: error: expected ‘;’ before ‘c’
70 | else if((i==0 || veco.at(i-1) == 0) && (i==(n-1) || veco.at(i+1) == 0)
| ^
| ;
71 | c++;
| ~
lightningrod.cpp:72:3: error: expected primary-expression before ‘}’ token
72 | }
| ^
lightningrod.cpp:71:9: error: expected ‘)’ before ‘}’ token
71 | c++;
| ^
| )
72 | }
| ~
lightningrod.cpp:70:10: note: to match this ‘(’
70 | else if((i==0 || veco.at(i-1) == 0) && (i==(n-1) || veco.at(i+1) == 0)
| ^
lightningrod.cpp:72:3: error: expected primary-expression before ‘}’ token
72 | }
| ^