Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
158198 林睿 计算a-=2 C++ Compile Error 0 MS 0 KB 100 2026-08-20 17:09:33

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int a; cin>>a; cout<<a+=2; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:6:12: error: no match for 'operator+=' (operand types are 'std::basic_ostream' and 'int')
     cout<