Pagini recente » Borderou de evaluare (job #1183921) | Borderou de evaluare (job #2508433) | Borderou de evaluare (job #852869) | Borderou de evaluare (job #1032100) | Borderou de evaluare (job #2675298)
Borderou de evaluare (job #2675298)
Raport evaluator
Compilare:
main.cpp: In function 'void bfs(int, int)':
main.cpp:20:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i = 0 ; i < G[x].size() ; i ++)
~~^~~~~~~~~~~~~
main.cpp:10:19: warning: unused variable 'cnt' [-Wunused-variable]
int x, y, i , cnt = 0;
^~~
main.cpp: In function 'void dfs(int)':
main.cpp:37:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j = 0 ; j < G[u].size() ; j ++)
~~^~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:61:30: warning: format '%d' expects argument of type 'int', but argument 2 has type 'std::vector<int>::size_type {aka long unsigned int}' [-Wformat=]
printf("%d\n", sol.size());
^
main.cpp:62:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i = 0 ; i < sol.size() ; i ++)
~~^~~~~~~~~~~~
main.cpp:46:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("graf.in", "r", stdin);
^
main.cpp:47:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("graf.out", "w", stdout);
^
main.cpp:49:49: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d%d", &n, &m , &start , &finish);
^
main.cpp:52:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &x, &y);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 3ms | 262kb | OK | 10 |
2 | 3ms | 262kb | OK | 10 |
3 | 3ms | 262kb | OK | 10 |
4 | 3ms | 262kb | OK | 10 |
5 | 3ms | 262kb | OK | 10 |
6 | 14ms | 655kb | OK | 10 |
7 | 6ms | 524kb | OK | 10 |
8 | 13ms | 655kb | OK | 10 |
9 | 14ms | 655kb | OK | 10 |
10 | 14ms | 655kb | OK | 10 |
Punctaj total | 100 |