记录详情

Accepted

/in/foo.c: In function 'main':
/in/foo.c:5:15: warning: unused variable 'j' [-Wunused-variable]
  int n, m, i, j, count=0, a[100000];
               ^
/in/foo.c: In function 'twoSum':
/in/foo.c:23:24: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
     int *table = (int*)malloc(len*sizeof(int));
                        ^~~~~~
/in/foo.c:23:24: warning: incompatible implicit declaration of built-in function 'malloc'
/in/foo.c:23:24: note: include '<stdlib.h>' or provide a declaration of 'malloc'
/in/foo.c:35:5: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
     free(table);
     ^~~~
/in/foo.c:35:5: warning: incompatible implicit declaration of built-in function 'free'
/in/foo.c:35:5: note: include '<stdlib.h>' or provide a declaration of 'free'
# 状态 耗时 内存占用
#1 Accepted 1ms 464.0 KiB
#2 Accepted 1ms 600.0 KiB
#3 Accepted 1ms 600.0 KiB
#4 Accepted 3ms 600.0 KiB
#5 Accepted 7ms 720.0 KiB

信息

递交者
类型
递交
题目
6-1 和为定值的数对
比赛
课程赛事2018-12-31
语言
C
递交时间
2018-12-31 08:12:52
评测时间
2018-12-31 08:12:52
评测机
分数
100
总耗时
14ms
峰值内存
720.0 KiB