Help find error(c++) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

Help find error(c++)

Please, help me find error. There is the code: #include <iostream> using namespace std; int main(); { int c = 10; int a = 60; int b = 20; int w; cin w; if (w>10) cout << "Try again"; if (w<10) cout << "You win"; cout << c a b w; return 0; }

19th Mar 2019, 9:00 PM
Pavel Alistatov
Pavel Alistatov - avatar
4 Answers
+ 4
cin >> w; cout << c << a << b << w;
19th Mar 2019, 9:01 PM
Vlad Serbu
Vlad Serbu - avatar
+ 10
Always use << and >>
19th Mar 2019, 9:30 PM
Sławek J.
0
Thanks!
19th Mar 2019, 9:04 PM
Pavel Alistatov
Pavel Alistatov - avatar
0
Okay, thanks
19th Mar 2019, 9:31 PM
Pavel Alistatov
Pavel Alistatov - avatar