Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
142165 成书骏 15五位数数字之和 C++ Compile Error 0 MS 0 KB 362 2025-12-31 19:17:19

Tests(0/0):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int n,y=0; cin>>n; for(int i=1;i<=n;i++){ y+=n%10; n/=10; } cout<<y;


Run Info:

Main.cc: In function 'int main()':
Main.cc:14:12: error: expected '}' at end of input
     cout<