Borderou de evaluare (job #1442588)
Utilizator | Data | 25 mai 2015 21:01:00 | |
---|---|---|---|
Problema | Play With Strings | Status | done |
Runda | test_77 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘bool isIsomorphic(const char*, const char*)’:
user.cpp:71:22: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if((hash[s[i]]!=-1&&hash[s[i]]!=t[i])||(hash1[t[i]]>0)&&hash[s[i]]<0)
^
user.cpp:71:38: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if((hash[s[i]]!=-1&&hash[s[i]]!=t[i])||(hash1[t[i]]>0)&&hash[s[i]]<0)
^
user.cpp:71:59: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if((hash[s[i]]!=-1&&hash[s[i]]!=t[i])||(hash1[t[i]]>0)&&hash[s[i]]<0)
^
user.cpp:71:74: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if((hash[s[i]]!=-1&&hash[s[i]]!=t[i])||(hash1[t[i]]>0)&&hash[s[i]]<0)
^
user.cpp:71:63: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if((hash[s[i]]!=-1&&hash[s[i]]!=t[i])||(hash1[t[i]]>0)&&hash[s[i]]<0)
^
user.cpp:76:18: warning: array subscript has type ‘char’ [-Wchar-subscripts]
hash[s[i]] = t[i];
^
user.cpp:77:19: warning: array subscript has type ‘char’ [-Wchar-subscripts]
hash1[t[i]]++;
^
user.cpp: In function ‘int main()’:
user.cpp:93:44: error: ‘canFormPalindrome’ was not declared in this scope
if (canFormPalindrome(s.c_str()))
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !