0

Help me

Why? #include <iostream> using namespace std; int main() { int a; int i = 0; int min=32000; int max=-32000; bool bEnd = false; for (;!bEnd;) { cout <<"vvedite chislo: "; cin>>a; if (a == 0) { cout<<"maximum:"<<max<<endl; cout<<"minimum:"<<min<<endl; bEnd = true; } else { i++; }

31st Jan 2020, 6:01 AM
Арслан Султанов
Арслан Султанов - avatar
6 Answers
+ 3
Please elaborate on your question, if you have any. At this point, it is impossible to answer.
31st Jan 2020, 6:02 AM
Scooby
Scooby - avatar
+ 3
Two curly brackets at the end are missing🧐🤣
31st Jan 2020, 7:00 AM
Oma Falk
Oma Falk - avatar
31st Jan 2020, 6:58 AM
Oma Falk
Oma Falk - avatar
+ 1
why the code does not work and how to write it so that it works through an array?
31st Jan 2020, 6:04 AM
Арслан Султанов
Арслан Султанов - avatar
+ 1
Is that the whole code? I think you may have better chance for answer if you just share the code link rather than raw text like this. Big codes with over than 10-15 lines are better off saved and shared as link. Follow this guide to share links 👍 https://www.sololearn.com/post/74857/?ref=app
31st Jan 2020, 6:57 AM
Ipang
+ 1
1. For longer codes (over 10 lines) it is recommended to share it as link... Like this: https://code.sololearn.com/cLnmozwJNXq1/?ref=app 2. Add 2 curly braces } at the end of code because your for loop and main function bodies aren't closed. 3. Read what kind of error your compiler detects (if found).
31st Jan 2020, 4:46 PM
Baltazarus
Baltazarus - avatar