| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 149365 | zlx | 02长方形的面积 | C++ | Compile Error | 0 MS | 0 KB | 112 | 2026-03-09 17:25:07 |
#include<bits/stdc++.h> using namespace std; int main(){ int a=1000,b=220; cout<<1000-4*b=120; }
Main.cc: In function 'int main()':
Main.cc:5:18: error: no match for 'operator=' (operand types are 'std::basic_ostream' and 'int')
cout<<1000-4*b=120;
^
In file included from /usr/include/c++/5/istream:39:0,
from /usr/include/c++/5/sstream:38,
from /usr/include/c++/5/complex:45,
from /usr/include/c++/5/ccomplex:38,
from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:52,
from Main.cc:1:
/usr/include/c++/5/ostream:402:7: note: candidate: std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator=(std::basic_ostream<_CharT, _Traits>&&) [with _CharT = char; _Traits = std::char_traits]
operator=(basic_ostream&& __rhs)
^
/usr/include/c++/5/ostream:402:7: note: no known conversion for argument 1 from 'int' to 'std::basic_ostream&&'
Main.cc:4:8: warning: unused variable 'a' [-Wunused-variable]
int a=1000,b=220;
^