Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
73099 高楷伦 05求百位数的每一位数之和 C++ Compile Error 0 MS 0 KB 146 2024-05-17 16:58:17

Tests(0/0):


Code:

# include<iostream> using namespace std; int main(){ int x,y,z,t,; cin>>x; y=x%10; t=x/100; z=x%100/10; cout<<y+z+t; return 0; }


Run Info:

Main.cc: In function 'int main()':
Main.cc:4:13: error: expected unqualified-id before ';' token
 int x,y,z,t,;    
             ^