/ Vijos /

记录详情

Compile Error

foo.cc:9:24: error: extended character − is not valid in an identifier
    9 |                 f[i]=f[i−1]*(4∗i−2)/(i+1);
      |                        ^
foo.cc:9:30: error: extended character ∗ is not valid in an identifier
    9 |                 f[i]=f[i−1]*(4∗i−2)/(i+1);
      |                              ^
foo.cc:9:30: error: extended character − is not valid in an identifier
foo.cc: In function ‘int main()’:
foo.cc:9:24: error: ‘i−1’ was not declared in this scope
    9 |                 f[i]=f[i−1]*(4∗i−2)/(i+1);
      |                        ^~~
foo.cc:9:30: error: unable to find numeric literal operator ‘operator""∗i−2’
    9 |                 f[i]=f[i−1]*(4∗i−2)/(i+1);
      |                              ^~~~~
foo.cc:9:30: note: use ‘-fext-numeric-literals’ to enable more built-in suffixes

信息

递交者
类型
自测
题目
P1122 出栈序列统计
语言
C++
递交时间
2024-03-26 22:23:07
评测时间
2024-03-26 22:23:07
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes