Borderou de evaluare (job #3195826)

Utilizator tonealexandruTone Alexandru tonealexandru Data 21 ianuarie 2024 20:05:32
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
12ms6324kbMemory limit exceeded0
23ms6324kbMemory limit exceeded0
33ms6324kbMemory limit exceeded0
42ms6324kbMemory limit exceeded0
52ms6324kbMemory limit exceeded0
63ms6324kbMemory limit exceeded0
72ms6324kbMemory limit exceeded0
82ms6324kbMemory limit exceeded0
92ms6324kbMemory limit exceeded0
102ms6324kbMemory limit exceeded0
Punctaj total0

Ceva nu functioneaza?