walters
  • walters
c++ question can u pls run this code and help me to remove the warnings #include #include #include using namespace std; int main() { char postString[1024]=""; string dataString =""; string nameString =""; string passwordString=""; int contentLength=0; if( getenv("CONTENT_LENGTH") ) contentLength= atoi(getenv("CONTENT_LENGTH")); cin.read(postString,contentLength); dataString = postString; int namelocation = dataString.find("namebox=")+8; int endNamelocation = dataString.find("&"); int password = dataString.find("passwordbox=")+12; int endPassword = dataString.find("&button"); nameString = dataString.substr(namelocation,endNamelocation-namelocation); passwordString=dataString.substr(password,endPassword-password); cout<<"content-Type:texthtml\n\n"; cout<<"" <<""; cout<<"" <<"Bug2Bug Travel</tittle></head><body>"; if (passwordString == "coat2coat") cout<<"<hr/><p>Currnt member special:" <<"Seattle to Tokyo ($400)</p>"; else cout<<"<p>sorry u have entered incorrect password</p>"; cout<<"</body></html>"; return 0; }</div> <div class="sg-text js-question-content" itemprop="text"> </div> </div> <span class="target-group" title="Computer Science"> Computer Science </span> </div> </article> <div class="brn-answer reply expert-reply" itemscope="" itemtype="http://schema.org/Answer" itemprop="suggestedAnswer"> <div class="sg-content-box sg-content-box--spaced"> <div class="brn-answer__header sg-content-box__header expert-reply-blur"> <div class="brn-answer__avatar-wrapper"> <div class="sg-avatar"> <a href="" onclick="preventDefault();"> <img class="sg-avatar__image" src="/brainly-img/sample_avatars/avatar3_48x48.png" alt="jamiebookeater" title="jamiebookeater"> </a> </div> </div> <ul class="sg-breadcrumb-list"> <li class="sg-breadcrumb-list__element"> <a href="http://openstudy.com/users/jamiebookeater" class="sg-link sg-link--small sg-link--black">jamiebookeater</a> </li> <span class="sg-breadcrumb-list__element"> <span class="sg-link sg-link--disabled sg-link--small sg-link--gray"> <time data-date="Sun, 3 Feb 2013 6:29:20 GMT" class="last-updated to-fuzzy sg-link--time">5 years ago</time> </span> </span> </ul> </div> <div class="brn-answer__content sg-content-box__content expert-reply-blur"> <div class="sg-text questionBody"> At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat. </div> </div> </div> <div class="expert-reply-overlay"> <p class="sg-text-bit sg-text-bit--not-responsive sg-text-bit--light">Get our expert's</p> <p class="sg-text-bit sg-text-bit--not-responsive sg-text-bit--light">answer on brainly</p> <a class="sg-button-primary sg-button-primary--alt" href="https://brainly.com/signup?entry=7201&utm_medium=referral&utm_source=openstudy.com&utm_campaign=OS_7201_expert_answer&utm_content=new_layout" onclick="trackOutboundLinkWithEntry( 'https://brainly.com/signup?entry=7201&utm_medium=referral&utm_source=openstudy.com&utm_campaign=OS_7201_expert_answer&utm_content=new_layout', 7201); return false" rel="nofollow"> <div class="sg-button-primary__hole">SEE EXPERT ANSWER</div> </a> <p class="expert-bottom-line"> Get your <b>free</b> account and access <b>expert</b> answers to this <br/> and <b>thousands</b> of other questions. </p> </div> <div class="ontop-toplayer" onclick="trackOutboundLinkWithEntry('https://brainly.com/signup?entry=7221&utm_medium=referral&utm_source=openstudy.com&utm_campaign=OS_7221_expert_toplayer&utm_content=new_layout', 7221); return false" > </div> </div> </div> </div> </div> <section class="sg-layout os-blurred"> <div class="gray-background"> <div class="sg-header js-main-header lnd-header sg-layout__box lnd-header-layout-box os-blue"> <div class="sg-header__container"> <div class="sg-header__left"> <div class="sg-logo"> <img class="sg-logo__image" src="/brainly-img/brainly-761d75d6ea.png"> </div> </div> <div class="sg-header__middle"> <h2 id="os-is-now-brainly" class="sg-header-primary sg-header-primary--small sg-header-primary--light"> <span class="slim-title">OpenStudy is now</span> Brainly! </h2> <p class="expert-bottom-line"> Get your <b>free</b> account and access <b>expert</b> answers to this and <b>thousands</b> of other questions </p> </div> <div class="sg-header__right"> <a href="https://brainly.com/signup?entry=7131&utm_medium=referral&utm_source=openstudy.com&utm_campaign=OS_7131_join_brainly&utm_content=new_layout" onclick="trackOutboundLinkWithEntry('https://brainly.com/signup?entry=7131&utm_medium=referral&utm_source=openstudy.com&utm_campaign=OS_7131_join_brainly&utm_content=new_layout', 7131);return false;" class="sg-button-primary sg-button-primary--alt-inverse">join brainly today</a> </div> </div> </div> <!-- /28653467/openstudy.com_subpage_bill_top --> <div id='openstudy.com_subpage_bill_top' class="ad-bill-top"> <script> googletag.cmd.push(function() { googletag.display('openstudy.com_subpage_bill_top'); }); </script> </div> <div class="sg-layout__container"> <div class="sg-layout__content"> <div id="main-content" role="main" itemscope itemtype="http://schema.org/Question"> <div> <div class="sg-layout__box"> <article id="question" class="brn-question"> <div class="sg-content-box sg-content-box--spaced"> <div class="brn-question__header sg-content-box__header"> <div class="brn-answer__avatar-wrapper"> <div class="sg-avatar"> <img class="sg-avatar__image" src="http://assets.openstudy.com/users/default-avatar-large.png" alt="walters" title="walters"> </div> </div> <ul class="sg-breadcrumb-list js-question-breadcrumbs" xmlns:v="http://rdf.data-vocabulary.org/#"> <li class="sg-breadcrumb-list__element" data-subject-id="2" data-icon="math" typeof="v:Breadcrumb"> <span class="sg-link sg-link--gray sg-link--disabled"> <span style="color: black"> walters </span> <time class="sg-link--time" datetime="Sun, 3 Feb 2013 6:29:07 GMT" title="Sun, 3 Feb 2013 6:29:07 GMT">5 years ago</time> </span> </li> </ul> </div> <div class="brn-question__content sg-content-box__content sg-content-box__content--spaced-bottom"> <div class="questionBody sg-text" itemprop="name">c++ question can u pls run this code and help me to remove the warnings #include<iostream> #include<string> #include<cstdlib> using namespace std; int main() { char postString[1024]=""; string dataString =""; string nameString =""; string passwordString=""; int contentLength=0; if( getenv("CONTENT_LENGTH") ) contentLength= atoi(getenv("CONTENT_LENGTH")); cin.read(postString,contentLength); dataString = postString; int namelocation = dataString.find("namebox=")+8; int endNamelocation = dataString.find("&"); int password = dataString.find("passwordbox=")+12; int endPassword = dataString.find("&button"); nameString = dataString.substr(namelocation,endNamelocation-namelocation); passwordString=dataString.substr(password,endPassword-password); cout<<"content-Type:texthtml\n\n"; cout<<"<?xml version = \"1.0\"?>" <<"<!DOCTYPE html PUBLIC\"-//W3C//DTD XHTML 1.1//EN\"" <<"\"htp://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\">"; cout<<"<html xmlns =\"http://www.w3.org/1999/xhtml\">" <<"<head><title>Bug2Bug Travel</tittle></head><body>"; if (passwordString == "coat2coat") cout<<"<hr/><p>Currnt member special:" <<"Seattle to Tokyo ($400)</p>"; else cout<<"<p>sorry u have entered incorrect password</p>"; cout<<"</body></html>"; return 0; }</div> <div class="sg-text js-question-content" itemprop="text"> </div> </div> <span class="target-group" title="Computer Science"> Computer Science </span> </div> </article> </div> <!-- EXPERT BANNER new --> <style> @media (max-width: 767px) { div#answers .expert-reply { margin-top: 1rem; } div#answers .expert-reply .sg-breadcrumb-list__element span:nth-child(1) { display: block; } div#answers .expert-reply .sg-breadcrumb-list__element span:nth-child(2) { display: none; } } </style> <div class="brn-answer reply expert-reply" itemscope="" itemtype="http://schema.org/Answer" itemprop="suggestedAnswer"> <div class="sg-layout__box"> <div> <article id="question" class="brn-question"> <div class="sg-content-box sg-content-box--spaced"> <div class="brn-question__header sg-content-box__header"> <ul class="sg-breadcrumb-list js-question-breadcrumbs" xmlns:v="http://rdf.data-vocabulary.org/#"> <li class="sg-breadcrumb-list__element" data-subject-id="2" data-icon="math" typeof="v:Breadcrumb"> <span class="sg-link sg-link--gray sg-link--disabled"> <span style="color: black"> Stacey Warren </span> <span style="color: black"> - </span> <span style="color: black"> Expert brainly.com </span> </span> </li> </ul> </div> <div class="brn-question__content sg-content-box__content sg-content-box__content--spaced-bottom"> <div class="questionBody sg-text" itemprop="name"> Hey! We 've verified this expert answer for you, click below to unlock the details :) </div> <div class="sg-horizontal-separator" style="margin-bottom: 2rem; margin-top: 1rem; width: 100%;"> </div> </div> <span class="target-group" style="background-color: #88d7b0" > <svg class="sg-icon sg-icon--x14"> <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-check"></use> </svg> <span style="color:white">SOLVED</span> </span> </div> </article> <div class="brn-answer reply expert-reply" style="background-color: inherit;" itemscope="" itemtype="http://schema.org/Answer" itemprop="suggestedAnswer"> <div class="sg-content-box sg-content-box--spaced"> <div class="brn-answer__content sg-content-box__content expert-reply-blur"> <div class="sg-text questionBody"> At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat. </div> </div> </div> <div class="expert-reply-overlay" style="background-color: rgba(255, 255, 255, .6)"> <a class="sg-button-primary sg-button-primary--alt" href="" onclick="trackOutboundLinkWithEntry('https://brainly.com/signup?entry=7201&utm_medium=referral&utm_source=openstudy.com&utm_campaign=OS_7201_expert_answer&utm_content=new_layout', 7201); return false" rel="nofollow"> <div class="sg-button-primary__hole">UNLOCK FULL ANSWER</div> </a> </div> </div> </div> </div> </div> <div class="mid-ads"> <!-- /28653467/openstudy.com_subpage_mid_left --> <div id="openstudy.com_subpage_mid_left" class="ad-mid-left"> <script> googletag.cmd.push(function() { googletag.display('openstudy.com_subpage_mid_left'); }); </script> </div> <!-- /28653467/openstudy.com_subpage_mid_right --> <div id='openstudy.com_subpage_mid_right' class="ad-mid-right"> <script> googletag.cmd.push(function() { googletag.display('openstudy.com_subpage_mid_right'); }); </script> </div> </div> <div id="answers" class="brn-answers js-floating-button-container replies"> <div class="sg-horizontal-separator sg-hide-for-medium-up"> </div> <div class="sg-layout__box"> <div class="brn-answer" itemscope="" itemtype="http://schema.org/Answer" itemprop="suggestedAnswer"> <div class="sg-content-box sg-content-box--spaced"> <div class="brn-answer__header sg-content-box__header"> <div class="brn-answer__avatar-wrapper"> <div class="sg-avatar"> <img class="sg-avatar__image" src="http://assets.openstudy.com/users/jamiebookeater/avatar/large" alt="jamiebookeater" title="jamiebookeater"> </div> </div> <ul class="sg-breadcrumb-list"> <li class="sg-breadcrumb-list__element"> <span style="color: black" class="sg-link sg-link--gray"> jamiebookeater </span> </li> <span class="sg-breadcrumb-list__element"> <span class="sg-link sg-link--disabled sg-link--small sg-link--gray"> <time data-date="Sun, 3 Feb 2013 6:29:20 GMT" class="last-updated to-fuzzy sg-link--time">5 years ago</time> </span> </span> </ul> </div> <div class="brn-answer__content sg-content-box__content"> <div class="sg-text questionBody">I got my questions answered at brainly.com in under 10 minutes. Go to <a href="http://brainly.com/tasks/landing?entry=7108&utm_medium=referral&utm_source=openstudy.com&utm_campaign=OS_7108_1st_answer&utm_content=new_layout" onclick="trackOutboundLinkWithEntry('http://brainly.com/tasks/landing?entry=7108&utm_medium=referral&utm_source=openstudy.com&utm_campaign=OS_7108_1st_answer&utm_content=new_layout', 7108);return false;">brainly.com</a> now for free help!</div> </div> </div> </div> </div> <div class="sg-horizontal-separator sg-hide-for-medium-up"> </div> <div class="sg-layout__box"> <div class="brn-answer reply" itemscope="" itemtype="http://schema.org/Answer" itemprop="suggestedAnswer"> <div class="sg-content-box sg-content-box--spaced"> <div class="brn-answer__header sg-content-box__header"> <div class="brn-answer__avatar-wrapper"> <div class="sg-avatar"> <img class="sg-avatar__image" src="http://assets.openstudy.com/users/default-avatar-large.png" alt="walters" title="walters"> </div> </div> <ul class="sg-breadcrumb-list"> <li class="sg-breadcrumb-list__element"> <span class="sg-link sg-link--gray" style="color: black"> walters </span> </li> <span class="sg-breadcrumb-list__element"> <span class="sg-link sg-link--disabled sg-link--small sg-link--gray"> <time data-date="Sun, 3 Feb 2013 6:29:35 GMT" class="last-updated to-fuzzy sg-link--time">5 years ago</span> </span> </span> </ul> </div> <div class="brn-answer__content sg-content-box__content"> <div class="sg-text questionBody body"></div> <div class="attachments"> <h5 class="number-attachments">1 Attachment</h5> <ul> <li class="attachment"> <a class="direct attachment" target="_blank" href="http://assets.openstudy.com/updates/attachments/510eac73e4b0d9aa3c47a317-walters-1359916175678-chelppls.txt"> <img src="http://assets.openstudy.com/document-icon.png" class="" alt="chelppls.txt"/> <span class="filename">chelppls.txt</span> </a> </li> </ul> </div> </div> </div> </div> </div> <div class="sg-horizontal-separator sg-hide-for-medium-up"> </div> <div class="sg-layout__box"> <div class="brn-answer reply" itemscope="" itemtype="http://schema.org/Answer" itemprop="suggestedAnswer"> <div class="sg-content-box sg-content-box--spaced"> <div class="brn-answer__header sg-content-box__header"> <div class="brn-answer__avatar-wrapper"> <div class="sg-avatar"> <img class="sg-avatar__image" src="http://assets.openstudy.com/users/default-avatar-large.png" alt="walters" title="walters"> </div> </div> <ul class="sg-breadcrumb-list"> <li class="sg-breadcrumb-list__element"> <span class="sg-link sg-link--gray" style="color: black"> walters </span> </li> <span class="sg-breadcrumb-list__element"> <span class="sg-link sg-link--disabled sg-link--small sg-link--gray"> <time data-date="Sun, 3 Feb 2013 6:35:15 GMT" class="last-updated to-fuzzy sg-link--time">5 years ago</span> </span> </span> </ul> </div> <div class="brn-answer__content sg-content-box__content"> <div class="sg-text questionBody body">actualy my problem is that getenv give me the warnings</div> </div> </div> </div> </div> <div class="sg-horizontal-separator sg-hide-for-medium-up"> </div> <div class="sg-layout__box"> <div class="brn-answer reply" itemscope="" itemtype="http://schema.org/Answer" itemprop="suggestedAnswer"> <div class="sg-content-box sg-content-box--spaced"> <div class="brn-answer__header sg-content-box__header"> <div class="brn-answer__avatar-wrapper"> <div class="sg-avatar"> <img class="sg-avatar__image" src="http://assets.openstudy.com/users/konradzuse/avatar/large?1353790136252" alt="KonradZuse" title="KonradZuse"> </div> </div> <ul class="sg-breadcrumb-list"> <li class="sg-breadcrumb-list__element"> <span class="sg-link sg-link--gray" style="color: black"> KonradZuse </span> </li> <span class="sg-breadcrumb-list__element"> <span class="sg-link sg-link--disabled sg-link--small sg-link--gray"> <time data-date="Sun, 3 Feb 2013 6:42:54 GMT" class="last-updated to-fuzzy sg-link--time">5 years ago</span> </span> </span> </ul> </div> <div class="brn-answer__content sg-content-box__content"> <div class="sg-text questionBody body">you should really do what someone asks you to when they are helping you.</div> </div> </div> </div> </div> </div> <div class="sg-layout__box sg-content-box__content--with-centered-text os-blue show-full-answer--row"> <a class="show-full-answer--a sg-button-primary sg-button-primary--alt-inverse" entry="8001" > <div class="sg-button-primary__hole">show full answer</div> </a> </div> <div id="looking-for-smth-else" class="sg-layout__box"> <div class="sg-content-box sg-content-box__content--with-centered-text"> <div class="sg-content-box__content sg-content-box__content--spaced-bottom-large"> <p class="sg-header-primary sg-header-primary--small">Looking for something else?</p> </div> <div class="sg-content-box__content sg-content-box__content--spaced-bottom-large"> <p>Not the answer you are looking for? Search for more explanations.</p> </div> <div class="sg-content-box__actions"> <form id="searchOnBrainlyForm" class="sg-search search-brainly-container" method="GET" action="https://brainly.com/app/ask" onsubmit="track" rel="nofollow"> <input type="hidden" name="entry" value="7151"> <input type="hidden" name="utm_medium" value="referral"> <input type="hidden" name="utm_source" value="openstudy.com"> <input type="hidden" name="utm_campaign" value="OS_7151_search_bottom"> <input type="hidden" name="utm_content" value="new_layout"> <input placeholder="Your question here..." type="search" class="js-top-search-input sg-input sg-input--transparent-border sg-input--short" name="q" required=""> <input type="submit" class="sg-button-primary sg-button-primary--alt" value="search brainly"> </form> <script> setupTrackingForm('searchOnBrainlyForm') </script> </div> </div> </div> <div class="sg-content-box sg-content-box--spaced-bottom"> <h2 class="sg-header-primary sg-header-primary--small"> More answers </h2> </div> <div class="brn-answers js-floating-button-container replies"> <div class="sg-horizontal-separator sg-hide-for-medium-up"> </div> <div class="sg-layout__box"> <div class="brn-answer reply" itemscope="" itemtype="http://schema.org/Answer" itemprop="suggestedAnswer"> <div class="sg-content-box sg-content-box--spaced"> <div class="brn-answer__header sg-content-box__header"> <div class="brn-answer__avatar-wrapper"> <div class="sg-avatar"> <img class="sg-avatar__image" src="http://assets.openstudy.com/users/konradzuse/avatar/large?1353790136252" alt="KonradZuse" title="KonradZuse"> </div> </div> <ul class="sg-breadcrumb-list"> <li class="sg-breadcrumb-list__element"> <span class="sg-link sg-link--gray" style="color: black"> KonradZuse </span> </li> <span class="sg-breadcrumb-list__element"> <span class="sg-link sg-link--disabled sg-link--small sg-link--gray"> <time data-date="Sun, 3 Feb 2013 6:44:34 GMT" class="last-updated to-fuzzy sg-link--time">5 years ago</span> </span> </span> </ul> </div> <div class="brn-answer__content sg-content-box__content"> <div class="sg-text questionBody body">if( getenv("CONTENT_LENGTH") ) contentLength= atoi(getenv("CONTENT_LENGTH")); what is "CONTENT_LENGTH" "getenv" and atoi?</div> </div> </div> </div> </div> <div class="sg-horizontal-separator sg-hide-for-medium-up"> </div> <div class="sg-layout__box"> <div class="brn-answer reply" itemscope="" itemtype="http://schema.org/Answer" itemprop="suggestedAnswer"> <div class="sg-content-box sg-content-box--spaced"> <div class="brn-answer__header sg-content-box__header"> <div class="brn-answer__avatar-wrapper"> <div class="sg-avatar"> <img class="sg-avatar__image" src="http://assets.openstudy.com/users/default-avatar-large.png" alt="walters" title="walters"> </div> </div> <ul class="sg-breadcrumb-list"> <li class="sg-breadcrumb-list__element"> <span class="sg-link sg-link--gray" style="color: black"> walters </span> </li> <span class="sg-breadcrumb-list__element"> <span class="sg-link sg-link--disabled sg-link--small sg-link--gray"> <time data-date="Sun, 3 Feb 2013 6:46:47 GMT" class="last-updated to-fuzzy sg-link--time">5 years ago</span> </span> </span> </ul> </div> <div class="brn-answer__content sg-content-box__content"> <div class="sg-text questionBody body">atoi it convert string to integer</div> </div> </div> </div> </div> <div class="sg-horizontal-separator sg-hide-for-medium-up"> </div> <div class="sg-layout__box"> <div class="brn-answer reply" itemscope="" itemtype="http://schema.org/Answer" itemprop="suggestedAnswer"> <div class="sg-content-box sg-content-box--spaced"> <div class="brn-answer__header sg-content-box__header"> <div class="brn-answer__avatar-wrapper"> <div class="sg-avatar"> <img class="sg-avatar__image" src="http://assets.openstudy.com/users/default-avatar-large.png" alt="anonymous" title="anonymous"> </div> </div> <ul class="sg-breadcrumb-list"> <li class="sg-breadcrumb-list__element"> <span class="sg-link sg-link--gray" style="color: black"> anonymous </span> </li> <span class="sg-breadcrumb-list__element"> <span class="sg-link sg-link--disabled sg-link--small sg-link--gray"> <time data-date="Sun, 3 Feb 2013 7:21:41 GMT" class="last-updated to-fuzzy sg-link--time">5 years ago</span> </span> </span> </ul> </div> <div class="brn-answer__content sg-content-box__content"> <div class="sg-text questionBody body">I just compiled your program with g++, but I got no warnings. Could you post the ones that you get?</div> </div> </div> </div> </div> </div> <div class="sg-layout__box sg-content-box__content--with-centered-text os-blue show-full-answer--row"> <a class="show-full-answer--a sg-button-primary sg-button-primary--alt-inverse" entry="8001" > <div class="sg-button-primary__hole">show full answer</div> </a> </div> <div id="looking-for-smth-else" class="sg-layout__box"> <div class="sg-content-box sg-content-box__content--with-centered-text"> <div class="sg-content-box__content sg-content-box__content--spaced-bottom-large"> <p class="sg-header-primary sg-header-primary--small">Looking for something else?</p> </div> <div class="sg-content-box__content sg-content-box__content--spaced-bottom-large"> <p>Not the answer you are looking for? Search for more explanations.</p> </div> <div class="sg-content-box__actions"> <form id="searchOnBrainlyForm" class="sg-search search-brainly-container" method="GET" action="https://brainly.com/app/ask" onsubmit="track" rel="nofollow"> <input type="hidden" name="entry" value="7151"> <input type="hidden" name="utm_medium" value="referral"> <input type="hidden" name="utm_source" value="openstudy.com"> <input type="hidden" name="utm_campaign" value="OS_7151_search_bottom"> <input type="hidden" name="utm_content" value="new_layout"> <input placeholder="Your question here..." type="search" class="js-top-search-input sg-input sg-input--transparent-border sg-input--short" name="q" required=""> <input type="submit" class="sg-button-primary sg-button-primary--alt" value="search brainly"> </form> <script> setupTrackingForm('searchOnBrainlyForm') </script> </div> </div> </div> <div class="mid-ads"> <!-- /28653467/openstudy.com_subpage_mid_bottom --> <div id='openstudy.com_subpage_mid_bottom' class="ad-mid-left"> <script> googletag.cmd.push(function() { googletag.display('openstudy.com_subpage_mid_bottom'); }); </script> </div> </div> </div> <script> os.nextTick(function() { eq.includeMathJax() eq.whenMathJaxLoaded(function() { $('.questionBody').each(function() { var content = $(this).text() if (MathJax && content.match(hasEquationRegex)) MathJax.Hub.Queue(["Typeset", MathJax.Hub, body]) }) }) }) os.nextTick(function() { $('.update-body p.body, .brn-answer .questionBody').each(function() { var content = $(this).html() $(this).html(os.withParsedCodeBlocks(content)) }) }) os.nextTick(os.renderDrawings) </script> </div> </div> <!-- RIGHT SIDE ASK BUTTON --> <aside class="sg-layout__aside-content js-aside-content sg-hide-for-medium-down" role="complementary"> <div class="sg-layout__box"> <div class="sg-content-box"> <div class="sg-content-box__content"> <div class="sg-content-box__header sg-content-box__header--spaced-bottom"> <div class="sg-header-primary sg-header-primary--xsmall"> What do you need to know? </div> </div> <form id="ask-your-question-form" action="https://brainly.com/question/add" method="get"> <div class="sg-content-box__content sg-content-box__content--spaced-bottom"> <input type="hidden" name="entry" value="7161"> <input type="hidden" name="utm_medium" value="referral"> <input type="hidden" name="utm_source" value="openstudy.com"> <input type="hidden" name="utm_campaign" value="OS_7161_askquestion_right"> <input type="hidden" name="utm_content" value="new_layout"> <textarea name="task_content" class="sg-textarea sg-textarea--xtall sg-textarea--full-width" placeholder="Your question here ..."></textarea> </div> <div class="sg-content-box__actions sg-content-box__actions--spaced-bottom"> <div class="sg-content-box__actions sg-content-box__actions--with-centered-elements"> <button type="submit" class="sg-button-primary sg-button-primary--alt" href="#"> Ask your Question </button> <script> setupTrackingForm('ask-your-question-form') </script> </div> </div> </form> </div> </div> </div> <!-- /28653467/openstudy.com_subpage_half_right --> <div id="openstudy.com_subpage_half_right" class="ad-half-right"> <script> googletag.cmd.push(function() { googletag.display('openstudy.com_subpage_half_right'); }); </script> </div> </aside> </div> </div> </div> </section> </div> <footer role="contentinfo" class="sg-layout__footer js-page-footer"> <div class="sg-footer__container"> <div class="sg-hide-for-large-only sg-hide-for-medium-only"> <div class="mobile-store js-mobile-store js-hidden"> <div class="sg-content-box"> <div class="sg-content-box__header"> <div class="mobile-store__title"> <p class="sg-text sg-text--emphasised sg-text--light"> Get the Brainly App: </p> </div> </div> <div class="sg-content-box__actions sg-content-box__actions--spaced-bottom-xlarge"> <a class="sg-button-primary sg-button-primary--dark js-mobile-store-button-ios js-hidden" href="https://bnc.lt/a/key_live_aieQuVpL7UJKTxoGT7baLblpBBbKyhSO?channel=our_website_rwd&campaign=us_app_button_in_footer&branchsource=our_website&questionId=544736&brainlyUri=brainly://us/questions/544736&$android_url=market://details?id=co.brainly%26referrer%3Dutm_source%253Dour_website_rwd%2526utm_medium%253D_app_button_in_footer%2526utm_campaign%253Dbrainly_us_app_button_in_footer%2526market%253Dus"> Download iOS App </a> <a class="sg-button-primary sg-button-primary--dark js-mobile-store-button-android js-hidden" href="https://bnc.lt/a/key_live_aieQuVpL7UJKTxoGT7baLblpBBbKyhSO?channel=our_website_rwd&campaign=us_app_button_in_footer&branchsource=our_website&questionId=544736&brainlyUri=brainly://us/questions/544736&$android_url=market://details?id=co.brainly%26referrer%3Dutm_source%253Dour_website_rwd%2526utm_medium%253D_app_button_in_footer%2526utm_campaign%253Dbrainly_us_app_button_in_footer%2526market%253Dus"> Download Android App </a> </div> </div> </div> </div> <div class="sg-footer__line sg-content-box__content--with-centered-text"> <ul class="sg-breadcrumb-list sg-breadcrumb-list--for-fine-print-light"> <li class="sg-breadcrumb-list__element"> <a class="sg-link sg-link--for-fine-print-light sg-link--emphasised" href="/terms-and-conditions" rel="nofollow"> Terms </a> </li> <li class="sg-breadcrumb-list__element"> <a class="sg-link sg-link--for-fine-print-light sg-link--emphasised" href="/privacy-policy" rel="nofollow"> Privacy Policy </a> </li> <li class="sg-breadcrumb-list__element"> <a class="sg-link sg-link--for-fine-print-light sg-link--emphasised" href="mailto:contact@brainly.com" rel="nofollow"> Contact </a> </li> </ul> </div> <div class="sg-hide-for-small-only"> <div class="mobile-store"> <div class="sg-content-box"> <div class="sg-content-box__actions sg-content-box__actions--spaced-bottom-large"> <div class="mobile-store__title"> <p class="sg-text sg-text--emphasised sg-text--light"> Get the Brainly App </p> </div> <div class="store-badges"> <a href="https://bnc.lt/m/NHJ6ija4Gq" class="mobile-store__button mobile-store__button--ios mobile-store__button--ios-us"> App Store </a> <a href="https://bnc.lt/m/OltVtad4Gq" class="mobile-store__button mobile-store__button--android mobile-store__button--android-us"> Google Play </a> </div> </div> </div> </div> </div> </div> </footer> </body> </html>