Main.cc: In function 'int main()': Main.cc:13:3: error: 'e' was not declared in this scope e=d; ^ Main.cc:16:3: error: 'else' without a previous 'if' else{ ^ Main.cc:22:2: error: expected '}' at end of input } ^ Main.cc:22:2: error: expected '}' at end of input Main.cc:5:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d,%d", &a, &b); ^