Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
125968 | 晏莞煜 | 不吉利的数 | C++ | Compile Error | 0 MS | 0 KB | 282 | 2025-07-15 16:58:55 |
#include<iostream> #include<cstring> using namespace std; int main(){ int n,m; cin>>n>>m; int sum=m-n+1,k=0; for(int i=n;i<=m;i++){ int x=i; while(x>0){ if(x%10==4 || x%100==62){ k++; break; } } x=x/10; } cout<<sum=k; return 0; }
Main.cc: In function 'int main()': Main.cc:19:11: error: no match for 'operator=' (operand types are 'std::basic_ostream' and 'int') cout<& 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&&'