Borderou de evaluare (job #1274705)

Utilizator HotSteelBeteag Ion Andrei HotSteel Data 24 noiembrie 2014 10:12:14
Problema Floyd-Warshall/Roy-Floyd Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp:9:0: warning: "INFINITY" redefined [enabled by default] #define INFINITY ((1 << 31) - 1) ^ In file included from /usr/include/math.h:40:0, from /usr/include/c++/4.8/cmath:44, from /usr/include/c++/4.8/random:38, from /usr/include/c++/4.8/bits/stl_algo.h:65, from /usr/include/c++/4.8/algorithm:62, from user.cpp:3: /usr/include/i386-linux-gnu/bits/inf.h:27:0: note: this is the location of the previous definition # define INFINITY (__builtin_inff()) ^ user.cpp: In function ‘int main()’: user.cpp:9:31: warning: integer overflow in expression [-Woverflow] #define INFINITY ((1 << 31) - 1) ^ user.cpp:31:27: note: in expansion of macro ‘INFINITY’ M[i][j] = INFINITY; ^ user.cpp:9:31: warning: integer overflow in expression [-Woverflow] #define INFINITY ((1 << 31) - 1) ^ user.cpp:38:31: note: in expansion of macro ‘INFINITY’ if(M[i][k] == INFINITY || M[k][j] == INFINITY) ^ user.cpp:9:31: warning: integer overflow in expression [-Woverflow] #define INFINITY ((1 << 31) - 1) ^ user.cpp:38:54: note: in expansion of macro ‘INFINITY’ if(M[i][k] == INFINITY || M[k][j] == INFINITY) ^ user.cpp:9:31: warning: integer overflow in expression [-Woverflow] #define INFINITY ((1 << 31) - 1) ^ user.cpp:48:38: note: in expansion of macro ‘INFINITY’ printf("%d ", M[i][j] == INFINITY ? 0 : M[i][j]); ^ user.cpp:13:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("royfloyd.in", "r", stdin); ^ user.cpp:14:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("royfloyd.out", "w", stdout); ^ user.cpp:19:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &V); ^ user.cpp:29:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &M[i][j]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms280kbOK10
20ms280kbOK10
30ms280kbOK10
40ms280kbOK10
50ms284kbOK10
60ms292kbOK10
74ms300kbOK10
84ms300kbOK10
94ms312kbOK10
108ms324kbOK10
Punctaj total100

Ceva nu functioneaza?