Problema | sir_munte | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #57450614 | Utilizator | |
Fișier | sir_munte.cpp | Dimensiune | 433 B |
Data încărcării | 31 Martie 2025, 21:41 | Scor / rezultat | 60 puncte |
sir_munte.cpp: In function 'int main()': sir_munte.cpp:18:25: warning: statement has no effect [-Wunused-value] if (v[i]<=v[i+1]) ok==0; ^ sir_munte.cpp:7:20: warning: unused variable 'j' [-Wunused-variable] { int v[1001],n,i,j,pmax,max=-INT_MAX,ok; ^ sir_munte.cpp:14:13: warning: 'pmax' may be used uninitialized in this function [-Wmaybe-uninitialized] if (pmax==1 || pmax==n) ok=0; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 10 | 10 | Exemplu | |
2 | 0 secunde | Raspuns gresit. | 10 | 0 | Exemplu | |
3 | 0 secunde | OK. | 10 | 10 | ||
4 | 0 secunde | OK. | 10 | 10 | ||
5 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
6 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
7 | 0 secunde | OK. | 10 | 10 | ||
8 | 0 secunde | OK. | 10 | 10 | ||
9 | 0 secunde | OK. | 10 | 10 | ||
10 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
Punctaj total | 60 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema sir_munte face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.