#2305
Se citesc perechi de numere naturale până la citirea a două valori nule. Să se calculeze suma numerelor din perechile pentru care atât valorile inițiale cât și oglinditele lor sunt prime între ele.
Problema | Numere21 | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #58144000 | Utilizator | |
Fișier | numere21.cpp | Dimensiune | 679 B |
Data încărcării | 16 Mai 2025, 10:26 | Scor / rezultat | Eroare de compilare |
numere21.cpp: In function 'int main()': numere21.cpp:6:19: error: expected ')' before '!' token while(x!=0 &&y!0=0){ ^ numere21.cpp:6:21: error: lvalue required as left operand of assignment while(x!=0 &&y!0=0){ ^ numere21.cpp:6:23: error: expected ';' before ')' token while(x!=0 &&y!0=0){ ^ numere21.cpp:4:6: warning: unused variable 'C' [-Wunused-variable] {int C=0, x, y, a, b, aa, bb, oglx, ogly, r; ^ numere21.cpp:4:17: warning: unused variable 'a' [-Wunused-variable] {int C=0, x, y, a, b, aa, bb, oglx, ogly, r; ^ numere21.cpp:4:20: warning: unused variable 'b' [-Wunused-variable] {int C=0, x, y, a, b, aa, bb, oglx, ogly, r; ^ numere21.cpp:4:23: warning: unused variable 'aa' [-Wunused-variable] {int C=0, x, y, a, b, aa, bb, oglx, ogly, r; ^ numere21.cpp:4:27: warning: unused variable 'bb' [-Wunused-variable] {int C=0, x, y, a, b, aa, bb, oglx, ogly, r; ^ numere21.cpp:4:31: warning: unused variable 'oglx' [-Wunused-variable] {int C=0, x, y, a, b, aa, bb, oglx, ogly, r; ^ numere21.cpp:4:37: warning: unused variable 'ogly' [-Wunused-variable] {int C=0, x, y, a, b, aa, bb, oglx, ogly, r; ^ numere21.cpp:4:43: warning: unused variable 'r' [-Wunused-variable] {int C=0, x, y, a, b, aa, bb, oglx, ogly, r; ^ numere21.cpp:28:15: error: expected '}' at end of input cin>>x>>y;} ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Numere21 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ă.