Pagini recente » Borderou de evaluare (job #237204) | Borderou de evaluare (job #133480) | Borderou de evaluare (job #536202) | Borderou de evaluare (job #1945542) | Borderou de evaluare (job #2645413)
Borderou de evaluare (job #2645413)
Raport evaluator
Compilare:
main.cpp: In function 'bool bfs()':
main.cpp:65:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<g[u].size(); i++) {
~^~~~~~~~~~~~
main.cpp: In function 'int dfs(int, int)':
main.cpp:79:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(; ptr[u] < g[u].size(); ptr[u]++) {
~~~~~~~^~~~~~~~~~~~~
main.cpp: In function 'bool memo(int, int)':
main.cpp:125:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int i=0; i<=n+m; i++) g[i].clear(); g[s].clear(); g[t].clear();
^~~
main.cpp:125:42: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
for(int i=0; i<=n+m; i++) g[i].clear(); g[s].clear(); g[t].clear();
^
main.cpp:135:18: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
return dp[x][y] = (res == cnt);
~~~~~~~~~^~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:139:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("sakura.in", "r", stdin);
^
main.cpp:140:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("sakura.out", "w", stdout);
^
main.cpp:143:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &tc);
^
main.cpp:145:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
main.cpp:151:25: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &x, &y);
^
main.cpp:155:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &m);
^
main.cpp:161:25: 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 | 6ms | 1572kb | OK | 10 |
2 | 7ms | 1572kb | OK | 10 |
3 | 33ms | 2355kb | OK | 10 |
4 | 31ms | 2031kb | OK | 10 |
5 | 21ms | 1966kb | OK | 10 |
6 | 30ms | 2031kb | OK | 10 |
7 | 302ms | 14049kb | Time limit exceeded | 0 |
8 | 302ms | 13742kb | Time limit exceeded | 0 |
9 | 300ms | 13742kb | Time limit exceeded | 0 |
10 | 303ms | 13873kb | Time limit exceeded | 0 |
Punctaj total | 60 |