Main.cc: In function 'int main()': Main.cc:10:9: error: 's' was not declared in this scope s++; ^ Main.cc:11:9: error: 'b' was not declared in this scope b=i*(i+1); ^