/ Vijos /

记录详情

Accepted

/in/foo.c: In function 'main':
/in/foo.c:7:18: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
  int *a = (int *)malloc(sizeof(int)*n);
                  ^~~~~~
/in/foo.c:7:18: warning: incompatible implicit declaration of built-in function 'malloc'
/in/foo.c:7:18: note: include '<stdlib.h>' or provide a declaration of 'malloc'
/in/foo.c:33:2: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
  free(a);
  ^~~~
/in/foo.c:33:2: warning: incompatible implicit declaration of built-in function 'free'
/in/foo.c:33:2: note: include '<stdlib.h>' or provide a declaration of 'free'
/in/foo.c:5:26: warning: unused variable 'j' [-Wunused-variable]
     int n, x, count = 0, j = 0;
                          ^
/in/foo.c:5:12: warning: unused variable 'x' [-Wunused-variable]
     int n, x, count = 0, j = 0;
            ^
# 状态 耗时 内存占用
#1 Accepted 1ms 364.0 KiB
#2 Accepted 2ms 384.0 KiB
#3 Accepted 2ms 256.0 KiB
#4 Accepted 2ms 344.0 KiB
#5 Accepted 2ms 368.0 KiB
#6 Accepted 2ms 208.0 KiB
#7 Accepted 1ms 340.0 KiB
#8 Accepted 1ms 384.0 KiB
#9 Accepted 2ms 376.0 KiB
#10 Accepted 2ms 356.0 KiB

信息

递交者
类型
递交
题目
P1911 珠心算测验
语言
C
递交时间
2018-04-25 19:53:34
评测时间
2018-04-25 19:53:34
评测机
分数
100
总耗时
21ms
峰值内存
384.0 KiB