Borderou de evaluare (job #3230190)

Utilizator vladvoicux64Voicu Ioan Vladut vladvoicux64 Data 19 mai 2024 20:56:10
Problema Euclid Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:11:23: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 11 | for (int c = 0; c < case_count; ++c) | ~~^~~~~~~~~~~~ main.cpp:16:27: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 16 | for (int i = 0; i < N; ++i) { | ~~^~~ main.cpp:17:31: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 17 | for (int j = 0; j < M; ++j) { | ~~^~~ main.cpp:22:45: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 22 | for (int top_left_x = 0; top_left_x < N - h + 1; ++top_left_x) | ~~~~~~~~~~~^~~~~~~~~~~ main.cpp:24:49: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 24 | for (int top_left_y = 0; top_left_y < M - w + 1; ++top_left_y) | ~~~~~~~~~~~^~~~~~~~~~~ main.cpp:27:97: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 27 | for (int bottom_right_x = top_left_y; potential_max > max_gcd && bottom_right_x < M; ++bottom_right_x) { | ~~~~~~~~~~~~~~~^~~ main.cpp:28:92: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare] 28 | for (int bottom_right_y = 0; potential_max > max_gcd && bottom_right_y < N; ++bottom_right_y) { | ~~~~~~~~~~~~~~~^~~ main.cpp:29:39: warning: value computed is not used [-Wunused-value] 29 | potential_max - std::gcd(potential_max, matrix[bottom_right_x][bottom_right_y]); | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/c++/12.2.1/istream:39, from /usr/include/c++/12.2.1/fstream:38, from main.cpp:1: In member function 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(unsigned int) [with _CharT = char; _Traits = std::char_traits<char>]', inlined from 'int main()' at main.cpp:35:48: /usr/include/c++/12.2.1/ostream:196:25: warning: 'max_gcd' may be used uninitialized [-Wmaybe-uninitialized] 196 | return _M_insert(static_cast<unsigned long>(__n)); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:21:33: note: 'max_gcd' was declared here 21 | unsigned potential_max, max_gcd; | ^~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms303kbIncorect0
20ms303kbIncorect0
30ms303kbIncorect0
414ms921kbIncorect0
514ms929kbIncorect0
614ms937kbIncorect0
7114ms819kbIncorect0
8114ms819kbIncorect0
9113ms847kbIncorect0
10114ms823kbIncorect0
Punctaj total0

Ceva nu functioneaza?