Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
115749 刘佳宇 不吉利的数 C++ Compile Error 0 MS 0 KB 256 2025-04-04 10:28:37

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main(){ int n,m,sum=0,b; int k; cin>>n>>m; for(int i=n;i<=m;i++){ k=i; while(k>0){ if(k%10==4||k%100==62){ sum++; } k=k/10 } } cout<<m-n+1-sum; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:14:6: error: expected ';' before '}' token
      }
      ^
Main.cc:4:16: warning: unused variable 'b' [-Wunused-variable]
  int n,m,sum=0,b;
                ^