#1174
FListaNumarare2
C++
Să se scrie o funcție C++ care determină câte perechi de elemente prime între ele sunt memorate într-o lista simplu înlănțuită.
Problema | FListaNumarare2 | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #13453299 | Utilizator | |
Fișier | flistanumarare2.cpp | Dimensiune | 688 B |
Data încărcării | 22 Ianuarie 2019, 19:08 | Scor / rezultat | Eroare de compilare |
flistanumarare2.cpp:41:2: error: stray '\302' in program int k=0; ^ flistanumarare2.cpp:41:2: error: stray '\240' in program flistanumarare2.cpp:43:2: error: stray '\302' in program ^ flistanumarare2.cpp:43:2: error: stray '\240' in program flistanumarare2.cpp:45:2: error: stray '\302' in program while(p->urm) ^ flistanumarare2.cpp:45:2: error: stray '\240' in program flistanumarare2.cpp:47:2: error: stray '\302' in program { ^ flistanumarare2.cpp:47:2: error: stray '\240' in program flistanumarare2.cpp:47:2: error: stray '\302' in program flistanumarare2.cpp:47:2: error: stray '\240' in program flistanumarare2.cpp:49:2: error: stray '\302' in program int x=p->info; ^ flistanumarare2.cpp:49:2: error: stray '\240' in program flistanumarare2.cpp:49:2: error: stray '\302' in program flistanumarare2.cpp:49:2: error: stray '\240' in program flistanumarare2.cpp:49:2: error: stray '\302' in program flistanumarare2.cpp:49:2: error: stray '\240' in program flistanumarare2.cpp:49:2: error: stray '\302' in program flistanumarare2.cpp:49:2: error: stray '\240' in program flistanumarare2.cpp:51:2: error: stray '\302' in program nod *q=p->urm; ^ flistanumarare2.cpp:51:2: error: stray '\240' in program flistanumarare2.cpp:51:2: error: stray '\302' in program flistanumarare2.cpp:51:2: error: stray '\240' in program flistanumarare2.cpp:51:2: error: stray '\302' in program flistanumarare2.cpp:51:2: error: stray '\240' in program flistanumarare2.cpp:51:2: error: stray '\302' in program flistanumarare2.cpp:51:2: error: stray '\240' in program flistanumarare2.cpp:53:2: error: stray '\302' in program while(q) ^ flistanumarare2.cpp:53:2: error: stray '\240' in program flistanumarare2.cpp:53:2: error: stray '\302' in program flistanumarare2.cpp:53:2: error: stray '\240' in program flistanumarare2.cpp:53:2: error: stray '\302' in program flistanumarare2.cpp:53:2: error: stray '\240' in program flistanumarare2.cpp:53:2: error: stray '\302' in program flistanumarare2.cpp:53:2: error: stray '\240' in program flistanumarare2.cpp:55:2: error: stray '\302' in program { ^ flistanumarare2.cpp:55:2: error: stray '\240' in program flistanumarare2.cpp:55:2: error: stray '\302' in program flistanumarare2.cpp:55:2: error: stray '\240' in program flistanumarare2.cpp:55:2: error: stray '\302' in program flistanumarare2.cpp:55:2: error: stray '\240' in program flistanumarare2.cpp:55:2: error: stray '\302' in program flistanumarare2.cpp:55:2: error: stray '\240' in program flistanumarare2.cpp:57:2: error: stray '\302' in program int aux=x; ^ flistanumarare2.cpp:57:2: error: stray '\240' in program flistanumarare2.cpp:57:2: error: stray '\302' in program flistanumarare2.cpp:57:2: error: stray '\240' in program flistanumarare2.cpp:57:2: error: stray '\302' in program flistanumarare2.cpp:57:2: error: stray '\240' in program flistanumarare2.cpp:57:2: error: stray '\302' in program flistanumarare2.cpp:57:2: error: stray '\240' in program flistanumarare2.cpp:59:2: error: stray '\302' in program int y=q->info; ^ flistanumarare2.cpp:59:2: error: stray '\240' in program flistanumarare2.cpp:59:2: error: stray '\302' in program flistanumarare2.cpp:59:2: error: stray '\240' in program flistanumarare2.cpp:59:2: error: stray '\302' in program flistanumarare2.cpp:59:2: error: stray '\240' in program flistanumarare2.cpp:59:2: error: stray '\302' in program flistanumarare2.cpp:59:2: error: stray '\240' in program flistanumarare2.cpp:61:2: error: stray '\302' in program ^ flistanumarare2.cpp:61:2: error: stray '\240' in program flistanumarare2.cpp:61:2: error: stray '\302' in program flistanumarare2.cpp:61:2: error: stray '\240' in program flistanumarare2.cpp:61:2: error: stray '\302' in program flistanumarare2.cpp:61:2: error: stray '\240' in program flistanumarare2.cpp:61:2: error: stray '\302' in program flistanumarare2.cpp:61:2: error: stray '\240' in program flistanumarare2.cpp:61:2: error: stray '\302' in program flistanumarare2.cpp:61:2: error: stray '\240' in program flistanumarare2.cpp:63:2: error: stray '\302' in program while(aux!=y) ^ flistanumarare2.cpp:63:2: error: stray '\240' in program flistanumarare2.cpp:63:2: error: stray '\302' in program flistanumarare2.cpp:63:2: error: stray '\240' in program flistanumarare2.cpp:63:2: error: stray '\302' in program flistanumarare2.cpp:63:2: error: stray '\240' in program flistanumarare2.cpp:63:2: error: stray '\302' in program flistanumarare2.cpp:63:2: error: stray '\240' in program flistanumarare2.cpp:63:2: error: stray '\302' in program flistanumarare2.cpp:63:2: error: stray '\240' in program flistanumarare2.cpp:63:2: error: stray '\302' in program flistanumarare2.cpp:63:2: error: stray '\240' in program flistanumarare2.cpp:65:2: error: stray '\302' in program if(aux>y) ^ flistanumarare2.cpp:65:2: error: stray '\240' in program flistanumarare2.cpp:65:2: error: stray '\302' in program flistanumarare2.cpp:65:2: error: stray '\240' in program flistanumarare2.cpp:65:2: error: stray '\302' in program flistanumarare2.cpp:65:2: error: stray '\240' in program flistanumarare2.cpp:65:2: error: stray '\302' in program flistanumarare2.cpp:65:2: error: stray '\240' in program flistanumarare2.cpp:65:2: error: stray '\302' in program flistanumarare2.cpp:65:2: error: stray '\240' in program flistanumarare2.cpp:65:2: error: stray '\302' in program flistanumarare2.cpp:65:2: error: stray '\240' in program flistanumarare2.cpp:65:2: error: stray '\302' in program flistanumarare2.cpp:65:2: error: stray '\240' in program flistanumarare2.cpp:65:2: error: stray '\302' in program flistanumarare2.cpp:65:2: error: stray '\240' in program flistanumarare2.cpp:67:2: error: stray '\302' in program aux=aux-y; ^ flistanumarare2.cpp:67:2: error: stray '\240' in program flistanumarare2.cpp:67:2: error: stray '\302' in program flistanumarare2.cpp:67:2: error: stray '\240' in program flistanumarare2.cpp:67:2: error: stray '\302' in program flistanumarare2.cpp:67:2: error: stray '\240' in program flistanumarare2.cpp:67:2: error: stray '\302' in program flistanumarare2.cpp:67:2: error: stray '\240' in program flistanumarare2.cpp:67:2: error: stray '\302' in program flistanumarare2.cpp:67:2: error: stray '\240' in program flistanumarare2.cpp:67:2: error: stray '\302' in program flistanumarare2.cpp:67:2: error: stray '\240' in program flistanumarare2.cpp:67:2: error: stray '\302' in program flistanumarare2.cpp:67:2: error: stray '\240' in program flistanumarare2.cpp:69:2: error: stray '\302' in program else ^ flistanumarare2.cpp:69:2: error: stray '\240' in program flistanumarare2.cpp:69:2: error: stray '\302' in program flistanumarare2.cpp:69:2: error: stray '\240' in program flistanumarare2.cpp:69:2: error: stray '\302' in program flistanumarare2.cpp:69:2: error: stray '\240' in program flistanumarare2.cpp:69:2: error: stray '\302' in program flistanumarare2.cpp:69:2: error: stray '\240' in program flistanumarare2.cpp:69:2: error: stray '\302' in program flistanumarare2.cpp:69:2: error: stray '\240' in program flistanumarare2.cpp:69:2: error: stray '\302' in program flistanumarare2.cpp:69:2: error: stray '\240' in program flistanumarare2.cpp:69:2: error: stray '\302' in program flistanumarare2.cpp:69:2: error: stray '\240' in program flistanumarare2.cpp:71:2: error: stray '\302' in program y=y-aux; ^ flistanumarare2.cpp:71:2: error: stray '\240' in program flistanumarare2.cpp:71:2: error: stray '\302' in program flistanumarare2.cpp:71:2: error: stray '\240' in program flistanumarare2.cpp:71:2: error: stray '\302' in program flistanumarare2.cpp:71:2: error: stray '\240' in program flistanumarare2.cpp:71:2: error: stray '\302' in program flistanumarare2.cpp:71:2: error: stray '\240' in program flistanumarare2.cpp:71:2: error: stray '\302' in program flistanumarare2.cpp:71:2: error: stray '\240' in program flistanumarare2.cpp:71:2: error: stray '\302' in program flistanumarare2.cpp:71:2: error: stray '\240' in program flistanumarare2.cpp:71:2: error: stray '\302' in program flistanumarare2.cpp:71:2: error: stray '\240' in program flistanumarare2.cpp:73:2: error: stray '\302' in program ^ flistanumarare2.cpp:73:2: error: stray '\240' in program flistanumarare2.cpp:73:2: error: stray '\302' in program flistanumarare2.cpp:73:2: error: stray '\240' in program flistanumarare2.cpp:73:2: error: stray '\302' in program flistanumarare2.cpp:73:2: error: stray '\240' in program flistanumarare2.cpp:73:2: error: stray '\302' in program flistanumarare2.cpp:73:2: error: stray '\240' in program flistanumarare2.cpp:73:2: error: stray '\302' in program flistanumarare2.cpp:73:2: error: stray '\240' in program flistanumarare2.cpp:73:2: error: stray '\302' in program flistanumarare2.cpp:73:2: error: stray '\240' in program flistanumarare2.cpp:73:2: error: stray '\302' in program flistanumarare2.cpp:73:2: error: stray '\240' in program flistanumarare2.cpp:75:2: error: stray '\302' in program if(aux==1) ^ flistanumarare2.cpp:75:2: error: stray '\240' in program flistanumarare2.cpp:75:2: error: stray '\302' in program flistanumarare2.cpp:75:2: error: stray '\240' in program flistanumarare2.cpp:75:2: error: stray '\302' in program flistanumarare2.cpp:75:2: error: stray '\240' in program flistanumarare2.cpp:75:2: error: stray '\302' in program flistanumarare2.cpp:75:2: error: stray '\240' in program flistanumarare2.cpp:75:2: error: stray '\302' in program flistanumarare2.cpp:75:2: error: stray '\240' in program flistanumarare2.cpp:75:2: error: stray '\302' in program flistanumarare2.cpp:75:2: error: stray '\240' in program flistanumarare2.cpp:75:2: error: stray '\302' in program flistanumarare2.cpp:75:2: error: stray '\240' in program flistanumarare2.cpp:77:2: error: stray '\302' in program k++; ^ flistanumarare2.cpp:77:2: error: stray '\240' in program flistanumarare2.cpp:77:2: error: stray '\302' in program flistanumarare2.cpp:77:2: error: stray '\240' in program flistanumarare2.cpp:77:2: error: stray '\302' in program flistanumarare2.cpp:77:2: error: stray '\240' in program flistanumarare2.cpp:77:2: error: stray '\302' in program flistanumarare2.cpp:77:2: error: stray '\240' in program flistanumarare2.cpp:77:2: error: stray '\302' in program flistanumarare2.cpp:77:2: error: stray '\240' in program flistanumarare2.cpp:77:2: error: stray '\302' in program flistanumarare2.cpp:77:2: error: stray '\240' in program flistanumarare2.cpp:77:2: error: stray '\302' in program flistanumarare2.cpp:77:2: error: stray '\240' in program flistanumarare2.cpp:77:2: error: stray '\302' in program flistanumarare2.cpp:77:2: error: stray '\240' in program flistanumarare2.cpp:79:2: error: stray '\302' in program ^ flistanumarare2.cpp:79:2: error: stray '\240' in program flistanumarare2.cpp:79:2: error: stray '\302' in program flistanumarare2.cpp:79:2: error: stray '\240' in program flistanumarare2.cpp:79:2: error: stray '\302' in program flistanumarare2.cpp:79:2: error: stray '\240' in program flistanumarare2.cpp:79:2: error: stray '\302' in program flistanumarare2.cpp:79:2: error: stray '\240' in program flistanumarare2.cpp:79:2: error: stray '\302' in program flistanumarare2.cpp:79:2: error: stray '\240' in program flistanumarare2.cpp:79:2: error: stray '\302' in program flistanumarare2.cpp:79:2: error: stray '\240' in program flistanumarare2.cpp:79:2: error: stray '\302' in program flistanumarare2.cpp:79:2: error: stray '\240' in program flistanumarare2.cpp:81:2: error: stray '\302' in program q=q->urm; ^ flistanumarare2.cpp:81:2: error: stray '\240' in program flistanumarare2.cpp:81:2: error: stray '\302' in program flistanumarare2.cpp:81:2: error: stray '\240' in program flistanumarare2.cpp:81:2: error: stray '\302' in program flistanumarare2.cpp:81:2: error: stray '\240' in program flistanumarare2.cpp:81:2: error: stray '\302' in program flistanumarare2.cpp:81:2: error: stray '\240' in program flistanumarare2.cpp:81:2: error: stray '\302' in program flistanumarare2.cpp:81:2: error: stray '\240' in program flistanumarare2.cpp:83:2: error: stray '\302' in program } ^ flistanumarare2.cpp:83:2: error: stray '\240' in program flistanumarare2.cpp:83:2: error: stray '\302' in program flistanumarare2.cpp:83:2: error: stray '\240' in program flistanumarare2.cpp:83:2: error: stray '\302' in program flistanumarare2.cpp:83:2: error: stray '\240' in program flistanumarare2.cpp:83:2: error: stray '\302' in program flistanumarare2.cpp:83:2: error: stray '\240' in program flistanumarare2.cpp:85:2: error: stray '\302' in program ^ flistanumarare2.cpp:85:2: error: stray '\240' in program flistanumarare2.cpp:85:2: error: stray '\302' in program flistanumarare2.cpp:85:2: error: stray '\240' in program flistanumarare2.cpp:85:2: error: stray '\302' in program flistanumarare2.cpp:85:2: error: stray '\240' in program flistanumarare2.cpp:87:2: error: stray '\302' in program p=p->urm; ^ flistanumarare2.cpp:87:2: error: stray '\240' in program flistanumarare2.cpp:87:2: error: stray '\302' in program flistanumarare2.cpp:87:2: error: stray '\240' in program flistanumarare2.cpp:87:2: error: stray '\302' in program flistanumarare2.cpp:87:2: error: stray '\240' in program flistanumarare2.cpp:87:2: error: stray '\302' in program flistanumarare2.cpp:87:2: error: stray '\240' in program flistanumarare2.cpp:89:2: error: stray '\302' in program } ^ flistanumarare2.cpp:89:2: error: stray '\240' in program flistanumarare2.cpp:89:2: error: stray '\302' in program flistanumarare2.cpp:89:2: error: stray '\240' in program flistanumarare2.cpp:91:2: error: stray '\302' in program ^ flistanumarare2.cpp:91:2: error: stray '\240' in program flistanumarare2.cpp:91:2: error: stray '\302' in program flistanumarare2.cpp:91:2: error: stray '\240' in program flistanumarare2.cpp:93:2: error: stray '\302' in program return k; ^ flistanumarare2.cpp:93:2: error: stray '\240' in program flistanumarare2.cpp:93:2: error: stray '\302' in program flistanumarare2.cpp:93:2: error: stray '\240' in program flistanumarare2.cpp:93:2: error: stray '\302' in program flistanumarare2.cpp:93:2: error: stray '\240' in program flistanumarare2.cpp:93:2: error: stray '\302' in program flistanumarare2.cpp:93:2: error: stray '\240' in program
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema FListaNumarare2 face parte din a doua categorie. Pentru aceste probleme se folosește un program suport, furnizat de propunătorul problemei. 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ă.