Pagini recente » Borderou de evaluare (job #132755) | Borderou de evaluare (job #1898652) | Borderou de evaluare (job #403688) | Borderou de evaluare (job #550387) | Borderou de evaluare (job #2159664)
Borderou de evaluare (job #2159664)
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 | 2768kb | OK | 10 |
2 | 4ms | 2888kb | Incorect | 0 |
3 | 4ms | 2776kb | OK | 10 |
4 | 4ms | 2820kb | OK | 10 |
5 | 4ms | 2824kb | OK | 10 |
6 | 4ms | 2832kb | OK | 10 |
7 | 8ms | 2988kb | OK | 10 |
8 | 8ms | 2980kb | OK | 10 |
9 | 12ms | 2676kb | OK | 10 |
10 | 12ms | 2700kb | OK | 10 |
Punctaj total | 90 |