/ Vijos /

记录详情

Accepted

foo.c:1:1: warning: return type defaults to 'int' [-Wimplicit-int]
 main(a,b){scanf("%d%d",&a,&b);printf("%d",a+b);}
 ^~~~
foo.c: In function 'main':
foo.c:1:1: warning: type of 'a' defaults to 'int' [-Wimplicit-int]
foo.c:1:1: warning: type of 'b' defaults to 'int' [-Wimplicit-int]
foo.c:1:11: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
 main(a,b){scanf("%d%d",&a,&b);printf("%d",a+b);}
           ^~~~~
foo.c:1:11: warning: incompatible implicit declaration of built-in function 'scanf'
foo.c:1:11: note: include '<stdio.h>' or provide a declaration of 'scanf'
foo.c:1:31: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
 main(a,b){scanf("%d%d",&a,&b);printf("%d",a+b);}
                               ^~~~~~
foo.c:1:31: warning: incompatible implicit declaration of built-in function 'printf'
foo.c:1:31: note: include '<stdio.h>' or provide a declaration of 'printf'
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 0ms 256.0 KiB
#2 Accepted 0ms 256.0 KiB
#3 Accepted 0ms 256.0 KiB
#4 Accepted 0ms 256.0 KiB
#5 Accepted 0ms 256.0 KiB
#6 Accepted 0ms 256.0 KiB
#7 Accepted 0ms 256.0 KiB
#8 Accepted 0ms 256.0 KiB
#9 Accepted 0ms 256.0 KiB
#10 Accepted 0ms 256.0 KiB

信息

递交者
类型
递交
题目
P1000 A+B Problem
语言
C
递交时间
2021-08-19 21:59:26
评测时间
2021-08-19 21:59:26
评测机
分数
100
总耗时
8ms
峰值内存
256.0 KiB