Borderou de evaluare (job #2882343)

Utilizator pctirziuTirziu Petre pctirziu Data 31 martie 2022 12:44:30
Problema Showroom Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 55

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:74:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 74 | for(j = 0; j < s.size(); j++){ | ~~^~~~~~~~~~ main.cpp:76:37: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare] 76 | while(s[j] != ' ' and j < s.size()) | ~~^~~~~~~~~~ main.cpp: In function 'void fact()': main.cpp:59:22: warning: iteration 50004 invokes undefined behavior [-Waggressive-loop-optimizations] 59 | factorial[i] = (factorial[i - 1] * i ) % mod; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:58:22: note: within this loop 58 | for(int i = 1; i <= NMAX; i++) | ~~^~~~~~~ main.cpp: In function 'int main()': main.cpp:67:18: warning: iteration 50004 invokes undefined behavior [-Waggressive-loop-optimizations] 67 | sizes[i] = 1, parent[i] = i; | ~~~~~~~~~^~~ main.cpp:66:18: note: within this loop 66 | for(i = 1; i <= NMAX; i++) | ~~^~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
11ms184kbPartial incorect5
21ms184kbPartial incorect5
31ms184kbPartial incorect5
46ms913kbPartial incorect5
513ms1486kbPartial incorect5
625ms1929kbPartial incorect5
743ms3031kbPartial incorect5
8120ms7032kbPartial incorect5
941ms909kbOK10
10201ms7081kbPartial incorect5
Punctaj total55

Ceva nu functioneaza?