/in/main.c:3:2: error: invalid preprocessing directive #inclide
#inclide<math.h>typedef struct_country{
^~~~~~~
/in/main.c:6:1: error: expected identifier or '(' before '}' token
} country;
^
/in/main.c:6:3: error: data definition has no type or storage class [-Werror]
} country;
^~~~~~~
/in/main.c:6:3: error: type defaults to 'int' in declaration of 'country' [-Werror=implicit-int]
/in/main.c: In function 'main':
/in/main.c:16:29: error: integer overflow in expression [-Werror=overflow]
float t=rand()/(RAND_MAX+1);
^
/in/main.c:17:5: error: statement with no effect [-Werror=unused-value]
country x[16];
^~~~~~~
/in/main.c:17:13: error: expected ';' before 'x'
country x[16];
^
/in/main.c:21:9: error: 'x' undeclared (first use in this function)
x[i]={rank, name[4]};
^
/in/main.c:21:9: note: each undeclared identifier is reported only once for each function it appears in
/in/main.c:21:14: error: expected expression before '{' token
x[i]={rank, name[4]};
^
/in/main.c:26:31: error: left-hand operand of comma expression has no effect [-Werror=unused-value]
float w =(x[a].rank,x[b].rank,k);
^
/in/main.c:26:41: error: left-hand operand of comma expression has no effect [-Werror=unused-value]
float w =(x[a].rank,x[b].rank,k);
^
/in/main.c:27:16: error: implicit declaration of function 'round' [-Werror=implicit-function-declaration]
if(round( t-w+0.5)>=0)
^~~~~
/in/main.c:27:16: error: incompatible implicit declaration of built-in function 'round' [-Werror]
/in/main.c:27:16: note: include '<math.h>' or provide a declaration of 'round'
/in/main.c:28:17: error: expected expression before 'char'
char* r="win";
^~~~
/in/main.c:27:13: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
if(round( t-w+0.5)>=0)
^~
/in/main.c:29:17: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
printf("%s %s %s",x[a].name,r,x[b].name);
^~~~~~
/in/main.c:29:45: error: 'r' undeclared (first use in this function)
printf("%s %s %s",x[a].name,r,x[b].name);
^
/in/main.c:25:17: error: variable 'b' set but not used [-Werror=unused-but-set-variable]
int b=2*n-1;
^
/in/main.c:24:17: error: variable 'a' set but not used [-Werror=unused-but-set-variable]
int a=2*n-2;
^
/in/main.c:30:14: error: 'else' without a previous 'if'
}else{
^~~~
/in/main.c:32:37: error: 'a' undeclared (first use in this function)
printf("%s %s %s",x[a].name,r,x[b].name);
^
/in/main.c:32:49: error: 'b' undeclared (first use in this function)
printf("%s %s %s",x[a].name,r,x[b].name);
^
/in/main.c:20:14: error: unused variable 'name' [-Werror=unused-variable]
char name[4];
^~~~
/in/main.c:19:13: error: unused variable 'rank' [-Werror=unused-variable]
int rank;
^~~~
/in/main.c: At top level:
/in/main.c:39:5: error: expected identifier or '(' before 'return'
return 0;
^~~~~~
/in/main.c:40:1: error: expected identifier or '(' before '}' token
}
^
/in/main.c: In function 'w':
/in/main.c:41:52: error: fixed-point constants are a GCC extension [-Werror]
float w(int ra, int rb,int k){return (rb+k)/(ra+rb+2k);}
^~
/in/main.c:41:52: error: fixed-point types not supported for this target
/in/main.c:41:1: error: control reaches end of non-void function [-Werror=return-type]
float w(int ra, int rb,int k){return (rb+k)/(ra+rb+2k);}
^~~~~
cc1: all warnings being treated as errors