Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
4177 张文曦 09计算算数表达式 C++ Compile Error 0 MS 0 KB 394 2024-08-13 15:46:29

Tests(0/0):


Code:

#include<iostream> using namespace std; int main(){ int a,b; char op; cin>>a>>op>>b; switch(op){ case '+': cout<<a+b; break; case '-': cout<<a-b; break; case '*': cout<<a*b; break; case '/': cout<<a/b; break; } return 0 }


Run Info:

Main.cc: In function 'int main()':
Main.cc:22:1: error: expected ';' before '}' token
 }
 ^