#510
SortPrime
Se dă un vector cu n
elemente, numere naturale. Afișați în ordine crescătoare valorile prime din vector.
Problema | SortPrime | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #8976856 | Utilizator | |
Fișier | sortprime.cpp | Dimensiune | 375 B |
Data încărcării | 23 Martie 2018, 12:15 | Scor / rezultat | Eroare de compilare |
sortprime.cpp:6:1: error: stray '\302' in program int prim (int x) ^ sortprime.cpp:6:1: error: stray '\240' in program sortprime.cpp:8:1: error: stray '\302' in program int d; ^ sortprime.cpp:8:1: error: stray '\240' in program sortprime.cpp:8:1: error: stray '\302' in program sortprime.cpp:8:1: error: stray '\240' in program sortprime.cpp:8:1: error: stray '\302' in program sortprime.cpp:8:1: error: stray '\240' in program sortprime.cpp:9:1: error: stray '\302' in program for(d=2;d<=x/2;d++) ^ sortprime.cpp:9:1: error: stray '\240' in program sortprime.cpp:9:1: error: stray '\302' in program sortprime.cpp:9:1: error: stray '\240' in program sortprime.cpp:9:1: error: stray '\302' in program sortprime.cpp:9:1: error: stray '\240' in program sortprime.cpp:10:1: error: stray '\302' in program if(x%d==0)return 0; ^ sortprime.cpp:10:1: error: stray '\240' in program sortprime.cpp:10:1: error: stray '\302' in program sortprime.cpp:10:1: error: stray '\240' in program sortprime.cpp:10:1: error: stray '\302' in program sortprime.cpp:10:1: error: stray '\240' in program sortprime.cpp:10:1: error: stray '\302' in program sortprime.cpp:10:1: error: stray '\240' in program sortprime.cpp:10:1: error: stray '\302' in program sortprime.cpp:10:1: error: stray '\240' in program sortprime.cpp:10:1: error: stray '\302' in program sortprime.cpp:10:1: error: stray '\240' in program sortprime.cpp:10:1: error: stray '\302' in program sortprime.cpp:10:1: error: stray '\240' in program sortprime.cpp:11:1: error: stray '\302' in program return 1; ^ sortprime.cpp:11:1: error: stray '\240' in program sortprime.cpp:11:1: error: stray '\302' in program sortprime.cpp:11:1: error: stray '\240' in program sortprime.cpp:11:1: error: stray '\302' in program sortprime.cpp:11:1: error: stray '\240' in program sortprime.cpp:15:1: error: stray '\302' in program cin>>n; ^ sortprime.cpp:15:1: error: stray '\240' in program sortprime.cpp:15:1: error: stray '\302' in program sortprime.cpp:15:1: error: stray '\240' in program sortprime.cpp:15:1: error: stray '\302' in program sortprime.cpp:15:1: error: stray '\240' in program sortprime.cpp:16:1: error: stray '\302' in program for(i=1;i<=n;i++) ^ sortprime.cpp:16:1: error: stray '\240' in program sortprime.cpp:16:1: error: stray '\302' in program sortprime.cpp:16:1: error: stray '\240' in program sortprime.cpp:16:1: error: stray '\302' in program sortprime.cpp:16:1: error: stray '\240' in program sortprime.cpp:17:1: error: stray '\302' in program cin>>v[i]; ^ sortprime.cpp:17:1: error: stray '\240' in program sortprime.cpp:17:1: error: stray '\302' in program sortprime.cpp:17:1: error: stray '\240' in program sortprime.cpp:17:1: error: stray '\302' in program sortprime.cpp:17:1: error: stray '\240' in program sortprime.cpp:17:1: error: stray '\302' in program sortprime.cpp:17:1: error: stray '\240' in program sortprime.cpp:17:1: error: stray '\302' in program sortprime.cpp:17:1: error: stray '\240' in program sortprime.cpp:17:1: error: stray '\302' in program sortprime.cpp:17:1: error: stray '\240' in program sortprime.cpp:17:1: error: stray '\302' in program sortprime.cpp:17:1: error: stray '\240' in program sortprime.cpp:18:1: error: stray '\302' in program for(i=1;i<=n;i++) ^ sortprime.cpp:18:1: error: stray '\240' in program sortprime.cpp:18:1: error: stray '\302' in program sortprime.cpp:18:1: error: stray '\240' in program sortprime.cpp:18:1: error: stray '\302' in program sortprime.cpp:18:1: error: stray '\240' in program sortprime.cpp:19:1: error: stray '\302' in program if(prim(v[i])==1) ^ sortprime.cpp:19:1: error: stray '\240' in program sortprime.cpp:19:1: error: stray '\302' in program sortprime.cpp:19:1: error: stray '\240' in program sortprime.cpp:19:1: error: stray '\302' in program sortprime.cpp:19:1: error: stray '\240' in program sortprime.cpp:19:1: error: stray '\302' in program sortprime.cpp:19:1: error: stray '\240' in program sortprime.cpp:19:1: error: stray '\302' in program sortprime.cpp:19:1: error: stray '\240' in program sortprime.cpp:19:1: error: stray '\302' in program sortprime.cpp:19:1: error: stray '\240' in program sortprime.cpp:19:1: error: stray '\302' in program sortprime.cpp:19:1: error: stray '\240' in program sortprime.cpp:20:1: error: stray '\302' in program cout<<v[i]<<" "; ^ sortprime.cpp:20:1: error: stray '\240' in program sortprime.cpp:20:1: error: stray '\302' in program sortprime.cpp:20:1: error: stray '\240' in program sortprime.cpp:20:1: error: stray '\302' in program sortprime.cpp:20:1: error: stray '\240' in program sortprime.cpp:21:1: error: stray '\302' in program return 0; ^ sortprime.cpp:21:1: error: stray '\240' in program sortprime.cpp:21:1: error: stray '\302' in program sortprime.cpp:21:1: error: stray '\240' in program sortprime.cpp:21:1: error: stray '\302' in program sortprime.cpp:21:1: error: stray '\240' in program
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema SortPrime 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ă.