Borderou de evaluare (job #3127481)
Raport evaluator
Compilare:
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
1 | #import<fstream>
| ^~~~~~
main.cpp:3:91: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
3 | int a=100001,b=100,n,i,j,k;std::ifstream f("royfloyd.in");std::ofstream o("royfloyd.out");main(){int c[b][b];f>>n;c(i)c(j){f>>c[i][j];if(i!=j&!c[i][j])c[i][j]=a;}c(k)c(i)c(j)c[i][j]=std::min(c[i][j],c[i][k]+c[k][j]);c(i){c(j)o<<(c[i][j]==a?0:c[i][j])<<" ";o<<'\n';}}
| ^~~~
main.cpp: In function 'int main()':
main.cpp:3:139: warning: suggest parentheses around comparison in operand of '&' [-Wparentheses]
3 | int a=100001,b=100,n,i,j,k;std::ifstream f("royfloyd.in");std::ofstream o("royfloyd.out");main(){int c[b][b];f>>n;c(i)c(j){f>>c[i][j];if(i!=j&!c[i][j])c[i][j]=a;}c(k)c(i)c(j)c[i][j]=std::min(c[i][j],c[i][k]+c[k][j]);c(i){c(j)o<<(c[i][j]==a?0:c[i][j])<<" ";o<<'\n';}}
| ~^~~
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 303kb | OK | 10 |
2 | 0ms | 303kb | OK | 10 |
3 | 0ms | 303kb | OK | 10 |
4 | 0ms | 303kb | OK | 10 |
5 | 0ms | 303kb | OK | 10 |
6 | 0ms | 303kb | OK | 10 |
7 | 1ms | 303kb | OK | 10 |
8 | 1ms | 303kb | OK | 10 |
9 | 1ms | 303kb | OK | 10 |
10 | 1ms | 303kb | OK | 10 |
Punctaj total | 100 |