Borderou de evaluare (job #2572690)
Utilizator | Ciocoiu Vlad vlad082002 | Data | 5 martie 2020 13:50:41 |
---|---|---|---|
Problema | Triopalindrom | Status | done |
Runda | Arhiva Monthly | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:12:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; 3*i <= s.length(); i++) {
~~~~^~~~~~~~~~~~~
main.cpp:14:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0; j *2*i < s.size(); j++)
~~~~~~~^~~~~~~~~~
main.cpp:15:51: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(s[j] == s[j+i] & &s[j+i] == s[j+2*i]) {
^
main.cpp:15:21: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
if(s[j] == s[j+i] & &s[j+i] == s[j+2*i]) {
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !