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++; }
6 Answers
+ 3
Please elaborate on your question, if you have any. At this point, it is impossible to answer.
+ 3
Two curly brackets at the end are missing🧐🤣
+ 2
https://code.sololearn.com/cP67GIMx8D3M/?ref=app
You mean that code?
+ 1
why the code does not work and how to write it so that it works through an array?
+ 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
+ 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).