/ Vijos /

记录详情

Compile Error

foo.cc:3:7: error: expected nested-name-specifier before ‘long’
    3 | using long long =ll;
      |       ^~~~
foo.cc:4:1: error: ‘ll’ does not name a type
    4 | ll n,ans[12];
      | ^~
foo.cc: In function ‘int main()’:
foo.cc:7:14: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
    7 |         cin>>n>>x;
      |              ^
      |              yn
foo.cc:8:13: error: ‘ll’ was not declared in this scope
    8 |         for(ll i=1;i<=n;i++){
      |             ^~
foo.cc:8:20: error: ‘i’ was not declared in this scope
    8 |         for(ll i=1;i<=n;i++){
      |                    ^
foo.cc:12:17: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
   12 |                 ans[m]++;
      |                 ^~~
      |                 abs
foo.cc:16:15: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
   16 |         cout<<ans[x]<<endl;
      |               ^~~
      |               abs

信息

递交者
类型
递交
题目
P1848 记数问题
语言
C++
递交时间
2025-02-12 01:10:26
评测时间
2025-02-12 01:10:26
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes