Borderou de evaluare (job #2457410)

Utilizator mihai50000Mihai-Cristian Popescu mihai50000 Data 17 septembrie 2019 17:48:18
Problema SETI Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 40

Raport evaluator

Compilare: main.cpp: In function 'std::pair<int, int> get(std::__cxx11::string)': main.cpp:25:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j = 0; j < s.size(); j++) ~~^~~~~~~~~~ main.cpp:27:33: warning: array subscript has type 'char' [-Wchar-subscripts] cod1 = (cod1 * alpha + id[s[j]]) % mod1; ^ main.cpp:28:33: warning: array subscript has type 'char' [-Wchar-subscripts] cod2 = (cod2 * alpha + id[s[j]]) % mod2; ^ main.cpp: At global scope: main.cpp:95:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type] main() ^ main.cpp: In function 'int main()': main.cpp:136:34: warning: array subscript has type 'char' [-Wchar-subscripts] cod1 = (cod1 * alpha + id[s[j]]) % mod1; ^ main.cpp:137:34: warning: array subscript has type 'char' [-Wchar-subscripts] cod2 = (cod2 * alpha + id[s[j]]) % mod2; ^ main.cpp:144:34: warning: array subscript has type 'char' [-Wchar-subscripts] cod1 = (cod1 - ((id[s[j - len]]) * power1[len]) % mod1 + mod1) % mod1; ^ main.cpp:145:34: warning: array subscript has type 'char' [-Wchar-subscripts] cod2 = (cod2 - ((id[s[j - len]]) * power2[len]) % mod2 + mod2) % mod2; ^ main.cpp:147:34: warning: array subscript has type 'char' [-Wchar-subscripts] cod1 = (cod1 * alpha + id[s[j]]) % mod1; ^ main.cpp:148:34: warning: array subscript has type 'char' [-Wchar-subscripts] cod2 = (cod2 * alpha + id[s[j]]) % mod2; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
1168ms11952kbOK10
253ms7077kbOK10
3205ms11927kbOK10
4215ms12058kbOK10
5339ms15896kbIncorect0
6401ms19881kbTime limit exceeded0
7403ms17793kbTime limit exceeded0
8404ms20283kbTime limit exceeded0
9403ms19496kbTime limit exceeded0
10400ms21049kbTime limit exceeded0
Punctaj total40

Ceva nu functioneaza?