Borderou de evaluare (job #3195827)

Utilizator tonealexandruTone Alexandru tonealexandru Data 21 ianuarie 2024 20:06:07
Problema Ape Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int dfs(int, int)': main.cpp:22:1: warning: no return statement in function returning non-void [-Wreturn-type] 22 | } | ^ main.cpp:14:5: warning: infinite recursion detected [-Winfinite-recursion] 14 | int dfs(int x, int y) | ^~~ main.cpp:18:27: note: recursive call 18 | if(mat[x+1][y]==0) dfs(x+1, y); | ~~~^~~~~~~~ main.cpp:19:27: note: recursive call 19 | if(mat[x-1][y]==0) dfs(x-1, y); | ~~~^~~~~~~~ main.cpp:20:27: note: recursive call 20 | if(mat[x][y+1]==0) dfs(x, y+1); | ~~~^~~~~~~~ main.cpp:21:27: note: recursive call 21 | if(mat[x][y-1]==0) dfs(x, y-1); | ~~~^~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
110ms2502kbKilled by Signal 110
211ms3584kbKilled by Signal 110
310ms2437kbKilled by Signal 110
410ms2449kbKilled by Signal 110
510ms2445kbKilled by Signal 110
611ms3055kbKilled by Signal 110
73ms6324kbMemory limit exceeded0
85ms2904kbKilled by Signal 110
910ms2850kbKilled by Signal 110
1010ms2445kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?