Mã chấm: 99425
Main.cc:50:8: error: expected constructor, destructor, or type conversion before ‘(’ token
printf("%d", hs);
^
Main.cc:52:1: error: expected declaration before ‘}’ token
}
^
Main.cc: In function ‘int main()’:
Main.cc:37:7: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&sv,&doi);
~~~~~^~~~~~~~~~~~~~~~~
Main.cc:39:8: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &a[i]);
~~~~~^~~~~~~~~~~~~