Borderou de evaluare (job #285990)

Utilizator avatar Alexandru_Galoiu Alexandru Galoiu Alexandru_Galoiu IP ascuns
Problemă Semipalindrom Compilator cpp
Rundă Arhiva de probleme Status evaluat
Dată 27 feb. 2017 20:36:29 Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function 'int main()': user.cpp:11:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] user.cpp:19:16: warning: suggest parentheses around assignment used as truth value [-Wparentheses] user.cpp:20:25: error: no match for 'operator^' in 'std::cout.std::basic_ostream<_CharT, _Traits>::operator<< [with _CharT = char, _Traits = std::char_traits<char>]((n / 10)) ^ (sc + -0x00000000000000001)' user.cpp:20:25: note: candidates are: /usr/include/c++/4.6/bits/ios_base.h:85:3: note: constexpr std::_Ios_Fmtflags std::operator^(std::_Ios_Fmtflags, std::_Ios_Fmtflags) /usr/include/c++/4.6/bits/ios_base.h:85:3: note: no known conversion for argument 1 from 'std::basic_ostream<char>' to 'std::_Ios_Fmtflags' /usr/include/c++/4.6/bits/ios_base.h:125:3: note: constexpr std::_Ios_Openmode std::operator^(std::_Ios_Openmode, std::_Ios_Openmode) /usr/include/c++/4.6/bits/ios_base.h:125:3: note: no known conversion for argument 1 from 'std::basic_ostream<char>' to 'std::_Ios_Openmode' /usr/include/c++/4.6/bits/ios_base.h:163:3: note: constexpr std::_Ios_Iostate std::operator^(std::_Ios_Iostate, std::_Ios_Iostate) /usr/include/c++/4.6/bits/ios_base.h:163:3: note: no known conversion for argument 1 from 'std::basic_ostream<char>' to 'std::_Ios_Iostate'