Borderou de evaluare (job #2005803)

Utilizator RaduhhRadu Flocea Raduhh Data 28 iulie 2017 11:39:55
Problema Zimeria Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 40

Raport evaluator

Compilare: user.cpp: In function ‘bool cmp(std::string, std::string)’: user.cpp:10:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i=a.length(); i<b.length(); i++) ^ user.cpp:12:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i=b.length(); i<a.length(); i++) ^ user.cpp:14:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i=0; i<a.length(); i++) ^ user.cpp:15:20: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (fq[a[i]]<fq[b[i]]) return 1; else if (fq[a[i]]>fq[b[i]]) return 0; ^ user.cpp:15:29: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (fq[a[i]]<fq[b[i]]) return 1; else if (fq[a[i]]>fq[b[i]]) return 0; ^ user.cpp:15:58: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (fq[a[i]]<fq[b[i]]) return 1; else if (fq[a[i]]>fq[b[i]]) return 0; ^ user.cpp:15:67: warning: array subscript has type ‘char’ [-Wchar-subscripts] if (fq[a[i]]<fq[b[i]]) return 1; else if (fq[a[i]]>fq[b[i]]) return 0; ^ user.cpp: In function ‘int main()’: user.cpp:25:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i=0; i<s.length(); i++) fq[s[i]]=i+1; ^ user.cpp:25:41: warning: array subscript has type ‘char’ [-Wchar-subscripts] for (i=0; i<s.length(); i++) fq[s[i]]=i+1; ^ user.cpp: In function ‘bool cmp(std::string, std::string)’: user.cpp:16:1: warning: control reaches end of non-void function [-Wreturn-type] } ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms2000kbOK5
28ms2024kbOK5
3Depăşit3148kbTime limit exceeded.0
432msDepăşitMemory limit exceeded.0
532msDepăşitMemory limit exceeded.0
636msDepăşitMemory limit exceeded.0
74ms1988kbOK5
88ms2020kbOK5
916ms2040kbOK5
1036ms2112kbOK5
1176ms2236kbOK5
12156ms2464kbOK5
13Depăşit2928kbTime limit exceeded.0
14Depăşit3848kbTime limit exceeded.0
1532msDepăşitMemory limit exceeded.0
1632msDepăşitMemory limit exceeded.0
1736msDepăşitMemory limit exceeded.0
1832msDepăşitMemory limit exceeded.0
1936msDepăşitMemory limit exceeded.0
2032msDepăşitMemory limit exceeded.0
Punctaj total40

Ceva nu functioneaza?