Borderou de evaluare (job #1830429)
Utilizator | Preda Mihai Dragos Mihai_Preda | Data | 16 decembrie 2016 18:33:04 |
---|---|---|---|
Problema | Sir4 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int Mod(std::string&, unsigned int)’:
user.cpp:24:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < x.size(); ++i)
^
user.cpp: In function ‘bool MaiMare(std::string&, std::string)’:
user.cpp:39:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(i == x.size())
^
user.cpp: In function ‘int query(std::string&)’:
user.cpp:80:36: error: call of overloaded ‘to_string(int&)’ is ambiguous
if(MaiMare(p, to_string(inainte)))
^
user.cpp:80:36: note: candidates are:
user.cpp:45:8: note: std::string to_string(int)
string to_string(int x)
^
In file included from /usr/include/c++/4.8/string:52: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.h:2916:3: note: std::string std::to_string(long double)
to_string(long double __val)
^
/usr/include/c++/4.8/bits/basic_string.h:2907:3: note: std::string std::to_string(double)
to_string(double __val)
^
/usr/include/c++/4.8/bits/basic_string.h:2898:3: note: std::string std::to_string(float)
to_string(float __val)
^
/usr/include/c++/4.8/bits/basic_string.h:2892:3: note: std::string std::to_string(long long unsigned int)
to_string(unsigned long long __val)
^
/usr/include/c++/4.8/bits/basic_string.h:2886:3: note: std::string std::to_string(long long int)
to_string(long long __val)
^
/usr/include/c++/4.8/bits/basic_string.h:2880:3: note: std::string std::to_string(long unsigned int)
to_string(unsigned long __val)
^
/usr/include/c++/4.8/bits/basic_string.h:2875:3: note: std::string std::to_string(long int)
to_string(long __val)
^
/usr/include/c++/4.8/bits/basic_string.h:2869:3: note: std::string std::to_string(unsigned int)
to_string(unsigned __val)
^
/usr/include/c++/4.8/bits/basic_string.h:2864:3: note: std::string std::to_string(int)
to_string(int __val)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !