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
269660 Bùi Thanh Long Ẩn Luỹ thừa bậc 5 C/C++ Lỗi biên dịch (CE) 0 MS 0 KB 537 2023-11-18 21:48:14

Lỗi biên dịch:

Main.cc: In function ‘int main()’:
Main.cc:19:13: error: ‘cout’ was not declared in this scope
             cout << "YES" << std::endl;
             ^~~~
Main.cc:19:13: note: suggested alternative: ‘cosl’
             cout << "YES" << std::endl;
             ^~~~
             cosl
Main.cc:19:35: error: ‘endl’ is not a member of ‘std’
             cout << "YES" << std::endl;
                                   ^~~~
Main.cc:21:13: error: ‘out’ was not declared in this scope
             out << "NO" << std::endl;
             ^~~
Main.cc:21:13: note: suggested alternative: ‘putw’
             out << "NO" << std::endl;
             ^~~
             putw
Main.cc:21:33: error: ‘endl’ is not a member of ‘std’
             out << "NO" << std::endl;
                                 ^~~~
Main.cc:9:11: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
     scanf ("T");
     ~~~~~~^~~~~
Main.cc:15:15: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
         scanf ("X");
         ~~~~~~^~~~~