Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
126005 | 陈淮遇 | 05求百位数的每一位数之和 | C++ | Compile Error | 0 MS | 0 KB | 173 | 2025-07-15 17:11:11 |
#include<bits/stdc++.h> using namespace std; int main() { int a=b+c+d; int b=b*100; int c=c*10; int d; int e=b+c+d; cin>>a>>b>>c>>d; cout <<e; return 0; }
Main.cc: In function 'int main()': Main.cc:4:8: error: 'b' was not declared in this scope int a=b+c+d; ^ Main.cc:4:10: error: 'c' was not declared in this scope int a=b+c+d; ^ Main.cc:4:12: error: 'd' was not declared in this scope int a=b+c+d; ^