criyle/codenet-compile-errors huggingface dataset:
Language: C

b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)a%3?a&1?++o%3?b:s=!printf("%d\n",b>3?s+b-3:s):b+1:!(s+=b++);}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)a%3?a&1?++o%3?b:s=!printf("%d\n",b>3?s+b-3:s):b+1:!(s+=b++);}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'o' [-Wimplicit-int]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)a%3?a&1?++o%3?b:s=!printf("%d\n",b>3?s+b-3:s):b+1:!(s+=b++);}
      |   ^
main.c:1:5: error: type defaults to 'int' in declaration of 's' [-Wimplicit-int]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)a%3?a&1?++o%3?b:s=!printf("%d\n",b>3?s+b-3:s):b+1:!(s+=b++);}
      |     ^
main.c:1:7: error: return type defaults to 'int' [-Wimplicit-int]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)a%3?a&1?++o%3?b:s=!printf("%d\n",b>3?s+b-3:s):b+1:!(s+=b++);}
      |       ^~~~
main.c: In function 'main':
main.c:1:7: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:19: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)a%3?a&1?++o%3?b:s=!printf("%d\n",b>3?s+b-3:s):b+1:!(s+=b++);}
      |                   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)a%3?a&1?++o%3?b:s=!printf("%d\n",b>3?s+b-3:s):b+1:!(s+=b++);}
main.c:1:19: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)a%3?a&1?++o%3?b:s=!printf("%d\n",b>3?s+b-3:s):b+1:!(s+=b++);}
      |                   ^~~~~
main.c:1:19: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:67: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)a%3?a&1?++o%3?b:s=!printf("%d\n",b>3?s+b-3:s):b+1:!(s+=b++);}
      |                                                                   ^~~~~~
main.c:1:67: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:67: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:67: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:65: error: lvalue required as left operand of assignment
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)a%3?a&1?++o%3?b:s=!printf("%d\n",b>3?s+b-3:s):b+1:!(s+=b++);}
      |                                                                 ^
Language: C

b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)a%3?a&1?++o%3?b:s=!printf("%d\n",b>3?s+b-3:s):b+1:!(s+=b);}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)a%3?a&1?++o%3?b:s=!printf("%d\n",b>3?s+b-3:s):b+1:!(s+=b);}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'o' [-Wimplicit-int]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)a%3?a&1?++o%3?b:s=!printf("%d\n",b>3?s+b-3:s):b+1:!(s+=b);}
      |   ^
main.c:1:5: error: type defaults to 'int' in declaration of 's' [-Wimplicit-int]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)a%3?a&1?++o%3?b:s=!printf("%d\n",b>3?s+b-3:s):b+1:!(s+=b);}
      |     ^
main.c:1:7: error: return type defaults to 'int' [-Wimplicit-int]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)a%3?a&1?++o%3?b:s=!printf("%d\n",b>3?s+b-3:s):b+1:!(s+=b);}
      |       ^~~~
main.c: In function 'main':
main.c:1:7: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:19: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)a%3?a&1?++o%3?b:s=!printf("%d\n",b>3?s+b-3:s):b+1:!(s+=b);}
      |                   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)a%3?a&1?++o%3?b:s=!printf("%d\n",b>3?s+b-3:s):b+1:!(s+=b);}
main.c:1:19: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)a%3?a&1?++o%3?b:s=!printf("%d\n",b>3?s+b-3:s):b+1:!(s+=b);}
      |                   ^~~~~
main.c:1:19: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:67: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)a%3?a&1?++o%3?b:s=!printf("%d\n",b>3?s+b-3:s):b+1:!(s+=b);}
      |                                                                   ^~~~~~
main.c:1:67: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:67: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:67: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:65: error: lvalue required as left operand of assignment
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)a%3?a&1?++o%3?b:s=!printf("%d\n",b>3?s+b-3:s):b+1:!(s+=b);}
      |                                                                 ^
Language: C

b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)a%3?a&1?++o%3?:(s=!printf("%d\n",b>3?s+b-3:s),b=0):b++:s+=b+1;}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)a%3?a&1?++o%3?:(s=!printf("%d\n",b>3?s+b-3:s),b=0):b++:s+=b+1;}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'o' [-Wimplicit-int]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)a%3?a&1?++o%3?:(s=!printf("%d\n",b>3?s+b-3:s),b=0):b++:s+=b+1;}
      |   ^
main.c:1:5: error: type defaults to 'int' in declaration of 's' [-Wimplicit-int]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)a%3?a&1?++o%3?:(s=!printf("%d\n",b>3?s+b-3:s),b=0):b++:s+=b+1;}
      |     ^
main.c:1:7: error: return type defaults to 'int' [-Wimplicit-int]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)a%3?a&1?++o%3?:(s=!printf("%d\n",b>3?s+b-3:s),b=0):b++:s+=b+1;}
      |       ^~~~
main.c: In function 'main':
main.c:1:7: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:19: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)a%3?a&1?++o%3?:(s=!printf("%d\n",b>3?s+b-3:s),b=0):b++:s+=b+1;}
      |                   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)a%3?a&1?++o%3?:(s=!printf("%d\n",b>3?s+b-3:s),b=0):b++:s+=b+1;}
main.c:1:19: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)a%3?a&1?++o%3?:(s=!printf("%d\n",b>3?s+b-3:s),b=0):b++:s+=b+1;}
      |                   ^~~~~
main.c:1:19: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:67: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)a%3?a&1?++o%3?:(s=!printf("%d\n",b>3?s+b-3:s),b=0):b++:s+=b+1;}
      |                                                                   ^~~~~~
main.c:1:67: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:67: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:67: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:104: error: lvalue required as left operand of assignment
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)a%3?a&1?++o%3?:(s=!printf("%d\n",b>3?s+b-3:s),b=0):b++:s+=b+1;}
      |                                                                                                        ^~
Language: C

b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:s=!printf("%d\n",b>3?s+b-3:s):b+1:(s+=b+1);}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:s=!printf("%d\n",b>3?s+b-3:s):b+1:(s+=b+1);}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'o' [-Wimplicit-int]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:s=!printf("%d\n",b>3?s+b-3:s):b+1:(s+=b+1);}
      |   ^
main.c:1:5: error: type defaults to 'int' in declaration of 's' [-Wimplicit-int]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:s=!printf("%d\n",b>3?s+b-3:s):b+1:(s+=b+1);}
      |     ^
main.c:1:7: error: return type defaults to 'int' [-Wimplicit-int]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:s=!printf("%d\n",b>3?s+b-3:s):b+1:(s+=b+1);}
      |       ^~~~
main.c: In function 'main':
main.c:1:7: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:19: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:s=!printf("%d\n",b>3?s+b-3:s):b+1:(s+=b+1);}
      |                   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:s=!printf("%d\n",b>3?s+b-3:s):b+1:(s+=b+1);}
main.c:1:19: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:s=!printf("%d\n",b>3?s+b-3:s):b+1:(s+=b+1);}
      |                   ^~~~~
main.c:1:19: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:69: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:s=!printf("%d\n",b>3?s+b-3:s):b+1:(s+=b+1);}
      |                                                                     ^~~~~~
main.c:1:69: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:69: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:69: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:67: error: lvalue required as left operand of assignment
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:s=!printf("%d\n",b>3?s+b-3:s):b+1:(s+=b+1);}
      |                                                                   ^
Language: C

b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)
b=
a%3?
	a&1?
		++o%3?
			b
		:(s=!puts(48+(b>3?s+b-3:s))
	:b+1
:!(s+=b+1);}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'o' [-Wimplicit-int]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)
      |   ^
main.c:1:5: error: type defaults to 'int' in declaration of 's' [-Wimplicit-int]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)
      |     ^
main.c:1:7: error: return type defaults to 'int' [-Wimplicit-int]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)
      |       ^~~~
main.c: In function 'main':
main.c:1:7: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:19: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)
      |                   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)
main.c:1:19: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)
      |                   ^~~~~
main.c:1:19: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:7:22: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    7 |                 :(s=!puts(48+(b>3?s+b-3:s))
      |                      ^~~~
main.c:7:22: note: include '<stdio.h>' or provide a declaration of 'puts'
main.c:7:29: error: passing argument 1 of 'puts' makes pointer from integer without a cast [-Wint-conversion]
    7 |                 :(s=!puts(48+(b>3?s+b-3:s))
      |                           ~~^~~~~~~~~~~~~~
      |                             |
      |                             int
main.c:7:29: note: expected 'const char *' but argument is of type 'int'
main.c:7:44: error: expected ')' before ':' token
    7 |                 :(s=!puts(48+(b>3?s+b-3:s))
      |                  ~                         ^
      |                                            )
    8 |         :b+1
      |         ~                                   
main.c:9:12: error: expected ':' before '}' token
    9 | :!(s+=b+1);}
      |            ^
      |            :
Language: C

b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)
b=
a%3?
	a&1?
		++o%3?
			b
		:(s=!puts(itoa(b>3?s+b-3:s,&a,10)))
	:b+1
:!(s+=b+1);}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'o' [-Wimplicit-int]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)
      |   ^
main.c:1:5: error: type defaults to 'int' in declaration of 's' [-Wimplicit-int]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)
      |     ^
main.c:1:7: error: return type defaults to 'int' [-Wimplicit-int]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)
      |       ^~~~
main.c: In function 'main':
main.c:1:7: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:19: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)
      |                   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)
main.c:1:19: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)
      |                   ^~~~~
main.c:1:19: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:7:22: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    7 |                 :(s=!puts(itoa(b>3?s+b-3:s,&a,10)))
      |                      ^~~~
main.c:7:22: note: include '<stdio.h>' or provide a declaration of 'puts'
main.c:7:27: error: implicit declaration of function 'itoa' [-Wimplicit-function-declaration]
    7 |                 :(s=!puts(itoa(b>3?s+b-3:s,&a,10)))
      |                           ^~~~
main.c:7:27: error: passing argument 1 of 'puts' makes pointer from integer without a cast [-Wint-conversion]
    7 |                 :(s=!puts(itoa(b>3?s+b-3:s,&a,10)))
      |                           ^~~~~~~~~~~~~~~~~~~~~~~
      |                           |
      |                           int
main.c:7:27: note: expected 'const char *' but argument is of type 'int'
Language: C

b,s,o;main(a){for(scanf("%*d");~scanf("%s",&a);)
b=(
a%3?
	a&1?
		++o%3?
			b
		:s=!printf("%d\n",b>3?s+b-3:s)
	:b+1
:!s-=~b);}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | b,s,o;main(a){for(scanf("%*d");~scanf("%s",&a);)
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 's' [-Wimplicit-int]
    1 | b,s,o;main(a){for(scanf("%*d");~scanf("%s",&a);)
      |   ^
main.c:1:5: error: type defaults to 'int' in declaration of 'o' [-Wimplicit-int]
    1 | b,s,o;main(a){for(scanf("%*d");~scanf("%s",&a);)
      |     ^
main.c:1:7: error: return type defaults to 'int' [-Wimplicit-int]
    1 | b,s,o;main(a){for(scanf("%*d");~scanf("%s",&a);)
      |       ^~~~
main.c: In function 'main':
main.c:1:7: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:19: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | b,s,o;main(a){for(scanf("%*d");~scanf("%s",&a);)
      |                   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | b,s,o;main(a){for(scanf("%*d");~scanf("%s",&a);)
main.c:1:19: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | b,s,o;main(a){for(scanf("%*d");~scanf("%s",&a);)
      |                   ^~~~~
main.c:1:19: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:7:21: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    7 |                 :s=!printf("%d\n",b>3?s+b-3:s)
      |                     ^~~~~~
main.c:7:21: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:21: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:7:21: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:19: error: lvalue required as left operand of assignment
    7 |                 :s=!printf("%d\n",b>3?s+b-3:s)
      |                   ^
Language: C

b,s,o;main(a){for(scanf("%*d");~scanf("%s",&a);)
b=(
a%3?
	a&1?
		++o%3?
			b
		:s=!printf("%d\n",b>3?s+b-3:s)
	:b+1
:!(s-=~b));}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | b,s,o;main(a){for(scanf("%*d");~scanf("%s",&a);)
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 's' [-Wimplicit-int]
    1 | b,s,o;main(a){for(scanf("%*d");~scanf("%s",&a);)
      |   ^
main.c:1:5: error: type defaults to 'int' in declaration of 'o' [-Wimplicit-int]
    1 | b,s,o;main(a){for(scanf("%*d");~scanf("%s",&a);)
      |     ^
main.c:1:7: error: return type defaults to 'int' [-Wimplicit-int]
    1 | b,s,o;main(a){for(scanf("%*d");~scanf("%s",&a);)
      |       ^~~~
main.c: In function 'main':
main.c:1:7: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:19: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | b,s,o;main(a){for(scanf("%*d");~scanf("%s",&a);)
      |                   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | b,s,o;main(a){for(scanf("%*d");~scanf("%s",&a);)
main.c:1:19: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | b,s,o;main(a){for(scanf("%*d");~scanf("%s",&a);)
      |                   ^~~~~
main.c:1:19: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:7:21: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    7 |                 :s=!printf("%d\n",b>3?s+b-3:s)
      |                     ^~~~~~
main.c:7:21: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:21: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:7:21: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:19: error: lvalue required as left operand of assignment
    7 |                 :s=!printf("%d\n",b>3?s+b-3:s)
      |                   ^
Language: C

b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:(c=!printf("%d\n",b>3?s+b-3:s)):b+1:!(c-=~b);}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:(c=!printf("%d\n",b>3?s+b-3:s)):b+1:!(c-=~b);}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'o' [-Wimplicit-int]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:(c=!printf("%d\n",b>3?s+b-3:s)):b+1:!(c-=~b);}
      |   ^
main.c:1:5: error: type defaults to 'int' in declaration of 's' [-Wimplicit-int]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:(c=!printf("%d\n",b>3?s+b-3:s)):b+1:!(c-=~b);}
      |     ^
main.c:1:7: error: return type defaults to 'int' [-Wimplicit-int]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:(c=!printf("%d\n",b>3?s+b-3:s)):b+1:!(c-=~b);}
      |       ^~~~
main.c: In function 'main':
main.c:1:7: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:19: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:(c=!printf("%d\n",b>3?s+b-3:s)):b+1:!(c-=~b);}
      |                   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:(c=!printf("%d\n",b>3?s+b-3:s)):b+1:!(c-=~b);}
main.c:1:19: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:(c=!printf("%d\n",b>3?s+b-3:s)):b+1:!(c-=~b);}
      |                   ^~~~~
main.c:1:19: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:67: error: 'c' undeclared (first use in this function)
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:(c=!printf("%d\n",b>3?s+b-3:s)):b+1:!(c-=~b);}
      |                                                                   ^
main.c:1:67: note: each undeclared identifier is reported only once for each function it appears in
main.c:1:70: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:(c=!printf("%d\n",b>3?s+b-3:s)):b+1:!(c-=~b);}
      |                                                                      ^~~~~~
main.c:1:70: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:70: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:70: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:(c=!printf("%d\n",b>3?s+b-3:s)):b+1:!(s-=~b);}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:(c=!printf("%d\n",b>3?s+b-3:s)):b+1:!(s-=~b);}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'o' [-Wimplicit-int]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:(c=!printf("%d\n",b>3?s+b-3:s)):b+1:!(s-=~b);}
      |   ^
main.c:1:5: error: type defaults to 'int' in declaration of 's' [-Wimplicit-int]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:(c=!printf("%d\n",b>3?s+b-3:s)):b+1:!(s-=~b);}
      |     ^
main.c:1:7: error: return type defaults to 'int' [-Wimplicit-int]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:(c=!printf("%d\n",b>3?s+b-3:s)):b+1:!(s-=~b);}
      |       ^~~~
main.c: In function 'main':
main.c:1:7: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:19: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:(c=!printf("%d\n",b>3?s+b-3:s)):b+1:!(s-=~b);}
      |                   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:(c=!printf("%d\n",b>3?s+b-3:s)):b+1:!(s-=~b);}
main.c:1:19: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:(c=!printf("%d\n",b>3?s+b-3:s)):b+1:!(s-=~b);}
      |                   ^~~~~
main.c:1:19: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:67: error: 'c' undeclared (first use in this function)
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:(c=!printf("%d\n",b>3?s+b-3:s)):b+1:!(s-=~b);}
      |                                                                   ^
main.c:1:67: note: each undeclared identifier is reported only once for each function it appears in
main.c:1:70: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:(c=!printf("%d\n",b>3?s+b-3:s)):b+1:!(s-=~b);}
      |                                                                      ^~~~~~
main.c:1:70: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:70: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:70: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:(s=!printf("%d\n",b>3?s+b-3:s)):b+1:(!s-=~b);}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:(s=!printf("%d\n",b>3?s+b-3:s)):b+1:(!s-=~b);}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'o' [-Wimplicit-int]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:(s=!printf("%d\n",b>3?s+b-3:s)):b+1:(!s-=~b);}
      |   ^
main.c:1:5: error: type defaults to 'int' in declaration of 's' [-Wimplicit-int]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:(s=!printf("%d\n",b>3?s+b-3:s)):b+1:(!s-=~b);}
      |     ^
main.c:1:7: error: return type defaults to 'int' [-Wimplicit-int]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:(s=!printf("%d\n",b>3?s+b-3:s)):b+1:(!s-=~b);}
      |       ^~~~
main.c: In function 'main':
main.c:1:7: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:19: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:(s=!printf("%d\n",b>3?s+b-3:s)):b+1:(!s-=~b);}
      |                   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:(s=!printf("%d\n",b>3?s+b-3:s)):b+1:(!s-=~b);}
main.c:1:19: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:(s=!printf("%d\n",b>3?s+b-3:s)):b+1:(!s-=~b);}
      |                   ^~~~~
main.c:1:19: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:70: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:(s=!printf("%d\n",b>3?s+b-3:s)):b+1:(!s-=~b);}
      |                                                                      ^~~~~~
main.c:1:70: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:70: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:70: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:105: error: lvalue required as left operand of assignment
    1 | b,o,s;main(a){for(scanf("%d");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:(s=!printf("%d\n",b>3?s+b-3:s)):b+1:(!s-=~b);}
      |                                                                                                         ^~
Language: C

b,o,s;main(a){for(scanf("%s");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:(c=!printf("%d\n",b>3?s+b-3:s)):b+1:!(s-=~b);}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | b,o,s;main(a){for(scanf("%s");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:(c=!printf("%d\n",b>3?s+b-3:s)):b+1:!(s-=~b);}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'o' [-Wimplicit-int]
    1 | b,o,s;main(a){for(scanf("%s");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:(c=!printf("%d\n",b>3?s+b-3:s)):b+1:!(s-=~b);}
      |   ^
main.c:1:5: error: type defaults to 'int' in declaration of 's' [-Wimplicit-int]
    1 | b,o,s;main(a){for(scanf("%s");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:(c=!printf("%d\n",b>3?s+b-3:s)):b+1:!(s-=~b);}
      |     ^
main.c:1:7: error: return type defaults to 'int' [-Wimplicit-int]
    1 | b,o,s;main(a){for(scanf("%s");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:(c=!printf("%d\n",b>3?s+b-3:s)):b+1:!(s-=~b);}
      |       ^~~~
main.c: In function 'main':
main.c:1:7: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:19: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | b,o,s;main(a){for(scanf("%s");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:(c=!printf("%d\n",b>3?s+b-3:s)):b+1:!(s-=~b);}
      |                   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | b,o,s;main(a){for(scanf("%s");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:(c=!printf("%d\n",b>3?s+b-3:s)):b+1:!(s-=~b);}
main.c:1:19: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | b,o,s;main(a){for(scanf("%s");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:(c=!printf("%d\n",b>3?s+b-3:s)):b+1:!(s-=~b);}
      |                   ^~~~~
main.c:1:19: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:67: error: 'c' undeclared (first use in this function)
    1 | b,o,s;main(a){for(scanf("%s");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:(c=!printf("%d\n",b>3?s+b-3:s)):b+1:!(s-=~b);}
      |                                                                   ^
main.c:1:67: note: each undeclared identifier is reported only once for each function it appears in
main.c:1:70: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | b,o,s;main(a){for(scanf("%s");~scanf("%s",&a);)b=a%3?a&1?++o%3?b:(c=!printf("%d\n",b>3?s+b-3:s)):b+1:!(s-=~b);}
      |                                                                      ^~~~~~
main.c:1:70: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:70: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:70: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

b,o,s;main(a){for(;~scanf("%d",&a);)a>4e6?b=a%3?a&1?++o%3?b:(c=!printf("%d\n",b>3?b+s-3:s)):b+1:!(s-=~b):a;}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | b,o,s;main(a){for(;~scanf("%d",&a);)a>4e6?b=a%3?a&1?++o%3?b:(c=!printf("%d\n",b>3?b+s-3:s)):b+1:!(s-=~b):a;}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'o' [-Wimplicit-int]
    1 | b,o,s;main(a){for(;~scanf("%d",&a);)a>4e6?b=a%3?a&1?++o%3?b:(c=!printf("%d\n",b>3?b+s-3:s)):b+1:!(s-=~b):a;}
      |   ^
main.c:1:5: error: type defaults to 'int' in declaration of 's' [-Wimplicit-int]
    1 | b,o,s;main(a){for(;~scanf("%d",&a);)a>4e6?b=a%3?a&1?++o%3?b:(c=!printf("%d\n",b>3?b+s-3:s)):b+1:!(s-=~b):a;}
      |     ^
main.c:1:7: error: return type defaults to 'int' [-Wimplicit-int]
    1 | b,o,s;main(a){for(;~scanf("%d",&a);)a>4e6?b=a%3?a&1?++o%3?b:(c=!printf("%d\n",b>3?b+s-3:s)):b+1:!(s-=~b):a;}
      |       ^~~~
main.c: In function 'main':
main.c:1:7: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:21: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | b,o,s;main(a){for(;~scanf("%d",&a);)a>4e6?b=a%3?a&1?++o%3?b:(c=!printf("%d\n",b>3?b+s-3:s)):b+1:!(s-=~b):a;}
      |                     ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | b,o,s;main(a){for(;~scanf("%d",&a);)a>4e6?b=a%3?a&1?++o%3?b:(c=!printf("%d\n",b>3?b+s-3:s)):b+1:!(s-=~b):a;}
main.c:1:21: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | b,o,s;main(a){for(;~scanf("%d",&a);)a>4e6?b=a%3?a&1?++o%3?b:(c=!printf("%d\n",b>3?b+s-3:s)):b+1:!(s-=~b):a;}
      |                     ^~~~~
main.c:1:21: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:62: error: 'c' undeclared (first use in this function)
    1 | b,o,s;main(a){for(;~scanf("%d",&a);)a>4e6?b=a%3?a&1?++o%3?b:(c=!printf("%d\n",b>3?b+s-3:s)):b+1:!(s-=~b):a;}
      |                                                              ^
main.c:1:62: note: each undeclared identifier is reported only once for each function it appears in
main.c:1:65: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | b,o,s;main(a){for(;~scanf("%d",&a);)a>4e6?b=a%3?a&1?++o%3?b:(c=!printf("%d\n",b>3?b+s-3:s)):b+1:!(s-=~b):a;}
      |                                                                 ^~~~~~
main.c:1:65: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:65: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:65: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<stdio.h>

int main(void){

	int i,j,k,q,p,inning,point,kazu[20];
	char eve[10];
	
		point=0;
		j=0;
		k=0;
		q=0;
		p=0;	
	
		scanf("%d",&inning);
		
		for(k=0;k<inning;k++){
		
			point=0;
			j=0;
			q=0;
			p=0;
			
		while(q<3){
		
			for(j=0;j<10;j++){
				eve[j]=0;
			}
			
			gets(eve);
			
			if(eve[0]=='O'){
				if(eve[1]=='U'){
					if(eve[2]=='T'){
						q++;
					}
				}		
			}
			if(eve[0]=='H'){
				if(eve[1]=='I'){
					if(eve[2]=='T'){
						p++;
						if(p>=4){
							point++;
						}
					}
				}
			}		
			
			if(eve[0]=='H'){
				if(eve[1]=='O'){
					if(eve[2]=='M'){
						if(eve[3]=='E'){
							if(eve[4]=='R'){
								if(eve[5]=='U'){
									if(eve[6]=='N'){
										point=point+p+1;
										p=0;
									}
								}
							}
						}		
					}
				}
			}
		}		
		kazu[k]=point;
	}
	for(k=0;k<inning;k++){
		printf("%d\n",kazu[k]);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:29:25: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
   29 |                         gets(eve);
      |                         ^~~~
      |                         fgets
Language: C

b,o,s;main(a){for(;~scanf("%s",&a);)a>4e6?a%3?a&3?++o%3?b:(b=s=!printf("%d\n",b>3?b+s-3:s)):b++:b=!(s-=~b):a;}

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | b,o,s;main(a){for(;~scanf("%s",&a);)a>4e6?a%3?a&3?++o%3?b:(b=s=!printf("%d\n",b>3?b+s-3:s)):b++:b=!(s-=~b):a;}
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'b' [-Wimplicit-int]
main.c:1:3: error: type defaults to 'int' in declaration of 'o' [-Wimplicit-int]
    1 | b,o,s;main(a){for(;~scanf("%s",&a);)a>4e6?a%3?a&3?++o%3?b:(b=s=!printf("%d\n",b>3?b+s-3:s)):b++:b=!(s-=~b):a;}
      |   ^
main.c:1:5: error: type defaults to 'int' in declaration of 's' [-Wimplicit-int]
    1 | b,o,s;main(a){for(;~scanf("%s",&a);)a>4e6?a%3?a&3?++o%3?b:(b=s=!printf("%d\n",b>3?b+s-3:s)):b++:b=!(s-=~b):a;}
      |     ^
main.c:1:7: error: return type defaults to 'int' [-Wimplicit-int]
    1 | b,o,s;main(a){for(;~scanf("%s",&a);)a>4e6?a%3?a&3?++o%3?b:(b=s=!printf("%d\n",b>3?b+s-3:s)):b++:b=!(s-=~b):a;}
      |       ^~~~
main.c: In function 'main':
main.c:1:7: error: type of 'a' defaults to 'int' [-Wimplicit-int]
main.c:1:21: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    1 | b,o,s;main(a){for(;~scanf("%s",&a);)a>4e6?a%3?a&3?++o%3?b:(b=s=!printf("%d\n",b>3?b+s-3:s)):b++:b=!(s-=~b):a;}
      |                     ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | b,o,s;main(a){for(;~scanf("%s",&a);)a>4e6?a%3?a&3?++o%3?b:(b=s=!printf("%d\n",b>3?b+s-3:s)):b++:b=!(s-=~b):a;}
main.c:1:21: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    1 | b,o,s;main(a){for(;~scanf("%s",&a);)a>4e6?a%3?a&3?++o%3?b:(b=s=!printf("%d\n",b>3?b+s-3:s)):b++:b=!(s-=~b):a;}
      |                     ^~~~~
main.c:1:21: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:1:65: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    1 | b,o,s;main(a){for(;~scanf("%s",&a);)a>4e6?a%3?a&3?++o%3?b:(b=s=!printf("%d\n",b>3?b+s-3:s)):b++:b=!(s-=~b):a;}
      |                                                                 ^~~~~~
main.c:1:65: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:65: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:1:65: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:1:98: error: lvalue required as left operand of assignment
    1 | b,o,s;main(a){for(;~scanf("%s",&a);)a>4e6?a%3?a&3?++o%3?b:(b=s=!printf("%d\n",b>3?b+s-3:s)):b++:b=!(s-=~b):a;}
      |                                                                                                  ^
Language: C

#include <iostream>
using namespace std;
int main()
{
  int n;
  cin >> n;
  while(n--){
    string str;
    int o = 0, p = 0, r=0;
    while(o < 3){
      cin >> str;
      if(str == "HIT"){
	if(r<3) r++;
	else p++;
      }else if(str == "HOMERUN"){
	p += r+1;
	r = 0;
      }else if(str == "OUT"){
	o++;
      }
    }
    cout << p << endl;
  }
  return 0;
}

Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include<stdio.h>
#include<string.h>

int main()
{
	int n;
	scanf("%d",&n);
	while(n-->0)
	{
		char a[8];
		int score=0,base=0,out=0;
		while(out<3)
		{
			scanf("%s",&a);
			if(!strcmp(a,"HIT"))
			{
				if(base!=0)
				{
					if(((base<<=1)&8)==8)
						{
							score+=1;
							base&=7;
						}
				}
				base+=1;
			}
			else if(!strcmp(a,"HOMERUN"))
			{
				score+=1;
				while(base!=0)
				{
					score+=1;
					(base>>=1)&=7;
				}
			}
			else
				out++;
		}
		printf("%d\n",score);
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:33:51: error: lvalue required as left operand of assignment
   33 |                                         (base>>=1)&=7;
      |                                                   ^~
Language: C

#include<stdio.h>
#include<string.h>
int main(void)
{
	int HIT=0,OUT=0,POINT=0,a,b,c=0;
	char EVENT[100][8];	
	for(;;)
	{
		scanf("%d\n",&a);
		for(b=0;;b++)
		{
			gets(EVENT[b]);
			if(strcmp(EVENT[b],"OUT")==0)
				OUT++;
			if(strcmp(EVENT[b],"HIT")==0)
				if(HIT==4)
					POINT++;
				else
					HIT++;
			if(strcmp(EVENT[b],"HOMERUN")==0)
			{
				POINT+=HIT+1;
				HIT=0;
			}
			if(OUT==3)
			{
				printf("%d\n",POINT);
				POINT=OUT=HIT=0;
				c++;
				if(c==a)
					return 0;
			}
		}
	}

Compiler output:
main.c: In function 'main':
main.c:12:25: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
   12 |                         gets(EVENT[b]);
      |                         ^~~~
      |                         fgets
main.c:34:9: error: expected declaration or statement at end of input
   34 |         }
      |         ^
Language: C

#include <stdio.h>
#include <string.h>

int main(){
	int ining,i,j,tokuten[100],mozisuu,hit,out;
	char mozi[8];
	scanf("%d",ining);
	
	for(j=0; j<100; j++){
		tokuten[j]=0;
	}

	i=0;
	hit=0;
	out=0;
	
	while(ining>i){
		scanf("%s", mozi);
		mozisuu=strlen(mozi);
		if(mozisuu==7){
			tokuten[i]=hit+1;
		} else {
			if(getchar(mozi)=='h'){
			hit=hit+1;
			}
			else{
			out=out+1;
			}
		}
	if(out==3){
		hit=0;
		out=0;
		i=i+1;
	}
	}

	for(j=0; j<ining; j++){
		printf("%d",tokuten[j]);
	}
}

Compiler output:
main.c: In function 'main':
main.c:23:28: error: too many arguments to function 'getchar'
   23 |                         if(getchar(mozi)=='h'){
      |                            ^~~~~~~
In file included from main.c:1:
/usr/include/stdio.h:582:12: note: declared here
  582 | extern int getchar (void);
      |            ^~~~~~~
Language: C

#include <stdio.h>
#include <algorithm>

using namespace std;

int main()
{
  int n,q;
  int S[100000], T[50000];
  int ans;
  int i,j;

  scanf("%d",&n);
  for(i=0; i<n; i++){
    scanf("%d",&S[i]);
  }

  ans = 0;
  scanf("%d",&q);
  for(i=0; i<q; i++){
    int found;
    scanf("%d",&T[i]);
    found = binary_search(S, S+n, T[i]);
    if(found==0) ans++;
    // テァツキツ堙・ツスツ「テヲツ篠「テァツエツ「(テヲツ卍づゥツ鳴禿・ツ按?」ツつ古」ツ?ォテ」ツ?ェテ」ツつ?
    // for(j=0; j<n; j++){
    //   if( S[j]==T[i] ){
    // 	ans++;
    // 	break;
    //   }
    // }
  }

  printf("%d\n",ans);

  return 0;
}
 

Compiler output:
main.c:2:10: fatal error: algorithm: No such file or directory
    2 | #include <algorithm>
      |          ^~~~~~~~~~~
compilation terminated.
Language: C

#include<stdio.h>
int main(void){
  int i,j,n,c=0,b=0,s=0;
  char in[100];
  int ten[100]={0};
  
  scanf("%d",&n);
  while(c!=n){
    scanf("%s",in);
    switch(in[1]-'A'){
    case 8:b++;break;  //i hit
    case 20:s++;break;  //u out   
    case 14:ten[c]+=b+1;b=0;break;//o homerun
    }
    if(b==4){ten[c]++;b=3;}
    if(s==3){c++;b=0;s=0;}
  }

  for(i=0;i<n;i++){
    printf("%d\n",ten[i]);
  }
  return 0;

}
h

Compiler output:
main.c:25:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
   25 | h
      | ^
Language: C++

#include <iostream>
#include <string>
using namespace std;

int main()
{
	int n;
	cin >> n;
	while(n--)
	{
		int count = 0,out = 0;
		int home[4];
		memset(home,0,sizeof(home));
		while(out != 3)
		{
			string s;
			cin >> s;

			if(s == "OUT")
			{
				out++;
			}
			else if(s == "HIT")
			{
				if(home[2] == 1)
				{
					home[2]--;
					home[3]++;
				}
				if(home[1] == 1)
				{
					home[1]--;
					home[2]++;
				}
				if(home[0] == 1)
				{
					home[0]--;
					home[1]++;
				}

				home[0]++;
			}
			else if(s == "HOMERUN")
			{
				if(home[2] == 1)
				{
					home[2]--;
					home[3]++;
				}
				if(home[1] == 1)
				{
					home[1]--;
					home[3]++;
				}
				if(home[0] == 1)
				{
					home[0]--;
					home[3]++;
				}
				home[3]++;
			}
		}
		count = home[3];
		cout << count << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: 'memset' was not declared in this scope
   13 |                 memset(home,0,sizeof(home));
      |                 ^~~~~~
a.cc:2:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | #include <string>
Language: C++

#include <bits/stdc++.h>

using namespace std;

#define FOR(i,k,n) for(int i = (k); i < (n); i++)
#define REP(i,n) FOR(i,0,n)
#define INF 114514810
#define ELEM(array) (sizeof (array)/sizeof *(array))
#define MAX_N 100
typedef long long ll;

int n;
int count_HIT=0, count_OUT=0;
int Point=0;
string S;


void solve()
{
	while (count_OUT <3)
	{
		cin >> S;
		if (S == "HIT")
		{
			count_HIT++;
			if (count_HIT == 4)
			{
				Point[++;
				
				count_HIT -- ;
			}
		}
		else if (S == "HOMERUN")
		{
			Point += count_HIT + 1;
			
			count_HIT = 0;
		}
		else count_OUT++;
	}
	cout << Point << endl;
	count_OUT = 0; count_HIT = 0;
	Point = 0;
	
	return;
}

int main()
{
	cin >> n;
	REP(j, n)
	{
		solve();
	}

	

	return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:28:41: error: expected primary-expression before ';' token
   28 |                                 Point[++;
      |                                         ^
a.cc:28:41: error: expected ']' before ';' token
   28 |                                 Point[++;
      |                                         ^
      |                                         ]
Language: C++

#include <cstdio>
#include <iostream>
#include <string>

#define rep2(x,from,to) for(int x=(from);(x)<(to);(x)++)
#define rep(x,to) rep2(x,0,to)

using namespace std;

int main() {
	int n;
	int base = 0, out = 0, score = 0;
	cin >> n;  
    while(1) {
        char str[10];
        if(EOF == scanf("%s", str)) break;
        if(!strcmp(str, "OUT")) {
            out++;
            if(out >= 3) {
                cout << score <<endl;
                score = out = base = 0;
                n--;
            }
        } else if(!strcmp(str, "HOMERUN")) {
            score += base + 1;
            base = 0;
        } else {
            base++;
            if(base >= 4) {
                score++;
                base--;
            }
        }
    }
    if(n) {
        cout << score << endl;
    }
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:13: error: 'strcmp' was not declared in this scope
   17 |         if(!strcmp(str, "OUT")) {
      |             ^~~~~~
a.cc:3:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include <iostream>
  +++ |+#include <cstring>
    3 | #include <string>
Language: C++

#include<iostream>
#include<string>
using namespace std;

int main(){
  int n,cou=0;
  string str;
  cin >> n;
  while(n>cou){
    int cou_out=0,ans=0,ining=0;
    while(cou_out < 3){
      cin >> str;
      if(str == "HIT"){
	ining++;
	if(ining == 4){
	  ans++;
	  ining--;
	}
      }
      else if(str == "OUT"){
	cou_out++;
      }
      else if(str == "HOMERUN"){
	ans += ining+1;
	ining = 0;
      }
    }
    cou++;
    cout << ans << endl;
  }
}#include<iostream>
#include<string>
using namespace std;

int main(){
  int n,cou=0;
  string str;
  cin >> n;
  while(n>cou){
    int cou_out=0,ans=0,ining=0;
    while(cou_out < 3){
      cin >> str;
      if(str == "HIT"){
	ining++;
	if(ining == 4){
	  ans++;
	  ining--;
	}
      }
      else if(str == "OUT"){
	cou_out++;
      }
      else if(str == "HOMERUN"){
	ans += ining+1;
	ining = 0;
      }
    }
    cou++;
    cout << ans << endl;
  }
}

Compiler output:
a.cc:31:2: error: stray '#' in program
   31 | }#include<iostream>
      |  ^
a.cc:31:3: error: 'include' does not name a type
   31 | }#include<iostream>
      |   ^~~~~~~
a.cc:35:5: error: redefinition of 'int main()'
   35 | int main(){
      |     ^~~~
a.cc:5:5: note: 'int main()' previously defined here
    5 | int main(){
      |     ^~~~