Pagini recente » Borderou de evaluare (job #723645) | Borderou de evaluare (job #1783908) | Borderou de evaluare (job #1020177) | Cod sursa (job #765375) | Borderou de evaluare (job #2188588)
Borderou de evaluare (job #2188588)
Raport evaluator
Compilare:
user.cpp: In function ‘void read()’:
user.cpp:12:9: warning: unused variable ‘i’ [-Wunused-variable]
int i,j;
^
user.cpp:12:11: warning: unused variable ‘j’ [-Wunused-variable]
int i,j;
^
user.cpp: In function ‘void roy_floyd()’:
user.cpp:25:59: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if(i!=j && matrice[i][k] && matrice[k][j] && (matrice[i][j] > matrice[i][k]+matrice[k][j]) || !matrice[i][j] )
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
user.cpp:21:9: warning: unused variable ‘i’ [-Wunused-variable]
int i,j,k;
^
user.cpp:21:11: warning: unused variable ‘j’ [-Wunused-variable]
int i,j,k;
^
user.cpp:21:13: warning: unused variable ‘k’ [-Wunused-variable]
int i,j,k;
^
user.cpp: In function ‘void read()’:
user.cpp:10:37: 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:11:39: 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:13:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:16:39: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&matrice[i][j]);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 1324kb | Incorect | 0 |
| 2 | 0ms | 1332kb | Incorect | 0 |
| 3 | 0ms | 1332kb | Incorect | 0 |
| 4 | 0ms | 1340kb | Incorect | 0 |
| 5 | 0ms | 1348kb | Incorect | 0 |
| 6 | 4ms | 1344kb | Incorect | 0 |
| 7 | 4ms | 1352kb | Incorect | 0 |
| 8 | 4ms | 1356kb | Incorect | 0 |
| 9 | 8ms | 1356kb | Incorect | 0 |
| 10 | 12ms | 1360kb | Incorect | 0 |
| Punctaj total | 0 |