Borderou de evaluare (job #2069033)
Utilizator | Data | 18 noiembrie 2017 11:48:11 | |
---|---|---|---|
Problema | Text | Status | done |
Runda | evaluare_cex_sv_cls_x | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void citire()’:
user.cpp:12:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0;i<=s.size();i++)
^
user.cpp: In function ‘int Numara()’:
user.cpp:17:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i=0; i<=s.size();i++)
^
user.cpp:20:23: error: no matching function for call to ‘isalpha(char&, int&)’
if(isalpha(x,i)==0)
^
user.cpp:20:23: note: candidates are:
In file included from /usr/include/c++/4.8/cctype:42:0,
from /usr/include/c++/4.8/bits/localefwd.h:42,
from /usr/include/c++/4.8/ios:41,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from user.cpp:1:
/usr/include/ctype.h:113:1: note: int isalpha(int)
__exctype (isalpha);
^
/usr/include/ctype.h:113:1: note: candidate expects 1 argument, 2 provided
In file included from /usr/include/c++/4.8/bits/basic_ios.h:37:0,
from /usr/include/c++/4.8/ios:44,
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/locale_facets.h:2560:5: note: template<class _CharT> bool std::isalpha(_CharT, const std::locale&)
isalpha(_CharT __c, const locale& __loc)
^
/usr/include/c++/4.8/bits/locale_facets.h:2560:5: note: template argument deduction/substitution failed:
user.cpp:20:23: note: cannot convert ‘i’ (type ‘int’) to type ‘const std::locale&’
if(isalpha(x,i)==0)
^
user.cpp:21:13: error: ‘nr’ was not declared in this scope
nr++;
^
user.cpp:23:12: error: ‘nr’ was not declared in this scope
return nr;
^
user.cpp:24:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !