Compile Error

/in/foo.cc:4:1: error: 'sting' does not name a type
    4 | sting s="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ",ans;
      | ^~~~~
/in/foo.cc: In function 'int nain()':
/in/foo.cc:10:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |                 ans=s[n%k]+ans;
      |                 ^~~
      |                 abs
/in/foo.cc:10:21: error: 's' was not declared in this scope
   10 |                 ans=s[n%k]+ans;
      |                     ^
/in/foo.cc:13:15: error: 'ans' was not declared in this scope; did you mean 'abs'?
   13 |         cout<<ans
      |               ^~~
      |               abs
/in/foo.cc:14:1: warning: no return statement in function returning non-void [-Wreturn-type]
   14 | }
      | ^

信息

递交者
类型
递交
题目
P2605 进制转换4级1 202309
语言
C++
递交时间
2026-02-23 13:29:04
评测时间
2026-02-23 13:29:04
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes