#409
Oglindit4
Se dau n
numere naturale. Determinați câte dintre ele au proprietatea că sunt prime cu oglinditul lor.
Problema | Oglindit4 | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #50959528 | Utilizator | |
Fișier | oglindit4.cpp | Dimensiune | 412 B |
Data încărcării | 15 Mai 2024, 23:31 | Scor / rezultat | Eroare de compilare |
oglindit4.cpp: In function 'int main()': oglindit4.cpp:9:9: error: 'i' was not declared in this scope for(i=1,i<=n,i++) ^ oglindit4.cpp:9:21: error: expected ';' before ')' token for(i=1,i<=n,i++) ^ oglindit4.cpp:29:5: error: expected primary-expression at end of input } ^ oglindit4.cpp:29:5: error: expected ';' at end of input oglindit4.cpp:29:5: error: expected primary-expression at end of input oglindit4.cpp:29:5: error: expected ')' at end of input oglindit4.cpp:29:5: error: expected statement at end of input oglindit4.cpp:7:15: warning: unused variable 'r' [-Wunused-variable] int n,ogl,r,cif,nr=0,p=1,c=0,x; ^ oglindit4.cpp:7:17: warning: unused variable 'cif' [-Wunused-variable] int n,ogl,r,cif,nr=0,p=1,c=0,x; ^ oglindit4.cpp:7:21: warning: unused variable 'nr' [-Wunused-variable] int n,ogl,r,cif,nr=0,p=1,c=0,x; ^ oglindit4.cpp:7:26: warning: unused variable 'p' [-Wunused-variable] int n,ogl,r,cif,nr=0,p=1,c=0,x; ^ oglindit4.cpp:7:30: warning: unused variable 'c' [-Wunused-variable] int n,ogl,r,cif,nr=0,p=1,c=0,x; ^ oglindit4.cpp:7:34: warning: unused variable 'x' [-Wunused-variable] int n,ogl,r,cif,nr=0,p=1,c=0,x; ^ oglindit4.cpp:29:5: error: expected '}' at end of input } ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Oglindit4 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ă.