Borderou de evaluare (job #2645409)

Utilizator saeed_odakSaeed Odak saeed_odak Data 28 august 2020 10:38:12
Problema Sakura Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 60

Raport evaluator

Compilare: main.cpp: In function 'bool bfs()': main.cpp:61: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:75: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:119:31: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(cnt == 0) return dp[x][y] = 1; ~~~~~~~~~^~~ main.cpp:133: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:137: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:138: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:141:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &tc); ^ main.cpp:143:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ main.cpp:149: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:153:18: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &m); ^ main.cpp:159: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
17ms1572kbOK10
28ms1572kbOK10
364ms2293kbOK10
461ms2031kbOK10
551ms1966kbOK10
646ms2031kbOK10
7300ms14012kbTime limit exceeded0
8301ms13750kbTime limit exceeded0
9303ms13742kbTime limit exceeded0
10300ms13742kbTime limit exceeded0
Punctaj total60

Ceva nu functioneaza?