记录详情

Compile Error

foo.c: In function 'main':
foo.c:12:2: warning: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
  scanf_s("%c", &a[0]);
  ^~~~~~~
  scanf
foo.c: In function 'compare':
foo.c:41:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
  if (i = n)
      ^
foo.c:43:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
/tmp/cct6SX3z.o: In function `main':
foo.c:(.text.startup+0x1f): undefined reference to `scanf_s'
foo.c:(.text.startup+0x66): undefined reference to `scanf_s'
collect2: error: ld returned 1 exit status
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1301 H. String Shifting
语言
C
递交时间
2021-11-22 18:27:23
评测时间
2021-11-22 18:27:23
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes