Main.cc: In function ‘int main()’: Main.cc:4:21: error: invalid operands of types ‘const char [9]’ and ‘int’ to binary ‘operator&’ scanf("%d %d %d"&a,&b,&c); ~~~~~~~~~~^~