Mã chấm Tài khoản Bài tập Ngôn ngữ lập trình Trạng thái Thời gian Bộ nhớ Kích thước Thời gian nộp
15461 Nguyễn Đan Huy Máy bán hàng tự động C/C++ Lỗi biên dịch (CE) 0 MS 0 KB 852 2023-01-15 20:46:25

Lỗi biên dịch:

Main.cc: In function ‘int main()’:
Main.cc:22:53: error: expected primary-expression before ‘<<’ token
         if (C==6) cout<<4<<'\n'<<1<<" "<<1<<" "<<3<<<<" "<<6<<'\n';
                                                     ^~
Main.cc:23:53: error: expected primary-expression before ‘<<’ token
         if (C==7) cout<<4<<'\n'<<1<<" "<<1<<" "<<3<<<<" "<<6<<'\n';
                                                     ^~
Main.cc:24:53: error: expected primary-expression before ‘<<’ token
         if (C==8) cout<<4<<'\n'<<1<<" "<<1<<" "<<3<<<<" "<<6<<'\n';
                                                     ^~
Main.cc:25:53: error: expected primary-expression before ‘<<’ token
         if (C==9) cout<<4<<'\n'<<1<<" "<<1<<" "<<3<<<<" "<<6<<'\n';
                                                     ^~
Main.cc:26:54: error: expected primary-expression before ‘<<’ token
         if (C==10) cout<<4<<'\n'<<1<<" "<<1<<" "<<3<<<<" "<<6<<'\n';
                                                      ^~