Mã chấm: 272358
Main.cc:17:1: error: expected ‘,’ or ‘;’ before ‘int’ int tinh_tong_chi_phi (struct GoiBus goi int N) { ^~~ Main.cc: In function ‘Goibus tim_goi_bus_tot_nhat(int)’: Main.cc:24:41: error: return type ‘struct Goibus’ is incomplete struct Goibus tim_goi_bus_tot_nhat(int N) { ^ Main.cc:25:17: error: variable ‘Goibus goi_tot_nhat’ has initializer but incomplete type struct Goibus goi_tot_nhat = cac_loai_goi_bus[0]; ^~~~~~~~~~~~ Main.cc:25:32: error: ‘cac_loai_goi_bus’ was not declared in this scope struct Goibus goi_tot_nhat = cac_loai_goi_bus[0]; ^~~~~~~~~~~~~~~~ Main.cc:26:22: error: ‘tinh_tong_chi_phi’ was not declared in this scope int gia_tot_nhat = tinh_tong_chi_phi(goi_tot_nhat, N); ^~~~~~~~~~~~~~~~~ Main.cc: In function ‘int main()’: Main.cc:42:17: error: variable ‘main()::GoiBus gia_tot_nhat’ has initializer but incomplete type struct GoiBus gia_tot_nhat = tim_goi_bus_tot_nhat(N); ^~~~~~~~~~~~ Main.cc:43:18: error: ‘tinh_tong_chi_phi’ was not declared in this scope printf("%d\n", tinh_tong_chi_phi(gia_tot_nhat, N)); ^~~~~~~~~~~~~~~~~ Main.cc:41:8: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &N); ~~~~~^~~~~~~~~~