Borderou de evaluare (job #1828318)
Utilizator | Data | 13 decembrie 2016 08:26:01 | |
---|---|---|---|
Problema | Palindrom | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘bool palindrom(std::string)’:
user.cpp:13:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<s.size()/2;i++)
^
user.cpp:17:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(n==s.size()/2){return true;}
^
user.cpp: At global scope:
user.cpp:20:6: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
main()
^
user.cpp: In function ‘int main()’:
user.cpp:26:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<s.size();i++)
^
user.cpp:32:41: error: ‘cout’ was not declared in this scope
if(palindrom(s2)==true){cout<<s2;break;}else{s2="";}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !