Detalii evaluare #54011960

Rezumat problemă

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.

Detalii

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 #54011960 Utilizator Cojocaru Laura (Laura12)
Fișier proiecte.cpp Dimensiune 647 B
Data încărcării 17 Noiembrie 2024, 20:28 Scor / rezultat Eroare de compilare

Evaluare


Mesaj 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
     f>>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
proiecte.cpp: In function 'int main()':
proiecte.cpp:13:7: error: 'f' was not declared in this scope
     f>>a[i].t;

       ^

Cum funcționează evaluarea?

www.pbinfo.ro permite evaluarea a două tipuri de probleme:

  • probleme la care rezolvarea presupune scrierea unui program complet
  • probleme la care rezolvarea presupune scrierea unei secvențe de program - câteva instrucțiuni, o listă de declarații, una sau mai multe funcții, etc.

Problema Proiecte face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:

  • Programul sursă este compilat folosind compilatorul corespunzător. Dacă în urma compilării se obțin erori sau avertismente, acestea sunt afișate în această pagină.
  • Dacă programul a fost compilat, executabilul obținut va fi rulat, furnizându-i-se unul sau mai multe seturi de date de intrare, în concordanță cu restricțiile specifice problemei. Pentru fiecare set de date se obține un anumit punctaj, în raport cu corectitudinea soluției tale.

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ă.