prog.cpp: In function ‘int main()’:
prog.cpp:12:5: error: expected primary-expression before ‘for’
for(int i = 0;i<lenght(a);i++)
^~~
prog.cpp:12:19: error: ‘i’ was not declared in this scope
for(int i = 0;i<lenght(a);i++)
^
prog.cpp:12:29: error: ‘lenght’ was not declared in this scope
for(int i = 0;i<lenght(a);i++)
^