Borderou de evaluare (job #1638351)
Utilizator | Data | 7 martie 2016 22:38:36 | |
---|---|---|---|
Problema | Reteta2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int stoi(std::string)’:
user.cpp:10:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i <= x.size() - 1; ++i)
^
user.cpp: In function ‘int main()’:
user.cpp:26:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i <= recipe.size() - 1; ++i) {
^
user.cpp:34:99: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (recipe[x] != ' ' and recipe[x] != '(' and recipe[x] != ')' and x < recipe.size()) {
^
user.cpp:40:35: error: call of overloaded ‘stoi(std::string&)’ is ambiguous
result += stoi(now);
^
user.cpp:40:35: note: candidates are:
user.cpp:8:5: note: int stoi(std::string)
int stoi(string 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/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:1:
/usr/include/c++/4.8/bits/basic_string.h:2823:3: note: int std::stoi(const string&, std::size_t*, int)
stoi(const string& __str, size_t* __idx = 0, int __base = 10)
^
user.cpp:46:47: error: call of overloaded ‘stoi(std::string&)’ is ambiguous
v[j].value += stoi(now);
^
user.cpp:46:47: note: candidates are:
user.cpp:8:5: note: int stoi(std::string)
int stoi(string 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/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:1:
/usr/include/c++/4.8/bits/basic_string.h:2823:3: note: int std::stoi(const string&, std::size_t*, int)
stoi(const string& __str, size_t* __idx = 0, int __base = 10)
^
user.cpp:51:50: error: call of overloaded ‘stoi(std::string&)’ is ambiguous
v[numbering].value = stoi(now);
^
user.cpp:51:50: note: candidates are:
user.cpp:8:5: note: int stoi(std::string)
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !