/ Vijos /

记录详情

Compile Error

/in/foo.c:1:3: error: invalid preprocessing directive #�
 # 读取输入
   ^
/in/foo.c:2:1: warning: data definition has no type or storage class
 n = int(input())
 ^
/in/foo.c:2:1: warning: type defaults to 'int' in declaration of 'n' [-Wimplicit-int]
/in/foo.c:2:5: error: expected expression before 'int'
 n = int(input())
     ^~~
/in/foo.c:5:3: error: invalid preprocessing directive #�
 # 将数字放入集合以便快速查询
   ^
/in/foo.c:8:3: error: invalid preprocessing directive #�
 # 初始化计数器
   ^
/in/foo.c:10:18: error: stray '#' in program
 visited = set()  # 记录已经被计数的数字
                  ^
/in/foo.c:10:20: error: stray '\350' in program
 visited = set()  # 记录已经被计数的数字
                    ^
/in/foo.c:10:21: error: stray '\256' in program
 visited = set()  # 记录已经被计数的数字
                     ^
/in/foo.c:10:22: error: stray '\260' in program
 visited = set()  # 记录已经被计数的数字
                      ^
/in/foo.c:10:23: error: stray '\345' in program
 visited = set()  # 记录已经被计数的数字
                       ^
/in/foo.c:10:24: error: stray '\275' in program
 visited = set()  # 记录已经被计数的数字
                        ^
/in/foo.c:10:25: error: stray '\225' in program
 visited = set()  # 记录已经被计数的数字
                         ^
/in/foo.c:10:26: error: stray '\345' in program
 visited = set()  # 记录已经被计数的数字
                          ^
/in/foo.c:10:27: error: stray '\267' in program
 visited = set()  # 记录已经被计数的数字
                           ^
/in/foo.c:10:28: error: stray '\262' in program
 visited = set()  # 记录已经被计数的数字
                            ^
/in/foo.c:10:29: error: stray '\347' in program
 visited = set()  # 记录已经被计数的数字
                             ^
/in/foo.c:10:30: error: stray '\273' in program
 visited = set()  # 记录已经被计数的数字
                              ^
/in/foo.c:10:31: error: stray '\217' in program
 visited = set()  # 记录已经被计数的数字
                               ^
/in/foo.c:10:32: error: stray '\350' in program
 visited = set()  # 记录已经被计数的数字
                                ^
/in/foo.c:10:33: error: stray '\242' in program
 visited = set()  # 记录已经被计数的数字
                                 ^
/in/foo.c:10:34: error: stray '\253' in program
 visited = set()  # 记录已经被计数的数字
                                  ^
/in/foo.c:10:35: error: stray '\350' in program
 visited = set()  # 记录已经被计数的数字
                                   ^
/in/foo.c:10:36: error: stray '\256' in program
 visited = set()  # 记录已经被计数的数字
                                    ^
/in/foo.c:10:37: error: stray '\241' in program
 visited = set()  # 记录已经被计数的数字
                                     ^
/in/foo.c:10:38: error: stray '\346' in program
 visited = set()  # 记录已经被计数的数字
                                      ^
/in/foo.c:10:39: error: stray '\225' in program
 visited = set()  # 记录已经被计数的数字
                                       ^
/in/foo.c:10:40: error: stray '\260' in program
 visited = set()  # 记录已经被计数的数字
                                        ^
/in/foo.c:10:41: error: stray '\347' in program
 visited = set()  # 记录已经被计数的数字
                                         ^
/in/foo.c:10:42: error: stray '\232' in program
 visited = set()  # 记录已经被计数的数字
                                          ^
/in/foo.c:10:43: error: stray '\204' in program
 visited = set()  # 记录已经被计数的数字
                                           ^
/in/foo.c:10:44: error: stray '\346' in program
 visited = set()  # 记录已经被计数的数字
                                            ^
/in/foo.c:10:45: error: stray '\225' in program
 visited = set()  # 记录已经被计数的数字
                                             ^
/in/foo.c:10:46: error: stray '\260' in program
 visited = set()  # 记录已经被计数的数字
                                              ^
/in/foo.c:10:47: error: stray '\345' in program
 visited = set()  # 记录已经被计数的数字
                                               ^
/in/foo.c:10:48: error: stray '\255' in program
 visited = set()  # 记录已经被计数的数字
                                                ^
/in/foo.c:10:49: error: stray '\227' in program
 visited = set()  # 记录已经被计数的数字
                                                 ^
/in/foo.c:12:3: error: invalid preprocessing directive #�
 # 枚举所有不同的数对
   ^
/in/foo.c:15:32: error: stray '#' in program
         s = nums[i] + nums[j]  # 两数之和
                                ^
/in/foo.c:15:34: error: stray '\344' in program
         s = nums[i] + nums[j]  # 两数之和
                                  ^
/in/foo.c:15:35: error: stray '\270' in program
         s = nums[i] + nums[j]  # 两数之和
                                   ^
/in/foo.c:15:36: error: stray '\244' in program
         s = nums[i] + nums[j]  # 两数之和
                                    ^
/in/foo.c:15:37: error: stray '\346' in program
         s = nums[i] + nums[j]  # 两数之和
                                     ^
/in/foo.c:15:38: error: stray '\225' in program
         s = nums[i] + nums[j]  # 两数之和
                                      ^
/in/foo.c:15:39: error: stray '\260' in program
         s = nums[i] + nums[j]  # 两数之和
                                       ^
/in/foo.c:15:40: error: stray '\344' in program
         s = nums[i] + nums[j]  # 两数之和
                                        ^
/in/foo.c:15:41: error: stray '\271' in program
         s = nums[i] + nums[j]  # 两数之和
                                         ^
/in/foo.c:15:42: error: stray '\213' in program
         s = nums[i] + nums[j]  # 两数之和
                                          ^
/in/foo.c:15:43: error: stray '\345' in program
         s = nums[i] + nums[j]  # 两数之和
                                           ^
/in/foo.c:15:44: error: stray '\222' in program
         s = nums[i] + nums[j]  # 两数之和
                                            ^
/in/foo.c:15:45: error: stray '\214' in program
         s = nums[i] + nums[j]  # 两数之和
                                             ^
/in/foo.c:18:29: error: stray '#' in program
             visited.add(s)  # 避免重复计数
                             ^
/in/foo.c:18:31: error: stray '\351' in program
             visited.add(s)  # 避免重复计数
                               ^
/in/foo.c:18:32: error: stray '\201' in program
             visited.add(s)  # 避免重复计数
                                ^
/in/foo.c:18:33: error: stray '\277' in program
             visited.add(s)  # 避免重复计数
                                 ^
/in/foo.c:18:34: error: stray '\345' in program
             visited.add(s)  # 避免重复计数
                                  ^
/in/foo.c:18:35: error: stray '\205' in program
             visited.add(s)  # 避免重复计数
                                   ^
/in/foo.c:18:36: error: stray '\215' in program
             visited.add(s)  # 避免重复计数
                                    ^
/in/foo.c:18:37: error: stray '\351' in program
             visited.add(s)  # 避免重复计数
                                     ^
/in/foo.c:18:38: error: stray '\207' in program
             visited.add(s)  # 避免重复计数
                                      ^
/in/foo.c:18:39: error: stray '\215' in program
             visited.add(s)  # 避免重复计数
                                       ^
/in/foo.c:18:40: error: stray '\345' in program
             visited.add(s)  # 避免重复计数
                                        ^
/in/foo.c:18:41: error: stray '\244' in program
             visited.add(s)  # 避免�

信息

递交者
类型
递交
题目
P1911 珠心算测验
语言
C
递交时间
2025-01-10 17:27:11
评测时间
2025-01-10 17:27:11
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes