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
268046 Triệu Thị Mai Chi Ministop HUTECH C/C++ Lỗi biên dịch (CE) 0 MS 0 KB 226 2023-11-18 19:45:20

Lỗi biên dịch:

Main.cc: In function ‘int main()’:
Main.cc:9:5: error: ‘cin’ was not declared in this scope
     cin>>a>>b>>x>>y;
     ^~~
Main.cc:9:5: note: suggested alternative: ‘sin’
     cin>>a>>b>>x>>y;
     ^~~
     sin
Main.cc:9:16: error: ‘x’ was not declared in this scope
     cin>>a>>b>>x>>y;
                ^
Main.cc:9:19: error: ‘y’ was not declared in this scope
     cin>>a>>b>>x>>y;
                   ^
Main.cc:10:5: error: ‘cout’ was not declared in this scope
     cout<<(a*x)+(b*y);
     ^~~~
Main.cc:10:5: note: suggested alternative: ‘cosl’
     cout<<(a*x)+(b*y);
     ^~~~
     cosl
Main.cc:8:15: warning: unused variable ‘c’ [-Wunused-variable]
     int a, b, c, v;
               ^
Main.cc:8:18: warning: unused variable ‘v’ [-Wunused-variable]
     int a, b, c, v;
                  ^