Mã chấm: 271460
Main.cc: In function ‘int main()’: Main.cc:8:12: error: expected initializer before ‘a’ long n a[1000]; ^ Main.cc:9:18: error: ‘n’ was not declared in this scope scanf("%ld",&n); ^ Main.cc:9:18: note: suggested alternative: ‘yn’ scanf("%ld",&n); ^ yn Main.cc:11:38: warning: format ‘%ld’ expects a matching ‘long int*’ argument [-Wformat=] for(int i=0; i