#132
ElemPP
Se dă un șir cu n
elemente numere naturale. Să se se afișeze elementele din șir care au proprietatea că primele două cifre din scrierea zecimală formează un pătrat perfect.
Problema | ElemPP | Operații I/O |
elempp.in /elempp.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #52584321 | Utilizator | |
Fișier | elempp.cpp | Dimensiune | 570 B |
Data încărcării | 03 Octombrie 2024, 19:07 | Scor / rezultat | 0 puncte |
elempp.cpp: In function 'int main()': elempp.cpp:18:24: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses] if(sqrt(xf)==1|sqrt(xf)==2|sqrt(xf)==3|sqrt(xf)==4|sqrt(xf)==5|sqrt(xf)==6|sqrt(xf)==7|sqrt(xf)==8|sqrt(xf)==9|sqrt(xf)==10) ^ elempp.cpp:18:48: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses] if(sqrt(xf)==1|sqrt(xf)==2|sqrt(xf)==3|sqrt(xf)==4|sqrt(xf)==5|sqrt(xf)==6|sqrt(xf)==7|sqrt(xf)==8|sqrt(xf)==9|sqrt(xf)==10) ^ elempp.cpp:18:60: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses] if(sqrt(xf)==1|sqrt(xf)==2|sqrt(xf)==3|sqrt(xf)==4|sqrt(xf)==5|sqrt(xf)==6|sqrt(xf)==7|sqrt(xf)==8|sqrt(xf)==9|sqrt(xf)==10) ^ elempp.cpp:18:72: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses] if(sqrt(xf)==1|sqrt(xf)==2|sqrt(xf)==3|sqrt(xf)==4|sqrt(xf)==5|sqrt(xf)==6|sqrt(xf)==7|sqrt(xf)==8|sqrt(xf)==9|sqrt(xf)==10) ^ elempp.cpp:18:84: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses] if(sqrt(xf)==1|sqrt(xf)==2|sqrt(xf)==3|sqrt(xf)==4|sqrt(xf)==5|sqrt(xf)==6|sqrt(xf)==7|sqrt(xf)==8|sqrt(xf)==9|sqrt(xf)==10) ^ elempp.cpp:18:96: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses] if(sqrt(xf)==1|sqrt(xf)==2|sqrt(xf)==3|sqrt(xf)==4|sqrt(xf)==5|sqrt(xf)==6|sqrt(xf)==7|sqrt(xf)==8|sqrt(xf)==9|sqrt(xf)==10) ^ elempp.cpp:18:108: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses] if(sqrt(xf)==1|sqrt(xf)==2|sqrt(xf)==3|sqrt(xf)==4|sqrt(xf)==5|sqrt(xf)==6|sqrt(xf)==7|sqrt(xf)==8|sqrt(xf)==9|sqrt(xf)==10) ^ elempp.cpp:18:120: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses] if(sqrt(xf)==1|sqrt(xf)==2|sqrt(xf)==3|sqrt(xf)==4|sqrt(xf)==5|sqrt(xf)==6|sqrt(xf)==7|sqrt(xf)==8|sqrt(xf)==9|sqrt(xf)==10) ^ elempp.cpp:18:132: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses] if(sqrt(xf)==1|sqrt(xf)==2|sqrt(xf)==3|sqrt(xf)==4|sqrt(xf)==5|sqrt(xf)==6|sqrt(xf)==7|sqrt(xf)==8|sqrt(xf)==9|sqrt(xf)==10) ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Raspuns gresit. | 20 | 0 | Exemplu | |
2 | 0 secunde | Raspuns gresit. | 30 | 0 | ||
3 | 0 secunde | Raspuns gresit. | 50 | 0 | ||
Punctaj total | 0 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema ElemPP 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ă.