Pagini recente » Borderou de evaluare (job #2238578) | Borderou de evaluare (job #1834017) | Borderou de evaluare (job #1324460) | Borderou de evaluare (job #741949) | Borderou de evaluare (job #1274705)
Borderou de evaluare (job #1274705)
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 |
1 | 0ms | 280kb | OK | 10 |
2 | 0ms | 280kb | OK | 10 |
3 | 0ms | 280kb | OK | 10 |
4 | 0ms | 280kb | OK | 10 |
5 | 0ms | 284kb | OK | 10 |
6 | 0ms | 292kb | OK | 10 |
7 | 4ms | 300kb | OK | 10 |
8 | 4ms | 300kb | OK | 10 |
9 | 4ms | 312kb | OK | 10 |
10 | 8ms | 324kb | OK | 10 |
Punctaj total | 100 |