#1260
asii
Se dau 2
numere naturale. Calculați suma, diferenţa, produsul şi câtul lor, în această ordine.
Problema | asii | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #43713458 | Utilizator | |
Fișier | asii.cpp | Dimensiune | 191 B |
Data încărcării | 11 Mai 2023, 14:53 | Scor / rezultat | Eroare de compilare |
asii.cpp: In function 'int main()': asii.cpp:8:13: warning: right operand of comma operator has no effect [-Wunused-value] cin>>a,b,r,t,s,d; ^ asii.cpp:8:15: warning: right operand of comma operator has no effect [-Wunused-value] cin>>a,b,r,t,s,d; ^ asii.cpp:8:17: warning: right operand of comma operator has no effect [-Wunused-value] cin>>a,b,r,t,s,d; ^ asii.cpp:8:19: warning: right operand of comma operator has no effect [-Wunused-value] cin>>a,b,r,t,s,d; ^ asii.cpp:8:20: warning: right operand of comma operator has no effect [-Wunused-value] cin>>a,b,r,t,s,d; ^ asii.cpp:9:7: error: lvalue required as left operand of assignment a+b=s; ^ asii.cpp:10:7: error: lvalue required as left operand of assignment a-b=t; ^ asii.cpp:11:7: error: lvalue required as left operand of assignment a*b=r; ^ asii.cpp:12:7: error: lvalue required as left operand of assignment a/b=d; ^ asii.cpp:13:14: warning: right operand of comma operator has no effect [-Wunused-value] cout<<s,t,r,d; ^ asii.cpp:13:16: warning: right operand of comma operator has no effect [-Wunused-value] cout<<s,t,r,d; ^ asii.cpp:13:17: warning: right operand of comma operator has no effect [-Wunused-value] cout<<s,t,r,d; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema asii 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ă.