Borderou de evaluare (job #1236361)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:26:21: warning: integer overflow in expression [-Woverflow]
#define INF (1<<31)-1
^
user.cpp:50:29: note: in expansion of macro ‘INF’
for (i=1;i<=N;i++) D[i]=INF;
^
user.cpp:60:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i=0;i<G[x].size();i++)
^
user.cpp:26:21: warning: integer overflow in expression [-Woverflow]
#define INF (1<<31)-1
^
user.cpp:69:44: note: in expansion of macro ‘INF’
for (i=2;i<=N;i++) printf("%d ",(D[i]==INF)?0:D[i]);
^
user.cpp:41:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("dijkstra.in","r",stdin);
^
user.cpp:42:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("dijkstra.out","w",stdout);
^
user.cpp:43:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&N,&M);
^
user.cpp:47:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d",&x,&y,&z);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 1024kb | OK | 10 |
2 | 0ms | 1020kb | OK | 10 |
3 | 0ms | 1056kb | OK | 10 |
4 | 0ms | 1068kb | OK | 10 |
5 | 20ms | 1308kb | OK | 10 |
6 | 44ms | 1576kb | OK | 10 |
7 | 60ms | 1808kb | OK | 10 |
8 | 68ms | 2144kb | OK | 10 |
9 | 208ms | 3956kb | OK | 10 |
10 | 272ms | 5004kb | OK | 10 |
Punctaj total | 100 |