/ Vijos /

记录详情

Accepted

/in/foo.c: In function 'read_data':
/in/foo.c:29:26: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
 if((R_data=(struct dot *)malloc((num+1)*sizeof(struct dot)))==NULL) return(-2);
                          ^~~~~~
/in/foo.c:29:26: warning: incompatible implicit declaration of built-in function 'malloc'
/in/foo.c:29:26: note: include '<stdlib.h>' or provide a declaration of 'malloc'
/in/foo.c: At top level:
/in/foo.c:124:1: warning: return type defaults to 'int' [-Wimplicit-int]
 main(void)
 ^~~~
/in/foo.c: In function 'main':
/in/foo.c:131:31: warning: incompatible implicit declaration of built-in function 'malloc'
  if((line_func=(struct line *)malloc(num*sizeof(struct line)))==NULL) return(-2);
                               ^~~~~~
/in/foo.c:131:31: note: include '<stdlib.h>' or provide a declaration of 'malloc'
/in/foo.c:145:2: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
  free(R_data);
  ^~~~
/in/foo.c:145:2: warning: incompatible implicit declaration of built-in function 'free'
/in/foo.c:145:2: note: include '<stdlib.h>' or provide a declaration of 'free'
# 状态 耗时 内存占用
#1 Accepted 1ms 188.0 KiB
#2 Accepted 2ms 256.0 KiB
#3 Accepted 1ms 256.0 KiB
#4 Accepted 2ms 256.0 KiB
#5 Accepted 8ms 256.0 KiB
#6 Accepted 10ms 256.0 KiB
#7 Accepted 10ms 256.0 KiB
#8 Accepted 7ms 256.0 KiB

信息

递交者
类型
递交
题目
P1296 监控摄像机
语言
C
递交时间
2017-09-12 08:40:20
评测时间
2017-09-12 08:40:20
评测机
分数
100
总耗时
44ms
峰值内存
256.0 KiB