#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 | #23290791 | Utilizator | |
Fișier | elempp.cpp | Dimensiune | 590 B |
Data încărcării | 10 Iunie 2020, 18:49 | Scor / rezultat | Eroare de compilare |
elempp.cpp:15:1: error: stray '\302' in program while (a>=100) ^ elempp.cpp:15:1: error: stray '\240' in program elempp.cpp:15:1: error: stray '\302' in program elempp.cpp:15:1: error: stray '\240' in program elempp.cpp:17:1: error: stray '\302' in program { ^ elempp.cpp:17:1: error: stray '\240' in program elempp.cpp:17:1: error: stray '\302' in program elempp.cpp:17:1: error: stray '\240' in program elempp.cpp:19:1: error: stray '\302' in program a/=10; ^ elempp.cpp:19:1: error: stray '\240' in program elempp.cpp:19:1: error: stray '\302' in program elempp.cpp:19:1: error: stray '\240' in program elempp.cpp:19:1: error: stray '\302' in program elempp.cpp:19:1: error: stray '\240' in program elempp.cpp:19:1: error: stray '\302' in program elempp.cpp:19:1: error: stray '\240' in program elempp.cpp:21:1: error: stray '\302' in program } ^ elempp.cpp:21:1: error: stray '\240' in program elempp.cpp:21:1: error: stray '\302' in program elempp.cpp:21:1: error: stray '\240' in program elempp.cpp:23:1: error: stray '\302' in program return a; ^ elempp.cpp:23:1: error: stray '\240' in program elempp.cpp:23:1: error: stray '\302' in program elempp.cpp:23:1: error: stray '\240' in program elempp.cpp:31:1: error: stray '\302' in program ifstream f("elempp.in"); ^ elempp.cpp:31:1: error: stray '\240' in program elempp.cpp:31:1: error: stray '\302' in program elempp.cpp:31:1: error: stray '\240' in program elempp.cpp:33:1: error: stray '\302' in program ofstream g("elempp.out"); ^ elempp.cpp:33:1: error: stray '\240' in program elempp.cpp:33:1: error: stray '\302' in program elempp.cpp:33:1: error: stray '\240' in program elempp.cpp:35:1: error: stray '\302' in program int n, b, i, num, k=0; ^ elempp.cpp:35:1: error: stray '\240' in program elempp.cpp:35:1: error: stray '\302' in program elempp.cpp:35:1: error: stray '\240' in program elempp.cpp:37:1: error: stray '\302' in program f >> n; ^ elempp.cpp:37:1: error: stray '\240' in program elempp.cpp:37:1: error: stray '\302' in program elempp.cpp:37:1: error: stray '\240' in program elempp.cpp:39:1: error: stray '\302' in program for (i=1; i<=n; ++i) ^ elempp.cpp:39:1: error: stray '\240' in program elempp.cpp:39:1: error: stray '\302' in program elempp.cpp:39:1: error: stray '\240' in program elempp.cpp:41:1: error: stray '\302' in program { ^ elempp.cpp:41:1: error: stray '\240' in program elempp.cpp:41:1: error: stray '\302' in program elempp.cpp:41:1: error: stray '\240' in program elempp.cpp:43:1: error: stray '\302' in program f >> num; ^ elempp.cpp:43:1: error: stray '\240' in program elempp.cpp:43:1: error: stray '\302' in program elempp.cpp:43:1: error: stray '\240' in program elempp.cpp:43:1: error: stray '\302' in program elempp.cpp:43:1: error: stray '\240' in program elempp.cpp:43:1: error: stray '\302' in program elempp.cpp:43:1: error: stray '\240' in program elempp.cpp:45:1: error: stray '\302' in program b=pdcpp(num); ^ elempp.cpp:45:1: error: stray '\240' in program elempp.cpp:45:1: error: stray '\302' in program elempp.cpp:45:1: error: stray '\240' in program elempp.cpp:45:1: error: stray '\302' in program elempp.cpp:45:1: error: stray '\240' in program elempp.cpp:45:1: error: stray '\302' in program elempp.cpp:45:1: error: stray '\240' in program elempp.cpp:47:1: error: stray '\302' in program if (sqrt(b)==int(sqrt(b))) { ++k; c[k]=num; } ^ elempp.cpp:47:1: error: stray '\240' in program elempp.cpp:47:1: error: stray '\302' in program elempp.cpp:47:1: error: stray '\240' in program elempp.cpp:47:1: error: stray '\302' in program elempp.cpp:47:1: error: stray '\240' in program elempp.cpp:47:1: error: stray '\302' in program elempp.cpp:47:1: error: stray '\240' in program elempp.cpp:49:1: error: stray '\302' in program } ^ elempp.cpp:49:1: error: stray '\240' in program elempp.cpp:49:1: error: stray '\302' in program elempp.cpp:49:1: error: stray '\240' in program elempp.cpp:51:1: error: stray '\302' in program for (i=1; i<=k; ++i) ^ elempp.cpp:51:1: error: stray '\240' in program elempp.cpp:51:1: error: stray '\302' in program elempp.cpp:51:1: error: stray '\240' in program elempp.cpp:53:1: error: stray '\302' in program g << c[i] << " "; ^ elempp.cpp:53:1: error: stray '\240' in program elempp.cpp:53:1: error: stray '\302' in program elempp.cpp:53:1: error: stray '\240' in program elempp.cpp:53:1: error: stray '\302' in program elempp.cpp:53:1: error: stray '\240' in program elempp.cpp:53:1: error: stray '\302' in program elempp.cpp:53:1: error: stray '\240' in program elempp.cpp:55:1: error: stray '\302' in program return 0; ^ elempp.cpp:55:1: error: stray '\240' in program elempp.cpp:55:1: error: stray '\302' in program elempp.cpp:55:1: error: stray '\240' in program
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ă.