Pagini recente » Borderou de evaluare (job #245557) | Borderou de evaluare (job #106208) | Borderou de evaluare (job #393027) | Borderou de evaluare (job #478467) | Borderou de evaluare (job #1896960)
Borderou de evaluare (job #1896960)
Raport evaluator
Compilare:
user.cpp: In function ‘bool get_val(std::string)’:
user.cpp:37:33: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(!semn)r=!val[s[i]];
^
user.cpp:38:28: warning: array subscript has type ‘char’ [-Wchar-subscripts]
else r=val[s[i]];
^
user.cpp: In function ‘bool get_and(std::string)’:
user.cpp:52:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(i<s.size() && s[i]=='&')
^
user.cpp: In function ‘bool get_xor(std::string)’:
user.cpp:62:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(i<s.size() && s[i]=='^')
^
user.cpp: In function ‘bool eval(std::string)’:
user.cpp:72:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(i<s.size() && s[i]=='|')
^
user.cpp: In function ‘int main()’:
user.cpp:88:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<s1.size();++i)
^
user.cpp:90:45: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(isalpha(s1[i]) && !fol1[s1[i]])
^
user.cpp:94:27: warning: array subscript has type ‘char’ [-Wchar-subscripts]
fol1[s1[i]]=1;
^
user.cpp:97:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0;i<s2.size();++i){
^
user.cpp:98:45: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(isalpha(s2[i]) && !fol2[s2[i]] && !fol1[s2[i]])
^
user.cpp:98:61: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(isalpha(s2[i]) && !fol2[s2[i]] && !fol1[s2[i]])
^
user.cpp:102:27: warning: array subscript has type ‘char’ [-Wchar-subscripts]
fol2[s2[i]]=1;
^
user.cpp:104:50: warning: array subscript has type ‘char’ [-Wchar-subscripts]
else if(isalpha(s2[i]) && !fol2[s2[i]])
^
user.cpp:105:31: warning: array subscript has type ‘char’ [-Wchar-subscripts]
{cnt2++;fol2[s2[i]]=1;}
^
user.cpp:112:60: warning: array subscript has type ‘char’ [-Wchar-subscripts]
for(int j=0;j<cnt;++j)if((1<<j) & per)val[mp[j]]=1;
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 440kb | OK | 10 |
2 | 4ms | 440kb | OK | 10 |
3 | 0ms | 436kb | OK | 10 |
4 | 4ms | 444kb | Incorect | 0 |
5 | 100ms | 444kb | OK | 10 |
6 | 24ms | 460kb | Incorect | 0 |
7 | 12ms | 448kb | OK | 10 |
8 | 0ms | 444kb | OK | 10 |
9 | 0ms | 448kb | OK | 10 |
10 | 28ms | 448kb | OK | 10 |
Punctaj total | 80 |