Compile Error

foo.cc: In function 'int main()':
foo.cc:10:2: error: 'i2' was not declared in this scope; did you mean 'i1'?
   10 |  i2=i/10%10;
      |  ^~
      |  i1
foo.cc:11:2: error: 'i3' was not declared in this scope; did you mean 'i1'?
   11 |  i3=i%100%10;
      |  ^~
      |  i1
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1003 求一个整数的各位数字之和
语言
C++
递交时间
2022-07-12 14:00:24
评测时间
2022-07-12 14:01:07
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes