Borderou de evaluare (job #1358050)
Utilizator | Data | 24 februarie 2015 12:25:54 | |
---|---|---|---|
Problema | Scara 3 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:80:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < graf[a].size(); i++)
^
user.cpp:169:52: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int g = 0; g < graf[elozo[i]].size(); g++)
^
user.cpp:178:49: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int g = 0; g < energia.size(); g++)
^
user.cpp:188:8: error: no match for ‘operator>>’ (operand types are ‘std::ofstream {aka std::basic_ofstream<char>}’ and ‘int’)
ki >> ut[n-1]+1 << " " << ar;
^
user.cpp:188:8: note: candidates are:
In file included from /usr/include/c++/4.8/string:53:0,
from /usr/include/c++/4.8/bits/locale_classes.h:40,
from /usr/include/c++/4.8/bits/ios_base.h:41,
from /usr/include/c++/4.8/ios:42,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from user.cpp:1:
/usr/include/c++/4.8/bits/basic_string.tcc:996:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::basic_string<_CharT, _Traits, _Alloc>&)
operator>>(basic_istream<_CharT, _Traits>& __in,
^
/usr/include/c++/4.8/bits/basic_string.tcc:996:5: note: template argument deduction/substitution failed:
user.cpp:188:19: note: ‘std::ofstream {aka std::basic_ofstream<char>}’ is not derived from ‘std::basic_istream<_CharT, _Traits>’
ki >> ut[n-1]+1 << " " << ar;
^
In file included from /usr/include/c++/4.8/istream:879:0,
from /usr/include/c++/4.8/iostream:40,
from user.cpp:1:
/usr/include/c++/4.8/bits/istream.tcc:955:5: note: template<class _CharT2, class _Traits2> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT2*)
operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)
^
/usr/include/c++/4.8/bits/istream.tcc:955:5: note: template argument deduction/substitution failed:
user.cpp:188:19: note: ‘std::ofstream {aka std::basic_ofstream<char>}’ is not derived from ‘std::basic_istream<_CharT, _Traits>’
ki >> ut[n-1]+1 << " " << ar;
^
In file included from /usr/include/c++/4.8/istream:879:0,
from /usr/include/c++/4.8/iostream:40,
from user.cpp:1:
/usr/include/c++/4.8/bits/istream.tcc:923:5: note: template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT&)
operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c)
^
/usr/include/c++/4.8/bits/istream.tcc:923:5: note: template argument deduction/substitution failed:
user.cpp:188:19: note: ‘std::ofstream {aka std::basic_ofstream<char>}’ is not derived from ‘std::basic_istream<_CharT, _Traits>’
ki >> ut[n-1]+1 << " " << ar;
^
In file included from /usr/include/c++/4.8/iostream:40:0,
from user.cpp:1:
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !