Title: Getting this error in C++, "no match for 'operator>>' in 'std:cin.std
Tags: c++
Question: #include <iostream&gt;
int main()
using st75b5:f2c1:f5d7:b954:8dc3:cee9:baf:a8c0cout;
using st75b5:f2c1:f5d7:b954:8dc3:cee9:baf:a8c0endl;
using st75b5:f2c1:f5d7:b954:8dc3:cee9:baf:a8c0cin;
short width;
short legnth;
short height;
short volume;
volume = (legnth * width * height);
cout << "This program will determine the volume of a cube" << endl;
cout << "Enter the legnth of the cube: ";
cin &gt;&gt; legnth &gt;&gt; endl;
cout << "Enter the width of the cube: ";
cin &gt;&gt; width &gt;&gt; endl;
cout << "Enter the height of the cube: ";
cout << "Your volume is: " << volume;
cout << "Press any key to exit :)";
cin.get();
return 0;
I am new to C++ and in my basic computer programming class we had to make something that can calculate volume, can someone please help me in fixing this error?

Here is the accepted answer: st75b5:f2c1:f5d7:b954:8dc3:cee9:baf:a8c0endl is used for output stream not for input stream. I'd argue with that if it makes sense to a beginner, because you can put newline (and most of the time have to if you want to grab input from the user) into the input stream, but st75b5:f2c1:f5d7:b954:8dc3:cee9:baf:a8c0endl simply doesn't work with st75b5:f2c1:f5d7:b954:8dc3:cee9:baf:a8c0cin.
Besides I believe you don't really need to do it, because when you press "Enter" key to confirm your input newline character is also being printed to output stream.
Comment for this answer: THANKYOU!! My professor is moving WAY too fast for me! After 2 hours of just messing around with all the excersizes he told us to do, I finally got a jist of all the material he covered, but I was just stumped on that one error! I am sure if the professor actually taught efficiently and in chronological order, I would know how st75b5:f2c1:f5d7:b954:8dc3:cee9:baf:a8c0cin works, but unfortunately life doesnt always go the way you want it to, haha.

Here is another answer: You can't extract from cin to endl - that doesn't make any sense. You use endl with output streams to insert a newline and flush the stream. Just remove the &gt;&gt; endls.
Also, you've spelled length incorrectly.

{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 2, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 3.0', 'CreationDate': '2014:00:02/27/14', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<c++>', 'Title': 'Getting this error in C++, "no match for \'operator>>\' in \'std:cin.std', 'ViewCount': 28375, 'id': 22081563, 'user_AboutMe': None, 'user_AccountId': 4095685.0, 'user_DisplayName': 'user3362546', 'user_Reputation': 65.0, 'user_Views': 32.0, 'user_id': 3362546.0}}