Main.cc: In function 'int main()': Main.cc:15:16: error: expected primary-expression before '<=' token for(int i = 2;<=b;i++){ ^ Main.cc:23:1: error: expected '}' at end of input } ^