Borderou de evaluare (job #49519)

Utilizator avatar popescu.octavian Popescu Octavian popescu.octavian IP ascuns
Problemă Cifra Compilator cpp
Rundă Arhiva de probleme Status evaluat
Dată 31 ian. 2014 14:46:42 Scor 0

Raport evaluator

Eroare de compilare: user.cpp:6:34: error: conflicting declaration ‘int g’ user.cpp:5:10: error: ‘g’ has a previous declaration as ‘std::ofstream g’ user.cpp:6:44: error: conflicting declaration ‘int f’ user.cpp:4:10: error: ‘f’ has a previous declaration as ‘std::ifstream f’ user.cpp: In function ‘int main()’: user.cpp:17:11: error: no match for ‘operator+’ in ‘v + g’ user.cpp:17:11: note: candidates are: /usr/include/c++/4.6/bits/stl_iterator.h:327:5: note: template<class _Iterator> std::reverse_iterator<_Iterator> std::operator+(typename std::reverse_iterator<_Iterator>::difference_type, const std::reverse_iterator<_Iterator>&) /usr/include/c++/4.6/bits/basic_string.h:2306:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_string<_CharT, _Traits, _Alloc> std::operator+(const std::basic_string<_CharT, _Traits, _Alloc>&, const std::basic_string<_CharT, _Traits, _Alloc>&) /usr/include/c++/4.6/bits/basic_string.tcc:694:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_string<_CharT, _Traits, _Alloc> std::operator+(const _CharT*, const std::basic_string<_CharT, _Traits, _Alloc>&) /usr/include/c++/4.6/bits/basic_string.tcc:710:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_string<_CharT, _Traits, _Alloc> std::operator+(_CharT, const std::basic_string<_CharT, _Traits, _Alloc>&) /usr/include/c++/4.6/bits/basic_string.h:2343:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_string<_CharT, _Traits, _Alloc> std::operator+(const std::basic_string<_CharT, _Traits, _Alloc>&, const _CharT*) /usr/include/c++/4.6/bits/basic_string.h:2359:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_string<_CharT, _Traits, _Alloc> std::operator+(const std::basic_string<_CharT, _Traits, _Alloc>&, _CharT) user.cpp:24:1: error: ‘j’ was not declared in this scope user.cpp:26:8: warning: suggest parentheses around assignment used as truth value [-Wparentheses]