Problema | sir_zigzag | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #55550323 | Utilizator | |
Fișier | sir_zigzag.cpp | Dimensiune | 509 B |
Data încărcării | 18 Ianuarie 2025, 10:58 | Scor / rezultat | 60 puncte |
sir_zigzag.cpp: In function 'int main()': sir_zigzag.cpp:15:18: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if(v[i-1]>v[i]<v[i+1] or v[i-1]<v[i]>v[i+1]) ^ sir_zigzag.cpp:15:40: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] if(v[i-1]>v[i]<v[i+1] or v[i-1]<v[i]>v[i+1]) ^ sir_zigzag.cpp:22:23: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(v[i]=v[i+1]) ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 10 | 10 | Exemplu | |
2 | 0 secunde | OK. | 10 | 10 | Exemplu | |
3 | 0 secunde | Raspuns gresit. | 5 | 0 | Exemplu | |
4 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
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 | OK. | 10 | 10 | ||
11 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
Punctaj total | 60 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema sir_zigzag 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ă.