#453
Se citesc de la tastatură trei numere naturale. Să se determine numărul de valori distincte.
Problema | distincte1 | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #30524070 | Utilizator | |
Fișier | distincte1.cpp | Dimensiune | 351 B |
Data încărcării | 18 August 2021, 16:03 | Scor / rezultat | Eroare de compilare |
distincte1.cpp: In function 'int main()': distincte1.cpp:8:9: warning: suggest parentheses around comparison in operand of '!=' [-Wparentheses] if (a != b !=c) ^ distincte1.cpp:10:20: error: lvalue required as left operand of assignment if (a != b and b =c) ^ distincte1.cpp:12:22: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (a = b and b !=c) ^ distincte1.cpp:14:22: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (a = c and c !=b) ^ distincte1.cpp:16:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if (a = b =c) ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema distincte1 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ă.