Accepted

foo.cc: In function 'int main()':
foo.cc:8:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
    8 |     while(C=C/10) B=B+C%10;
      |           ~^~~~~
foo.cc:4:12: warning: unused variable 'i' [-Wunused-variable]
    4 | {int A,B,C,i;
      |            ^
foo.cc:5:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    5 | scanf("%d",&A);
      | ~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 384.0 KiB
#2 Accepted 4ms 384.0 KiB
#3 Accepted 2ms 384.0 KiB
#4 Accepted 2ms 384.0 KiB
#5 Accepted 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1033 任意整数的数字之和。
语言
C++
递交时间
2022-07-09 21:22:07
评测时间
2022-07-09 21:22:07
评测机
分数
100
总耗时
16ms
峰值内存
384.0 KiB