/ Vijos /

记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:5:8: error: expected declaration specifiers or '...' before string constant
  scanf("%d%d%d",&m,&s,&t);
        ^
/in/foo.c:5:17: error: expected declaration specifiers or '...' before '&' token
  scanf("%d%d%d",&m,&s,&t);
                 ^
/in/foo.c:5:20: error: expected declaration specifiers or '...' before '&' token
  scanf("%d%d%d",&m,&s,&t);
                    ^
/in/foo.c:5:23: error: expected declaration specifiers or '...' before '&' token
  scanf("%d%d%d",&m,&s,&t);
                       ^
/in/foo.c:6:2: error: 't1' undeclared (first use in this function)
  t1=t-(m/10);
  ^
/in/foo.c:6:2: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:7:2: error: 'm1' undeclared (first use in this function)
  m1=m%10;
  ^
/in/foo.c:14:6: error: 'i' undeclared (first use in this function)
  for(i=1;;i++)
      ^
/in/foo.c:16:3: error: 's2' undeclared (first use in this function)
   s2=(i*4+m1)/10*60;
   ^
/in/foo.c:17:3: error: 'a' undeclared (first use in this function)
   a=(i*4+m1)/10;
   ^
/in/foo.c:23:2: error: expected declaration or statement at end of input
  }
  ^

信息

递交者
类型
递交
题目
P1032 逃离X学校
比赛
2019XJU软件实验室大一考核
语言
C
递交时间
2019-11-23 13:24:05
评测时间
2019-11-23 13:24:05
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes