0 Compile Error

Traceback (most recent call last):
  File "/usr/lib/python3.6/py_compile.py", line 125, in compile
    _optimize=optimize)
  File "<frozen importlib._bootstrap_external>", line 741, in source_to_code
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/w/foo.py", line 2
    using namespace std;
                  ^
SyntaxError: invalid syntax

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib/python3.6/py_compile.py", line 129, in compile
    raise py_exc
py_compile.PyCompileError:   File "/w/foo.py", line 2
    using namespace std;
                  ^
SyntaxError: invalid syntax

代码

#include <iostream>
using namespace std;
int main()
{
    int a, b, c, sum;
    cin >> a >> d >> c; 
    sum = (a + b) * (c - b)
    cout << sum;
    return 0;
}

信息

递交者
题目
DJKS1002  计算 (a+b)*(c-b) 的值
比赛
2024年3月等考一级题单
语言
Python 3
递交时间
1 年前
评测时间
1 年前
分数
0
总耗时
0ms
峰值内存
0 Bytes