Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:10:17: error: 'x' was not declared in this scope
   10 |                 x=x*10+s%10;
      |                 ^
/in/foo.cc:13:12: error: 'x' was not declared in this scope
   13 |         if(x==n)
      |            ^
/in/foo.cc:5:17: warning: unused variable 'z' [-Wunused-variable]
    5 |         int n,s,z=0;
      |                 ^

信息

递交者
类型
递交
题目
P1718 判断回文数
语言
C++
递交时间
2025-03-14 20:33:18
评测时间
2025-03-14 20:33:18
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes