Borderou de evaluare (job #1487920)
Utilizator | Data | 17 septembrie 2015 17:10:01 | |
---|---|---|---|
Problema | Ecuatii 2 | 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:25:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=0; j<ecuation.size(); ++j){
^
user.cpp:27:24: error: call of overloaded ‘stoi(std::string&)’ is ambiguous
coefN+= stoi(buffer)*sign*pastEqual;
^
user.cpp:27:24: note: candidates are:
user.cpp:13:5: note: int stoi(std::string)
int stoi(string s){
^
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/sstream:38,
from /usr/include/c++/4.8/complex:45,
from /usr/include/c++/4.8/ccomplex:38,
from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:52,
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:33:24: error: call of overloaded ‘stoi(std::string&)’ is ambiguous
coefN+= stoi(buffer)*sign*pastEqual;
^
user.cpp:33:24: note: candidates are:
user.cpp:13:5: note: int stoi(std::string)
int stoi(string s){
^
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/sstream:38,
from /usr/include/c++/4.8/complex:45,
from /usr/include/c++/4.8/ccomplex:38,
from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:52,
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:39:24: error: call of overloaded ‘stoi(std::string&)’ is ambiguous
coefX+= stoi(buffer)*sign*pastEqual;
^
user.cpp:39:24: note: candidates are:
user.cpp:13:5: note: int stoi(std::string)
int stoi(string s){
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !