Borderou de evaluare (job #3037015)

Utilizator hazsda_andreiHazsda Andrei hazsda_andrei Data 25 martie 2023 12:17:23
Problema Paranteze inversate Status done
Runda Universitatea Tehnică din Cluj-Napoca - 2023 - Concurs Compilator cpp-64
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int Echilibrare(int)': main.cpp:46:16: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 46 | if (deschise > inchise) //descrescator, nu pot parantezele deschise > inchise! | ^ main.cpp:77:1: warning: control reaches end of non-void function [-Wreturn-type] 77 | } | ^ main.cpp:62:27: warning: 'ultima' may be used uninitialized [-Wmaybe-uninitialized] 62 | paranteze[ultima] = ')'; | ~~~~~~~~~~~~~~~~~~^~~~~ main.cpp:40:20: note: 'ultima' was declared here 40 | int i = n, ultima, deschise = 0, inchise = 1; | ^~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
16ms303kbIncorect0
Punctaj total0

Ceva nu functioneaza?