Mã chấm: 15337
Main.c: In function ‘main’: Main.c:5:3: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘scanf’ scanf("%d",&n); ^~~~~ Main.c:7:16: error: ‘a’ undeclared (first use in this function) scanf("%d",a[i]); ^ Main.c:7:16: note: each undeclared identifier is reported only once for each function it appears in Main.c:2:14: error: expected identifier or ‘(’ before numeric constant #define max 1000 ^ Main.c:8:13: note: in expansion of macro ‘max’ int dem=0,max; ^~~ Main.c:14:10: error: lvalue required as left operand of assignment max=dem; ^ Main.c:15:15: error: lvalue required as unary ‘&’ operand printf("%d",&max) ^ Main.c:16:1: error: expected ‘;’ before ‘}’ token } ^