记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:6:12: error: redeclaration of 's' with no linkage
  int s,h,k,s,g,m;
            ^
/in/foo.c:6:6: note: previous declaration of 's' was here
  int s,h,k,s,g,m;
      ^
/in/foo.c:11:13: error: expected ';' before ':' token
  for(i=0;i<3:i++)
             ^
/in/foo.c:14:3: warning: implicit declaration of function 'scanf_s' [-Wimplicit-function-declaration]
   scanf_s("%3d",&a[i][j]);
   ^~~~~~~
/in/foo.c:34:4: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
    for(i=t;q=s;p=0;j)
    ^~~
/in/foo.c:34:19: error: expected ')' before ';' token
    for(i=t;q=s;p=0;j)
                   ^
/in/foo.c:44:3: error: 'scanf_' undeclared (first use in this function)
   scanf_
   ^~~~~~
/in/foo.c:44:3: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:44:3: error: expected ';' at end of input
/in/foo.c:44:3: error: expected declaration or statement at end of input
/in/foo.c:6:14: warning: variable 'g' set but not used [-Wunused-but-set-variable]
  int s,h,k,s,g,m;
              ^

信息

递交者
类型
递交
题目
P1289 B. It's my own Invention
比赛
南京师范大学2021年11月程序设计竞赛
语言
C
递交时间
2021-11-21 13:56:32
评测时间
2021-11-21 13:56:32
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes