Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
133686 周佳豪 05求百位数的每一位数之和 C++ Compile Error 0 MS 0 KB 159 2025-10-20 17:01:45

Tests(0/0):


Code:

#include <iostream> using namespace std; int main(){ int a,b,c; cin cin>> b=a%10+a/100; c=a%100-(a%10); d=a/100 coun<<a; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:5:5: error: expected ';' before 'cin'
     cin>>
     ^
Main.cc:6:17: warning: statement has no effect [-Wunused-value]
     b=a%10+a/100;
                 ^
Main.cc:8:5: error: 'd' was not declared in this scope
     d=a/100
     ^
Main.cc:4:11: warning: unused variable 'b' [-Wunused-variable]
     int a,b,c; cin
           ^