ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Common Board

Compilation error
Posted by MrCIM 9 Jun 2010 18:55
16de34c9-edb2-4549-b598-8418b95e578d
16de34c9-edb2-4549-b598-8418b95e578d(47): error: no operator ">>" matches these operands
            operand types are: std::istream >> std::string
          cin>>tmp;
             ^

16de34c9-edb2-4549-b598-8418b95e578d(48): error: no operator "==" matches these operands
            operand types are: std::string == char [3]
          if (tmp=="-1")
                 ^

16de34c9-edb2-4549-b598-8418b95e578d(57): error: no operator ">>" matches these operands
            operand types are: std::istream >> std::string
              cin>>temp_word;
                 ^

16de34c9-edb2-4549-b598-8418b95e578d(74): error: no operator "==" matches these operands
            operand types are: std::string == char [1]
          if (books[i].otvet=="")
                            ^

16de34c9-edb2-4549-b598-8418b95e578d(77): error: no operator "<<" matches these operands
            operand types are: std::ostream << std::string
              cout<<books[i].otvet<<endl;
                  ^

compilation aborted for 16de34c9-edb2-4549-b598-8418b95e578d (code 2)
______________________________________________________
But on my Unix system (g++) there are no errors.
I don't know what does it mean(