Pagini recente » Borderou de evaluare (job #88435) | Borderou de evaluare (job #360319) | Borderou de evaluare (job #2938599) | Borderou de evaluare (job #1025885) | Borderou de evaluare (job #1251355)
Borderou de evaluare (job #1251355)
Raport evaluator
Compilare:
user.cpp: In function ‘void royfloyd()’:
user.cpp:15:85: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if(a[i][k] && a[k][j] && ( ( a[i][j]> a[i][k]+ a[k][j]) || !a[i][j] && i!=j ) ) a[i][j]=a[i][k]+a[k][j];
^
user.cpp: In function ‘int main()’:
user.cpp:21:36: 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:22:38: 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:24:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n", &n);
^
user.cpp:27:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &a[i][j]);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 256kb | OK | 10 |
2 | 0ms | 264kb | OK | 10 |
3 | 0ms | 268kb | OK | 10 |
4 | 0ms | 276kb | OK | 10 |
5 | 0ms | 276kb | OK | 10 |
6 | 0ms | 284kb | OK | 10 |
7 | 4ms | 284kb | OK | 10 |
8 | 4ms | 292kb | OK | 10 |
9 | 4ms | 296kb | OK | 10 |
10 | 8ms | 296kb | OK | 10 |
Punctaj total | 100 |