Compile Error

foo.cc: In function 'int main()':
foo.cc:16:6: error: 'n' was not declared in this scope
   16 |   if(n==2)
      |      ^
foo.cc:18:4: error: 'c' was not declared in this scope
   18 |    c=(i/10%10)+(i/100);
      |    ^
foo.cc:34:6: error: 'n' was not declared in this scope
   34 |   if(n==2)
      |      ^
foo.cc:36:4: error: 'c' was not declared in this scope
   36 |    c=(i/10%10)+(i/100);
      |    ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1115 满足条件的3位整数(2)
语言
C++
递交时间
2022-06-12 11:50:50
评测时间
2022-06-12 11:50:50
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes