char ope = '+'
int num1 = 5;
int num2 = 7;
int ans;

ans = (num1 ope num2);

これで実行するとエラーが生じてしまいます。
どうしてでしょうか?アドバイスがありましたら
よろしくお願い致します。