Mã chấm: 15557
Main.c: In function ‘main’:
Main.c:20:40: error: expected ‘)’ before ‘;’ token
printf("%d", a[pmax + 1] - a[pmax -1];
^
Main.c:21:1: error: expected ‘;’ before ‘}’ token
}
^
Main.c:6:3: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^~~~~~~~~~~~~~~
Main.c:10:5: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &a[i]);
^~~~~~~~~~~~~~~~~~