提交记录 #505

提交时间:2024-12-17 13:18:38
语言:c 状态:Accepted
编译情况:编译成功
code.c: In function ‘main’:
code.c:18:4: warning: implicit declaration of function ‘gets’; did you mean ‘fgets’? [-Wimplicit-function-declaration]
   18 |    gets( sa );
      |    ^~~~
      |    fgets
code.c: In function ‘number’:
code.c:38:13: warning: implicit declaration of function ‘strtok’ [-Wimplicit-function-declaration]
   38 |     token = strtok(str, " ");
      |             ^~~~~~
code.c:38:11: warning: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
   38 |     token = strtok(str, " ");
      |           ^
code.c:40:20: warning: implicit declaration of function ‘atoi’ [-Wimplicit-function-declaration]
   40 |         a[i].num = atoi(token);
      |                    ^~~~
code.c:43:15: warning: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
   43 |         token = strtok(NULL, " ");
      |               ^
/usr/bin/ld: /tmp/ccZjG3ZL.o: in function `main':
code.c:(.text.startup+0x1c): warning: the `gets' function is dangerous and should not be used.
固定测试点暂不可用
... 等待中
time N/A
memory N/A
附加测试点暂不可用
... 不可用
time N/A
memory N/A
京ICP备2024093084 号