#509
Ordonare
Să se scrie un program care ordonează crescător elementele unui vector.
Problema | Ordonare | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #16145726 | Utilizator | |
Fișier | ordonare.cpp | Dimensiune | 426 B |
Data încărcării | 06 Iunie 2019, 22:18 | Scor / rezultat | Eroare de compilare |
ordonare.cpp:1:9: error: #include expects "FILENAME" or <FILENAME> #include <iostream> ^ ordonare.cpp:2:1: error: stray '\302' in program using namespace std; ^ ordonare.cpp:2:1: error: stray '\240' in program ordonare.cpp:2:1: error: stray '\302' in program ordonare.cpp:2:1: error: stray '\240' in program ordonare.cpp:4:1: error: stray '\302' in program int main() ^ ordonare.cpp:4:1: error: stray '\240' in program ordonare.cpp:6:1: error: stray '\302' in program int n,minim,maxim=0,i; ^ ordonare.cpp:6:1: error: stray '\240' in program ordonare.cpp:6:1: error: stray '\302' in program ordonare.cpp:6:1: error: stray '\240' in program ordonare.cpp:6:1: error: stray '\302' in program ordonare.cpp:6:1: error: stray '\240' in program ordonare.cpp:6:1: error: stray '\302' in program ordonare.cpp:6:1: error: stray '\240' in program ordonare.cpp:6:1: error: stray '\302' in program ordonare.cpp:6:1: error: stray '\240' in program ordonare.cpp:7:1: error: stray '\302' in program cin>>n; ^ ordonare.cpp:7:1: error: stray '\240' in program ordonare.cpp:7:1: error: stray '\302' in program ordonare.cpp:7:1: error: stray '\240' in program ordonare.cpp:7:1: error: stray '\302' in program ordonare.cpp:7:1: error: stray '\240' in program ordonare.cpp:7:1: error: stray '\302' in program ordonare.cpp:7:1: error: stray '\240' in program ordonare.cpp:8:1: error: stray '\302' in program int v[n]; ^ ordonare.cpp:8:1: error: stray '\240' in program ordonare.cpp:8:1: error: stray '\302' in program ordonare.cpp:8:1: error: stray '\240' in program ordonare.cpp:8:1: error: stray '\302' in program ordonare.cpp:8:1: error: stray '\240' in program ordonare.cpp:8:1: error: stray '\302' in program ordonare.cpp:8:1: error: stray '\240' in program ordonare.cpp:8:1: error: stray '\302' in program ordonare.cpp:8:1: error: stray '\240' in program ordonare.cpp:9:1: error: stray '\302' in program minim=1000000; ^ ordonare.cpp:9:1: error: stray '\240' in program ordonare.cpp:9:1: error: stray '\302' in program ordonare.cpp:9:1: error: stray '\240' in program ordonare.cpp:9:1: error: stray '\302' in program ordonare.cpp:9:1: error: stray '\240' in program ordonare.cpp:9:1: error: stray '\302' in program ordonare.cpp:9:1: error: stray '\240' in program ordonare.cpp:10:1: error: stray '\302' in program for(i=0;i<n;i++) ^ ordonare.cpp:10:1: error: stray '\240' in program ordonare.cpp:10:1: error: stray '\302' in program ordonare.cpp:10:1: error: stray '\240' in program ordonare.cpp:10:1: error: stray '\302' in program ordonare.cpp:10:1: error: stray '\240' in program ordonare.cpp:10:1: error: stray '\302' in program ordonare.cpp:10:1: error: stray '\240' in program ordonare.cpp:11:1: error: stray '\302' in program { ^ ordonare.cpp:11:1: error: stray '\240' in program ordonare.cpp:11:1: error: stray '\302' in program ordonare.cpp:11:1: error: stray '\240' in program ordonare.cpp:11:1: error: stray '\302' in program ordonare.cpp:11:1: error: stray '\240' in program ordonare.cpp:11:1: error: stray '\302' in program ordonare.cpp:11:1: error: stray '\240' in program ordonare.cpp:12:1: error: stray '\302' in program cin>>v[i]; ^ ordonare.cpp:12:1: error: stray '\240' in program ordonare.cpp:12:1: error: stray '\302' in program ordonare.cpp:12:1: error: stray '\240' in program ordonare.cpp:12:1: error: stray '\302' in program ordonare.cpp:12:1: error: stray '\240' in program ordonare.cpp:12:1: error: stray '\302' in program ordonare.cpp:12:1: error: stray '\240' in program ordonare.cpp:12:1: error: stray '\302' in program ordonare.cpp:12:1: error: stray '\240' in program ordonare.cpp:12:1: error: stray '\302' in program ordonare.cpp:12:1: error: stray '\240' in program ordonare.cpp:12:1: error: stray '\302' in program ordonare.cpp:12:1: error: stray '\240' in program ordonare.cpp:12:1: error: stray '\302' in program ordonare.cpp:12:1: error: stray '\240' in program ordonare.cpp:13:1: error: stray '\302' in program if(maxim<v[i]) ^ ordonare.cpp:13:1: error: stray '\240' in program ordonare.cpp:13:1: error: stray '\302' in program ordonare.cpp:13:1: error: stray '\240' in program ordonare.cpp:13:1: error: stray '\302' in program ordonare.cpp:13:1: error: stray '\240' in program ordonare.cpp:13:1: error: stray '\302' in program ordonare.cpp:13:1: error: stray '\240' in program ordonare.cpp:13:1: error: stray '\302' in program ordonare.cpp:13:1: error: stray '\240' in program ordonare.cpp:13:1: error: stray '\302' in program ordonare.cpp:13:1: error: stray '\240' in program ordonare.cpp:13:1: error: stray '\302' in program ordonare.cpp:13:1: error: stray '\240' in program ordonare.cpp:13:1: error: stray '\302' in program ordonare.cpp:13:1: error: stray '\240' in program ordonare.cpp:14:1: error: stray '\302' in program maxim=v[i]; ^ ordonare.cpp:14:1: error: stray '\240' in program ordonare.cpp:14:1: error: stray '\302' in program ordonare.cpp:14:1: error: stray '\240' in program ordonare.cpp:14:1: error: stray '\302' in program ordonare.cpp:14:1: error: stray '\240' in program ordonare.cpp:14:1: error: stray '\302' in program ordonare.cpp:14:1: error: stray '\240' in program ordonare.cpp:14:1: error: stray '\302' in program ordonare.cpp:14:1: error: stray '\240' in program ordonare.cpp:14:1: error: stray '\302' in program ordonare.cpp:14:1: error: stray '\240' in program ordonare.cpp:14:1: error: stray '\302' in program ordonare.cpp:14:1: error: stray '\240' in program ordonare.cpp:14:1: error: stray '\302' in program ordonare.cpp:14:1: error: stray '\240' in program ordonare.cpp:14:1: error: stray '\302' in program ordonare.cpp:14:1: error: stray '\240' in program ordonare.cpp:14:1: error: stray '\302' in program ordonare.cpp:14:1: error: stray '\240' in program ordonare.cpp:14:1: error: stray '\302' in program ordonare.cpp:14:1: error: stray '\240' in program ordonare.cpp:14:1: error: stray '\302' in program ordonare.cpp:14:1: error: stray '\240' in program ordonare.cpp:15:1: error: stray '\302' in program if(minim>v[i]) ^ ordonare.cpp:15:1: error: stray '\240' in program ordonare.cpp:15:1: error: stray '\302' in program ordonare.cpp:15:1: error: stray '\240' in program ordonare.cpp:15:1: error: stray '\302' in program ordonare.cpp:15:1: error: stray '\240' in program ordonare.cpp:15:1: error: stray '\302' in program ordonare.cpp:15:1: error: stray '\240' in program ordonare.cpp:15:1: error: stray '\302' in program ordonare.cpp:15:1: error: stray '\240' in program ordonare.cpp:15:1: error: stray '\302' in program ordonare.cpp:15:1: error: stray '\240' in program ordonare.cpp:15:1: error: stray '\302' in program ordonare.cpp:15:1: error: stray '\240' in program ordonare.cpp:15:1: error: stray '\302' in program ordonare.cpp:15:1: error: stray '\240' in program ordonare.cpp:16:1: error: stray '\302' in program minim=v[i]; ^ ordonare.cpp:16:1: error: stray '\240' in program ordonare.cpp:16:1: error: stray '\302' in program ordonare.cpp:16:1: error: stray '\240' in program ordonare.cpp:16:1: error: stray '\302' in program ordonare.cpp:16:1: error: stray '\240' in program ordonare.cpp:16:1: error: stray '\302' in program ordonare.cpp:16:1: error: stray '\240' in program ordonare.cpp:16:1: error: stray '\302' in program ordonare.cpp:16:1: error: stray '\240' in program ordonare.cpp:16:1: error: stray '\302' in program ordonare.cpp:16:1: error: stray '\240' in program ordonare.cpp:16:1: error: stray '\302' in program ordonare.cpp:16:1: error: stray '\240' in program ordonare.cpp:16:1: error: stray '\302' in program ordonare.cpp:16:1: error: stray '\240' in program ordonare.cpp:16:1: error: stray '\302' in program ordonare.cpp:16:1: error: stray '\240' in program ordonare.cpp:16:1: error: stray '\302' in program ordonare.cpp:16:1: error: stray '\240' in program ordonare.cpp:16:1: error: stray '\302' in program ordonare.cpp:16:1: error: stray '\240' in program ordonare.cpp:16:1: error: stray '\302' in program ordonare.cpp:16:1: error: stray '\240' in program ordonare.cpp:17:1: error: stray '\302' in program } ^ ordonare.cpp:17:1: error: stray '\240' in program ordonare.cpp:17:1: error: stray '\302' in program ordonare.cpp:17:1: error: stray '\240' in program ordonare.cpp:17:1: error: stray '\302' in program ordonare.cpp:17:1: error: stray '\240' in program ordonare.cpp:17:1: error: stray '\302' in program ordonare.cpp:17:1: error: stray '\240' in program ordonare.cpp:18:1: error: stray '\302' in program cout<<minim<<" "<<maxim; ^ ordonare.cpp:18:1: error: stray '\240' in program ordonare.cpp:18:1: error: stray '\302' in program ordonare.cpp:18:1: error: stray '\240' in program ordonare.cpp:18:1: error: stray '\302' in program ordonare.cpp:18:1: error: stray '\240' in program ordonare.cpp:18:1: error: stray '\302' in program ordonare.cpp:18:1: error: stray '\240' in program ordonare.cpp:19:1: error: stray '\302' in program return 0; ^ ordonare.cpp:19:1: error: stray '\240' in program ordonare.cpp:19:1: error: stray '\302' in program ordonare.cpp:19:1: error: stray '\240' in program ordonare.cpp: In function 'int main()': ordonare.cpp:7:9: error: 'cin' was not declared in this scope cin>>n; ^ ordonare.cpp:18:9: error: 'cout' was not declared in this scope cout<<minim<<" "<<maxim; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Ordonare 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ă.