Result

WA

Duration

607ms

Code [DL]

s[];main(i){for(;i<99;)gets(&s),s%8%3<2?puts("1"):i++;}

stdin

21
02
10
02
20
12
20
12
01
10
01
01
02
10
12
12
01
21
02
02
12
10
20
10
20
01
02
02
12
12
12
12
01
21
12
10
21
01
20
10
02
10
10
02
02
12
02
21
02
01
20
21
10
01
12
01
01
02
10
12
10
01
21
20
01
10
01
21
21
21
01
10
21
02
02
12
01
20
21
10
02
20
21
20
02
01
10
21
10
10
20
21
21
20
21
12
20
01
10
12
12
01
20
10
21
01
10
21
10
10
10
02
02
02
02
01
02
12
10
02
20
01
10
02
12
21
01
02
21
20
21
20
02
10
02
20
21
02
20
20
02
12
21
12
10
21
12
12
20
01
10
02
21
10
21
12
02
21
21
21
21
20
20
10
02
21
12
21
21
20
02
01
10
02
21
20
01
01
21
01
21
12
12
10
10
21
20
21
02
10
10
12
20
12
10
20
20
01
12
21
01
10
01
02
10
01
12
21
12
10
21
12
02
12
12
20
21
02
01
02
12
20
02
20
21
01
01
20
21
10
01
01
02
02
01
10
02
01
21
21
02
21
01
21
21
10
21
20
20
10
21
10
10
20
20
12
20
10
01
02
10
02
12
10
01
12
20
21
10
01
12
01
10
02
20
20
12
21
02
02
20
12
20
21
02
12
02
20
12
20
21
20
21
20
10
01
12
21
01
21

stdout

stderr

/tmp/code.c:1:1: warning: data definition has no type or storage class
 s[];main(i){for(;i<99;)gets(&s),s%8%3<2?puts("1"):i++;}
 ^
/tmp/code.c:1:1: warning: type defaults to 'int' in declaration of 's' [-Wimplicit-int]
/tmp/code.c:1:5: warning: return type defaults to 'int' [-Wimplicit-int]
 s[];main(i){for(;i<99;)gets(&s),s%8%3<2?puts("1"):i++;}
     ^~~~
/tmp/code.c: In function 'main':
/tmp/code.c:1:5: warning: type of 'i' defaults to 'int' [-Wimplicit-int]
/tmp/code.c:1:24: warning: implicit declaration of function 'gets' [-Wimplicit-function-declaration]
 s[];main(i){for(;i<99;)gets(&s),s%8%3<2?puts("1"):i++;}
                        ^~~~
/tmp/code.c:1:34: error: invalid operands to binary % (have 'int *' and 'int')
 s[];main(i){for(;i<99;)gets(&s),s%8%3<2?puts("1"):i++;}
                                 ~^
/tmp/code.c:1:41: warning: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
 s[];main(i){for(;i<99;)gets(&s),s%8%3<2?puts("1"):i++;}
                                         ^~~~
/tmp/code.c: At top level:
/tmp/code.c:1:1: warning: array 's' assumed to have one element
 s[];main(i){for(;i<99;)gets(&s),s%8%3<2?puts("1"):i++;}
 ^
/root/script: line 7: /tmp/code: not found
rm: can't remove '/tmp/code': No such file or directory

strace