Pagini recente » Borderou de evaluare (job #838109) | Borderou de evaluare (job #543884) | Borderou de evaluare (job #567380) | Borderou de evaluare (job #38662) | Borderou de evaluare (job #2432446)
Borderou de evaluare (job #2432446)
Raport evaluator
Compilare:
main.cpp: In function 'void bfs_min_distance(std::vector<int>*, int, int&)':
main.cpp:21:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0 ; i < adj[index].size() ; ++i) {
~~^~~~~~~~~~~~~~~~~~~
main.cpp:30:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 1 ; i < distance.size() ; ++i) {
~~^~~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:39:31: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("bfs.in", "r", stdin);
^
main.cpp:40:33: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("bfs.out", "w", stdout);
^
main.cpp:42:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &N, &M, &S);
^
main.cpp:49:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &src, &dest);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | OK | 10 |
2 | 2ms | 131kb | OK | 10 |
3 | 2ms | 131kb | OK | 10 |
4 | 8ms | 262kb | OK | 10 |
5 | 16ms | 393kb | OK | 10 |
6 | 71ms | 1572kb | OK | 10 |
7 | 197ms | 3932kb | OK | 10 |
8 | 184ms | 5767kb | OK | 10 |
9 | 861ms | 11665kb | OK | 10 |
10 | 863ms | 11534kb | OK | 10 |
Punctaj total | 100 |