Main.cc: In function 'int main()': Main.cc:6:8: error: 'a' was not declared in this scope int m=a[0]-'0'; ^