/ Vijos /

记录详情

Compile Error

/in/foo.c:1:3: error: invalid preprocessing directive #Read
 # Read input from the user, expecting two integers
   ^~~~
/in/foo.c:2:1: warning: data definition has no type or storage class
 x, y = map(int, input().split())
 ^
/in/foo.c:2:1: warning: type defaults to 'int' in declaration of 'x' [-Wimplicit-int]
/in/foo.c:2:4: warning: type defaults to 'int' in declaration of 'y' [-Wimplicit-int]
 x, y = map(int, input().split())
    ^
/in/foo.c:2:8: warning: implicit declaration of function 'map' [-Wimplicit-function-declaration]
 x, y = map(int, input().split())
        ^~~
/in/foo.c:2:12: error: expected expression before 'int'
 x, y = map(int, input().split())
            ^~~
/in/foo.c:4:3: error: invalid preprocessing directive #Calculate
 # Calculate the sum of x and y
   ^~~~~~~~~
/in/foo.c:5:1: error: expected ',' or ';' before 'result'
 result = x + y
 ^~~~~~
/in/foo.c:7:3: error: invalid preprocessing directive #Output
 # Output the result
   ^~~~~~

信息

递交者
类型
递交
题目
P1000 A+B Problem
语言
C
递交时间
2024-11-01 16:53:18
评测时间
2024-11-01 16:53:18
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes