Main.cc: In function 'int main()': Main.cc:19:13: error: expected ';' before '{' token ndd = a[i]{ ^ Main.cc:25:1: error: expected '}' at end of input } ^ Main.cc:25:1: error: expected '}' at end of input