/ 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: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 2ms 360.0 KiB
#2 Accepted 2ms 256.0 KiB
#3 Accepted 2ms 356.0 KiB
#4 Accepted 2ms 368.0 KiB
#5 Accepted 2ms 356.0 KiB
#6 Accepted 2ms 360.0 KiB
#7 Accepted 1ms 360.0 KiB
#8 Accepted 1ms 352.0 KiB
#9 Accepted 1ms 384.0 KiB
#10 Accepted 2ms 380.0 KiB

信息

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