0_0_19850700_16579.c:1:9: error: #include expects "FILENAME" or <FILENAME>
#include <stdio.h>
^
0_0_19850700_16579.c:2:4: error: expected identifier or '(' before '&' token
int main(void)
^
0_0_19850700_16579.c: In function 'main':
0_0_19850700_16579.c:3:5: error: expected identifier or '(' before '&' token
{int n, i;
^
0_0_19850700_16579.c:3:11: error: 'n' undeclared (first use in this function)
{int n, i;
^
0_0_19850700_16579.c:3:11: note: each undeclared identifier is reported only once for each function it appears in
0_0_19850700_16579.c:3:14: error: 'nbsp' undeclared (first use in this function)
{int n, i;
^
0_0_19850700_16579.c:3:19: error: 'i' undeclared (first use in this function)
{int n, i;
^
0_0_19850700_16579.c:4:7: error: expected identifier or '(' before '&' token
double min, max;
^
0_0_19850700_16579.c:4:13: error: 'min' undeclared (first use in this function)
double min, max;
^
0_0_19850700_16579.c:4:23: error: 'max' undeclared (first use in this function)
double min, max;
^
0_0_19850700_16579.c:5:7: error: expected identifier or '(' before '&' token
double x, y;
^
0_0_19850700_16579.c:5:13: error: 'x' undeclared (first use in this function)
double x, y;
^
0_0_19850700_16579.c:5:21: error: 'y' undeclared (first use in this function)
double x, y;
^
0_0_19850700_16579.c:6:6: error: expected '(' before '&' token
while (scanf("%d", &n) != EOF)
^
0_0_19850700_16579.c:6:29: error: expected ')' before ';' token
while (scanf("%d", &n) != EOF)
^
0_0_19850700_16579.c:6:38: error: expected ')' before ';' token
while (scanf("%d", &n) != EOF)
^
0_0_19850700_16579.c:7:43: error: expected ')' before ';' token
{scanf("%lf", &x);
^
0_0_19850700_16579.c:8:58: error: expected expression before '=' token
min = max = x;
^
0_0_19850700_16579.c:8:74: error: expected expression before '=' token
min = max = x;
^
0_0_19850700_16579.c:9:52: error: expected '(' before '&' token
for (i = 1 ; i < n ; i++)
^
0_0_19850700_16579.c:9:65: error: expected ')' before ';' token
for (i = 1 ; i < n ; i++)
^
0_0_19850700_16579.c:10:67: error: expected ')' before ';' token
{scanf("%lf", &y);
^
0_0_19850700_16579.c:11:80: error: expected expression before '+=' token
x += y;
^
0_0_19850700_16579.c:12:75: error: expected '(' before '&' token
if (y > max) max = y;
^
0_0_19850700_16579.c:12:88: error: expected ')' before ';' token
if (y > max) max = y;
^
0_0_19850700_16579.c:12:115: error: expected expression before '=' token
if (y > max) max = y;
^
0_0_19850700_16579.c:13:75: error: expected '(' before '&' token
if (y < min) min = y;}
^
0_0_19850700_16579.c:13:88: error: expected ')' before ';' token
if (y < min) min = y;}
^
0_0_19850700_16579.c:13:115: error: expected expression before '=' token
if (y < min) min = y;}
^
0_0_19850700_16579.c:14:71: error: expected ')' before ';' token
printf("%.2lf\n", (x - min - max) / (n - 2));
^
|