/ Vijos /

记录详情

Compile Error

foo.cc:8:7: error: invalid preprocessing directive #\U00008bd5\U00009664\U00006cd5\U0000ff0c\U00007531\U00004e8ex\U00006700\U00005927\U00007ea64000\U0000ff0c\U000076f4\U000063a5\U0000679a\U00004e3e\U00008d28\U00006570
    8 |     # 试除法,由于x最大约4000,直接枚举质数
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:26:7: error: invalid preprocessing directive #\U00008ba1\U00007b97
   26 |     # 计算 s[i] = i - B[i], s[0]=0
      |       ^~~~
foo.cc:30:7: error: invalid preprocessing directive #\U00008d28\U000056e0\U00006570\U00008ba1\U00006570\U00006570\U00007ec4\U0000ff0c\U00006700\U00005927\U000056e0\U00005b50\U00004e0d\U00008d85\U00008fc7
   30 |     # 质因数计数数组,最大因子不超过 2*n+1 ≈ 4001
      |       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:30:44: error: extended character ≈ is not valid in an identifier
   30 |     # 质因数计数数组,最大因子不超过 2*n+1 ≈ 4001
      |                                            ^
foo.cc:36:32: error: stray ‘#’ in program
   36 |         d = sprev + 1 - scur   # 一定是 0,1,2
      |                                ^
foo.cc:37:32: error: stray ‘#’ in program
   37 |         a = n - i + 1          # 分母的底数
      |                                ^
foo.cc:46:16: error: stray ‘#’ in program
   46 |         else:  # d == 2
      |                ^
foo.cc:50:11: error: invalid preprocessing directive #\U00005206\U000089e3\U00005206\U00005b50\U0000548c\U00005206\U00006bcd
   50 |         # 分解分子和分母
      |           ^~~~~~~~~~~~~~
foo.cc:54:7: error: invalid preprocessing directive #\U00008ba1\U00007b97\U00004e58\U000079ef
   54 |     # 计算乘积
      |       ^~~~~~~~
foo.cc:1:1: error: ‘import’ does not name a type
    1 | import sys
      | ^~~~~~
foo.cc:1:1: note: C++20 ‘import’ only available with ‘-fmodules’

信息

递交者
类型
递交
题目
P1660 排列统计
语言
C++
递交时间
2026-06-10 20:27:25
评测时间
2026-06-15 04:42:17
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes