Main.cc: In function ‘int main()’:
Main.cc:17:3: error: ‘cnt’ was not declared in this scope
cnt+=f[i]+f[i+1];
^~~
Main.cc:17:3: note: suggested alternative: ‘int’
cnt+=f[i]+f[i+1];
^~~
int
Main.cc:19:11: error: ‘cnt’ was not declared in this scope
cout<