Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:5:18: error: 'll' was not declared in this scope
    5 |         string n;ll int ans=0,cnt=0;
      |                  ^~
/in/foo.cc:6:18: error: expected ';' before 't'
    6 |         cin>>n;ll t=n.size();
      |                  ^~
      |                  ;
/in/foo.cc:7:15: error: 't' was not declared in this scope
    7 |         while(t--)
      |               ^
/in/foo.cc:8:17: error: 'ans' was not declared in this scope; did you mean 'abs'?
    8 |                 ans+=pow(8,cnt)*n[t],cnt++;
      |                 ^~~
      |                 abs
/in/foo.cc:8:28: error: 'cnt' was not declared in this scope; did you mean 'int'?
    8 |                 ans+=pow(8,cnt)*n[t],cnt++;
      |                            ^~~
      |                            int
/in/foo.cc:9:15: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |         cout<<ans;
      |               ^~~
      |               abs

信息

递交者
类型
递交
题目
P2933 八进制转十进制
语言
C++
递交时间
2025-10-19 17:16:49
评测时间
2025-10-19 17:16:49
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes