Borderou de evaluare (job #3346650)

Utilizator LiunduhuBabut Paul-Gabriel Liunduhu Data 14 martie 2026 19:24:50
Problema Cantitate maximă la transport de carburanți Status done
Runda arhiva-utcn Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int back(int, int*, int, int, int)': main.cpp:26:17: warning: this 'else' clause does not guard... [-Wmisleading-indentation] 26 | else | ^~~~ main.cpp:30:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' 30 | if(max<s) | ^~ main.cpp:19:15: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 19 | if(bun(k)) | ^ main.cpp:40:1: warning: no return statement in function returning non-void [-Wreturn-type] 40 | } | ^ main.cpp:13:5: warning: infinite recursion detected [-Winfinite-recursion] 13 | int back(int k,int *r,int n,int c,int s) | ^~~~ main.cpp:23:25: note: recursive call 23 | back(k+1,r,n,c,s); | ~~~~^~~~~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
154ms393kbTime limit exceeded0
Punctaj total0

Ceva nu functioneaza?