#92
Proiecte
Cunoscând timpii de evaluare a n proiecte, să se stabilească ordinea de evaluare a acestora, astfel încât să se minimizeze timpul mediu de aşteptare a investitorilor care au depus aceste proiecte.
Problema | Proiecte | Operații I/O |
proiecte.in /proiecte.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #54012000 | Utilizator | |
Fișier | proiecte.cpp | Dimensiune | 649 B |
Data încărcării | 17 Noiembrie 2024, 20:30 | Scor / rezultat | Eroare de compilare |
proiecte.cpp:7:1: error: stray '\302' in program int p;}a[1001], aux; ^ proiecte.cpp:7:1: error: stray '\240' in program proiecte.cpp:7:1: error: stray '\302' in program proiecte.cpp:7:1: error: stray '\240' in program proiecte.cpp:7:1: error: stray '\302' in program proiecte.cpp:7:1: error: stray '\240' in program proiecte.cpp:7:1: error: stray '\302' in program proiecte.cpp:7:1: error: stray '\240' in program proiecte.cpp:7:1: error: stray '\302' in program proiecte.cpp:7:1: error: stray '\240' in program proiecte.cpp:7:1: error: stray '\302' in program proiecte.cpp:7:1: error: stray '\240' in program proiecte.cpp:7:1: error: stray '\302' in program proiecte.cpp:7:1: error: stray '\240' in program proiecte.cpp:7:1: error: stray '\302' in program proiecte.cpp:7:1: error: stray '\240' in program proiecte.cpp:7:1: error: stray '\302' in program proiecte.cpp:7:1: error: stray '\240' in program proiecte.cpp:10:1: error: stray '\302' in program fin>>n; ^ proiecte.cpp:10:1: error: stray '\240' in program proiecte.cpp:11:1: error: stray '\302' in program for(i=0;i<n;i++) ^ proiecte.cpp:11:1: error: stray '\240' in program proiecte.cpp:13:1: error: stray '\302' in program fin>>a[i].t; ^ proiecte.cpp:13:1: error: stray '\240' in program proiecte.cpp:13:1: error: stray '\302' in program proiecte.cpp:13:1: error: stray '\240' in program proiecte.cpp:16:1: error: stray '\302' in program do{ ^ proiecte.cpp:16:1: error: stray '\240' in program proiecte.cpp:16:1: error: stray '\302' in program proiecte.cpp:16:1: error: stray '\240' in program proiecte.cpp:17:1: error: stray '\302' in program ord=0; ^ proiecte.cpp:17:1: error: stray '\240' in program proiecte.cpp:17:1: error: stray '\302' in program proiecte.cpp:17:1: error: stray '\240' in program proiecte.cpp:17:1: error: stray '\302' in program proiecte.cpp:17:1: error: stray '\240' in program proiecte.cpp:17:1: error: stray '\302' in program proiecte.cpp:17:1: error: stray '\240' in program proiecte.cpp:18:1: error: stray '\302' in program for(i=0; i<n-1; i++) ^ proiecte.cpp:18:1: error: stray '\240' in program proiecte.cpp:18:1: error: stray '\302' in program proiecte.cpp:18:1: error: stray '\240' in program proiecte.cpp:18:1: error: stray '\302' in program proiecte.cpp:18:1: error: stray '\240' in program proiecte.cpp:18:1: error: stray '\302' in program proiecte.cpp:18:1: error: stray '\240' in program proiecte.cpp:19:1: error: stray '\302' in program if(a[i].t>a[i+1].t) ^ proiecte.cpp:19:1: error: stray '\240' in program proiecte.cpp:19:1: error: stray '\302' in program proiecte.cpp:19:1: error: stray '\240' in program proiecte.cpp:19:1: error: stray '\302' in program proiecte.cpp:19:1: error: stray '\240' in program proiecte.cpp:19:1: error: stray '\302' in program proiecte.cpp:19:1: error: stray '\240' in program proiecte.cpp:19:1: error: stray '\302' in program proiecte.cpp:19:1: error: stray '\240' in program proiecte.cpp:19:1: error: stray '\302' in program proiecte.cpp:19:1: error: stray '\240' in program proiecte.cpp:20:1: error: stray '\302' in program { ^ proiecte.cpp:20:1: error: stray '\240' in program proiecte.cpp:20:1: error: stray '\302' in program proiecte.cpp:20:1: error: stray '\240' in program proiecte.cpp:20:1: error: stray '\302' in program proiecte.cpp:20:1: error: stray '\240' in program proiecte.cpp:20:1: error: stray '\302' in program proiecte.cpp:20:1: error: stray '\240' in program proiecte.cpp:21:1: error: stray '\302' in program aux=a[i]; ^ proiecte.cpp:21:1: error: stray '\240' in program proiecte.cpp:21:1: error: stray '\302' in program proiecte.cpp:21:1: error: stray '\240' in program proiecte.cpp:21:1: error: stray '\302' in program proiecte.cpp:21:1: error: stray '\240' in program proiecte.cpp:21:1: error: stray '\302' in program proiecte.cpp:21:1: error: stray '\240' in program proiecte.cpp:21:1: error: stray '\302' in program proiecte.cpp:21:1: error: stray '\240' in program proiecte.cpp:21:1: error: stray '\302' in program proiecte.cpp:21:1: error: stray '\240' in program proiecte.cpp:22:1: error: stray '\302' in program a[i]=a[i+1]; ^ proiecte.cpp:22:1: error: stray '\240' in program proiecte.cpp:22:1: error: stray '\302' in program proiecte.cpp:22:1: error: stray '\240' in program proiecte.cpp:22:1: error: stray '\302' in program proiecte.cpp:22:1: error: stray '\240' in program proiecte.cpp:22:1: error: stray '\302' in program proiecte.cpp:22:1: error: stray '\240' in program proiecte.cpp:22:1: error: stray '\302' in program proiecte.cpp:22:1: error: stray '\240' in program proiecte.cpp:22:1: error: stray '\302' in program proiecte.cpp:22:1: error: stray '\240' in program proiecte.cpp:23:1: error: stray '\302' in program a[i+1]=aux; ^ proiecte.cpp:23:1: error: stray '\240' in program proiecte.cpp:23:1: error: stray '\302' in program proiecte.cpp:23:1: error: stray '\240' in program proiecte.cpp:23:1: error: stray '\302' in program proiecte.cpp:23:1: error: stray '\240' in program proiecte.cpp:23:1: error: stray '\302' in program proiecte.cpp:23:1: error: stray '\240' in program proiecte.cpp:23:1: error: stray '\302' in program proiecte.cpp:23:1: error: stray '\240' in program proiecte.cpp:23:1: error: stray '\302' in program proiecte.cpp:23:1: error: stray '\240' in program proiecte.cpp:24:1: error: stray '\302' in program ord=1; ^ proiecte.cpp:24:1: error: stray '\240' in program proiecte.cpp:24:1: error: stray '\302' in program proiecte.cpp:24:1: error: stray '\240' in program proiecte.cpp:24:1: error: stray '\302' in program proiecte.cpp:24:1: error: stray '\240' in program proiecte.cpp:24:1: error: stray '\302' in program proiecte.cpp:24:1: error: stray '\240' in program proiecte.cpp:24:1: error: stray '\302' in program proiecte.cpp:24:1: error: stray '\240' in program proiecte.cpp:24:1: error: stray '\302' in program proiecte.cpp:24:1: error: stray '\240' in program proiecte.cpp:25:1: error: stray '\302' in program } ^ proiecte.cpp:25:1: error: stray '\240' in program proiecte.cpp:25:1: error: stray '\302' in program proiecte.cpp:25:1: error: stray '\240' in program proiecte.cpp:25:1: error: stray '\302' in program proiecte.cpp:25:1: error: stray '\240' in program proiecte.cpp:25:1: error: stray '\302' in program proiecte.cpp:25:1: error: stray '\240' in program proiecte.cpp:26:1: error: stray '\302' in program }while(ord==1); ^ proiecte.cpp:26:1: error: stray '\240' in program proiecte.cpp:26:1: error: stray '\302' in program proiecte.cpp:26:1: error: stray '\240' in program proiecte.cpp:27:1: error: stray '\302' in program for(i=0; i<n; i++) ^ proiecte.cpp:27:1: error: stray '\240' in program proiecte.cpp:28:1: error: stray '\302' in program fout<<a[i].p<<' '; ^ proiecte.cpp:28:1: error: stray '\240' in program proiecte.cpp:28:1: error: stray '\302' in program proiecte.cpp:28:1: error: stray '\240' in program proiecte.cpp:29:1: error: stray '\302' in program return 0; ^ proiecte.cpp:29:1: error: stray '\240' in program proiecte.cpp:29:1: error: stray '\302' in program proiecte.cpp:29:1: error: stray '\240' in program
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Proiecte 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ă.