Pagini recente » Borderou de evaluare (job #1138692) | Borderou de evaluare (job #1894420) | Borderou de evaluare (job #2798087) | Borderou de evaluare (job #1659912) | Borderou de evaluare (job #2080712)
Borderou de evaluare (job #2080712)
Raport evaluator
Compilare:
user.cpp: In function ‘bool bfs()’:
user.cpp:29:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int k = 0; k < g[q.front()].size(); ++ k) {
^
user.cpp: In function ‘int dfs(int, int)’:
user.cpp:47:50: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int &k = rem[from]; k < g[from].size(); ++ k) {
^
user.cpp: In function ‘int dfsGrafRamas(int, int)’:
user.cpp:81:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int k = 0; k < g[from].size(); ++ k) {
^
user.cpp:95:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:111:38: warning: narrowing conversion of ‘g[y].std::vector<_Tp, _Alloc>::size<Muchie, std::allocator<Muchie> >()’ from ‘std::vector<Muchie>::size_type {aka unsigned int}’ to ‘int’ inside { } [-Wnarrowing]
g[x].push_back({y, g[y].size(), 0, z});
^
user.cpp:112:40: warning: narrowing conversion of ‘(g[x].std::vector<_Tp, _Alloc>::size<Muchie, std::allocator<Muchie> >() + 4294967295u)’ from ‘std::vector<Muchie>::size_type {aka unsigned int}’ to ‘int’ inside { } [-Wnarrowing]
g[y].push_back({x, g[x].size() - 1, 0, z});
^
user.cpp:137:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < sol.size(); ++ i) {
^
user.cpp:98:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("critice.in", "r", stdin);
^
user.cpp:99:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("critice.out", "w", stdout);
^
user.cpp:102:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &m);
^
user.cpp:106:36: 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 | 324kb | Okay! | 10 |
2 | 0ms | 324kb | Okay! | 10 |
3 | 0ms | 372kb | Okay! | 10 |
4 | 0ms | 360kb | Okay! | 10 |
5 | 0ms | 388kb | Okay! | 10 |
6 | 4ms | 596kb | Okay! | 10 |
7 | 8ms | 1040kb | Okay! | 10 |
8 | 12ms | 912kb | Okay! | 10 |
9 | 8ms | 796kb | Okay! | 10 |
10 | 8ms | 912kb | Okay! | 10 |
Punctaj total | 100 |