记录详情

Compile Error

foo.c:2:1: warning: data definition has no type or storage class
 n=int(input('number of tests:'))
 ^
foo.c:2:1: warning: type defaults to 'int' in declaration of 'n' [-Wimplicit-int]
foo.c:2:3: error: expected expression before 'int'
 n=int(input('number of tests:'))
   ^~~
foo.c:2:13: warning: character constant too long for its type
 n=int(input('number of tests:'))
             ^~~~~~~~~~~~~~~~~~
foo.c:5:16: warning: character constant too long for its type
  s=s+int(input('score'))
                ^~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1005 考试分数计算
语言
C
递交时间
2021-10-16 10:19:41
评测时间
2021-10-16 10:19:41
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes