Detalii evaluare #9156897

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 #9156897 Utilizator Alberto Serbano (robertomental)
Fișier proiecte.cpp Dimensiune 573 B
Data încărcării 12 Aprilie 2018, 21:37 Scor / rezultat Eroare de compilare

Evaluare


Mesaj compilare

proiecte.cpp:1:9: error: #include expects "FILENAME" or <FILENAME>
 #include <bits/stdc++.h>

         ^
proiecte.cpp:2:1: error: stray '\302' in program
 using namespace std;

 ^
proiecte.cpp:2:1: error: stray '\240' in program
proiecte.cpp:2:1: error: stray '\302' in program
proiecte.cpp:2:1: error: stray '\240' in program
proiecte.cpp:3:1: error: stray '\302' in program
 ifstream fin("proiecte.in");

 ^
proiecte.cpp:3:1: error: stray '\240' in program
proiecte.cpp:4:1: error: stray '\302' in program
 ofstream fout("proiecte.out");

 ^
proiecte.cpp:4:1: error: stray '\240' in program
proiecte.cpp:5:1: error: stray '\302' in program
 int main()

 ^
proiecte.cpp:5:1: error: stray '\240' in program
proiecte.cpp:7:1: error: stray '\302' in program
     int a[1001],n,i,min,max,j;

 ^
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:8:1: error: stray '\302' in program
     fin>>n;

 ^
proiecte.cpp:8:1: error: stray '\240' in program
proiecte.cpp:8:1: error: stray '\302' in program
proiecte.cpp:8:1: error: stray '\240' in program
proiecte.cpp:8:1: error: stray '\302' in program
proiecte.cpp:8:1: error: stray '\240' in program
proiecte.cpp:8:1: error: stray '\302' in program
proiecte.cpp:8:1: error: stray '\240' in program
proiecte.cpp:9:1: error: stray '\302' in program
     for(i=1;i<=n;i++)

 ^
proiecte.cpp:9:1: error: stray '\240' in program
proiecte.cpp:9:1: error: stray '\302' in program
proiecte.cpp:9:1: error: stray '\240' in program
proiecte.cpp:9:1: error: stray '\302' in program
proiecte.cpp:9:1: error: stray '\240' in program
proiecte.cpp:9:1: error: stray '\302' in program
proiecte.cpp:9:1: error: stray '\240' in program
proiecte.cpp:10:1: error: stray '\302' in program
     fin >>a[i];

 ^
proiecte.cpp:10:1: error: stray '\240' in program
proiecte.cpp:10:1: error: stray '\302' in program
proiecte.cpp:10:1: error: stray '\240' in program
proiecte.cpp:10:1: error: stray '\302' in program
proiecte.cpp:10:1: error: stray '\240' in program
proiecte.cpp:10:1: error: stray '\302' in program
proiecte.cpp:10:1: error: stray '\240' in program
proiecte.cpp:10:1: error: stray '\302' in program
proiecte.cpp:10:1: error: stray '\240' in program
proiecte.cpp:11:1: error: stray '\302' in program
     min=a[0];

 ^
proiecte.cpp:11:1: error: stray '\240' in program
proiecte.cpp:11:1: error: stray '\302' in program
proiecte.cpp:11:1: error: stray '\240' in program
proiecte.cpp:11:1: error: stray '\302' in program
proiecte.cpp:11:1: error: stray '\240' in program
proiecte.cpp:11:1: error: stray '\302' in program
proiecte.cpp:11:1: error: stray '\240' in program
proiecte.cpp:12:1: error: stray '\302' in program
     max=a[0];

 ^
proiecte.cpp:12:1: error: stray '\240' in program
proiecte.cpp:12:1: error: stray '\302' in program
proiecte.cpp:12:1: error: stray '\240' in program
proiecte.cpp:12:1: error: stray '\302' in program
proiecte.cpp:12:1: error: stray '\240' in program
proiecte.cpp:12:1: error: stray '\302' in program
proiecte.cpp:12:1: error: stray '\240' in program
proiecte.cpp:13:1: error: stray '\302' in program
     for(i=1;i<=n;i++)

 ^
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:13:1: error: stray '\302' in program
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:14:1: error: stray '\302' in program
     {

 ^
proiecte.cpp:14:1: error: stray '\240' in program
proiecte.cpp:14:1: error: stray '\302' in program
proiecte.cpp:14:1: error: stray '\240' in program
proiecte.cpp:14:1: error: stray '\302' in program
proiecte.cpp:14:1: error: stray '\240' in program
proiecte.cpp:14:1: error: stray '\302' in program
proiecte.cpp:14:1: error: stray '\240' in program
proiecte.cpp:15:1: error: stray '\302' in program
         if(a[i]>max) max=a[i];

 ^
proiecte.cpp:15:1: error: stray '\240' in program
proiecte.cpp:15:1: error: stray '\302' in program
proiecte.cpp:15:1: error: stray '\240' in program
proiecte.cpp:15:1: error: stray '\302' in program
proiecte.cpp:15:1: error: stray '\240' in program
proiecte.cpp:15:1: error: stray '\302' in program
proiecte.cpp:15:1: error: stray '\240' in program
proiecte.cpp:15:1: error: stray '\302' in program
proiecte.cpp:15:1: error: stray '\240' in program
proiecte.cpp:15:1: error: stray '\302' in program
proiecte.cpp:15:1: error: stray '\240' in program
proiecte.cpp:15:1: error: stray '\302' in program
proiecte.cpp:15:1: error: stray '\240' in program
proiecte.cpp:15:1: error: stray '\302' in program
proiecte.cpp:15:1: error: stray '\240' in program
proiecte.cpp:15:1: error: stray '\302' in program
proiecte.cpp:15:1: error: stray '\240' in program
proiecte.cpp:16:1: error: stray '\302' in program
         if(a[i]<min) min=a[i];

 ^
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:16:1: error: stray '\302' in program
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:16:1: error: stray '\302' in program
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:16:1: error: stray '\302' in program
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: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
     }

 ^
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:19:1: error: stray '\302' in program
   for(j=min;j<=max;j++)

 ^
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
        for(i=1;i<=n;i++)

 ^
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: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
             if(j==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: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: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
                  fout<<i<<" ";

 ^
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: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: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: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
     return 0;

 ^
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:3:1: error: 'ifstream' does not name a type
 ifstream fin("proiecte.in");

 ^
proiecte.cpp:4:1: error: 'ofstream' does not name a type
 ofstream fout("proiecte.out");

 ^
proiecte.cpp: In function 'int main()':
proiecte.cpp:8:9: error: 'fin' was not declared in this scope
     fin>>n;

         ^
proiecte.cpp:22:35: error: 'fout' was not declared in this scope
                  fout<<i<<" ";

                                   ^

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