Pagini recente » Borderou de evaluare (job #2031443) | Borderou de evaluare (job #2165585) | Borderou de evaluare (job #386683) | Borderou de evaluare (job #3194216) | Borderou de evaluare (job #2159662)
Borderou de evaluare (job #2159662)
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:51: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if(matrice[i][k] && matrice[k][j] && (matrice[i][j] > matrice[i][k]+matrice[k][j]) || !matrice[i][j] && 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 | 4ms | 2920kb | OK | 10 |
2 | 4ms | 2956kb | Incorect | 0 |
3 | 4ms | 2836kb | OK | 10 |
4 | 4ms | 2800kb | OK | 10 |
5 | 4ms | 3024kb | OK | 10 |
6 | 4ms | 3064kb | OK | 10 |
7 | 8ms | 3076kb | OK | 10 |
8 | 8ms | 3116kb | OK | 10 |
9 | 12ms | 2976kb | OK | 10 |
10 | 12ms | 3376kb | OK | 10 |
Punctaj total | 90 |