Detalii evaluare #9240872

Rezumat problemă

Gigel este un cântăreț începător. El știe deja să cânte n piese, și pentru fiecare piesă se cunoaște durata, exprimată în minute și secunde. Gigel va participa la o emisiune de televiziune, unde va putea cânta timp de T secunde. El vrea să cânte cât mai multe piese, pentru a-și demonstra talentul deosebit.

Ajutați-l să aleagă piesele pentru emisiune, și vă va răsplăti cu un autograf.

Detalii

Problema Concert Operații I/O concert.in/concert.out
Limita timp 0.1 secunde Limita memorie Total: 64 MB / Stivă 8 MB
Id soluție #9240872 Utilizator Burcea Robert Ionut (zoomosbest)
Fișier concert.cpp Dimensiune 900 B
Data încărcării 19 Aprilie 2018, 09:34 Scor / rezultat Eroare de compilare

Evaluare


Mesaj compilare

concert.cpp:3:1: error: stray '\302' in program
 using namespace std;

 ^
concert.cpp:3:1: error: stray '\240' in program
concert.cpp:3:1: error: stray '\302' in program
concert.cpp:3:1: error: stray '\240' in program
concert.cpp:4:1: error: stray '\302' in program
 ifstream f("concert.in");

 ^
concert.cpp:4:1: error: stray '\240' in program
concert.cpp:5:1: error: stray '\302' in program
 ofstream g("concert.out");

 ^
concert.cpp:5:1: error: stray '\240' in program
concert.cpp:6:1: error: stray '\302' in program
 int n,T,nr,s[101];

 ^
concert.cpp:6:1: error: stray '\240' in program
concert.cpp:7:1: error: stray '\302' in program
 struct art {int t,ord;} x[101];

 ^
concert.cpp:7:1: error: stray '\240' in program
concert.cpp:7:1: error: stray '\302' in program
concert.cpp:7:1: error: stray '\240' in program
concert.cpp:7:1: error: stray '\302' in program
concert.cpp:7:1: error: stray '\240' in program
concert.cpp:7:1: error: stray '\302' in program
concert.cpp:7:1: error: stray '\240' in program
concert.cpp:8:1: error: stray '\302' in program
 int cmp(art A, art B) {return A.t<=B.t;}

 ^
concert.cpp:8:1: error: stray '\240' in program
concert.cpp:8:1: error: stray '\302' in program
concert.cpp:8:1: error: stray '\240' in program
concert.cpp:8:1: error: stray '\302' in program
concert.cpp:8:1: error: stray '\240' in program
concert.cpp:8:1: error: stray '\302' in program
concert.cpp:8:1: error: stray '\240' in program
concert.cpp:8:1: error: stray '\302' in program
concert.cpp:8:1: error: stray '\240' in program
concert.cpp:8:1: error: stray '\302' in program
concert.cpp:8:1: error: stray '\240' in program
concert.cpp:9:1: error: stray '\302' in program
 int main()

 ^
concert.cpp:9:1: error: stray '\240' in program
concert.cpp:10:1: error: stray '\302' in program
 {   f>>n>>T;

 ^
concert.cpp:10:1: error: stray '\240' in program
concert.cpp:10:1: error: stray '\302' in program
concert.cpp:10:1: error: stray '\240' in program
concert.cpp:10:1: error: stray '\302' in program
concert.cpp:10:1: error: stray '\240' in program
concert.cpp:11:1: error: stray '\302' in program
     int i;

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

 ^
concert.cpp:12:1: error: stray '\240' in program
concert.cpp:12:1: error: stray '\302' in program
concert.cpp:12:1: error: stray '\240' in program
concert.cpp:12:1: error: stray '\302' in program
concert.cpp:12:1: error: stray '\240' in program
concert.cpp:12:1: error: stray '\302' in program
concert.cpp:12:1: error: stray '\240' in program
concert.cpp:13:1: error: stray '\302' in program
     {   char v[7];

 ^
concert.cpp:13:1: error: stray '\240' in program
concert.cpp:13:1: error: stray '\302' in program
concert.cpp:13:1: error: stray '\240' in program
concert.cpp:13:1: error: stray '\302' in program
concert.cpp:13:1: error: stray '\240' in program
concert.cpp:13:1: error: stray '\302' in program
concert.cpp:13:1: error: stray '\240' in program
concert.cpp:13:1: error: stray '\302' in program
concert.cpp:13:1: error: stray '\240' in program
concert.cpp:13:1: error: stray '\302' in program
concert.cpp:13:1: error: stray '\240' in program
concert.cpp:13:1: error: stray '\302' in program
concert.cpp:13:1: error: stray '\240' in program
concert.cpp:13:1: error: stray '\302' in program
concert.cpp:13:1: error: stray '\240' in program
concert.cpp:14:1: error: stray '\302' in program
         f>>v;

 ^
concert.cpp:14:1: error: stray '\240' in program
concert.cpp:14:1: error: stray '\302' in program
concert.cpp:14:1: error: stray '\240' in program
concert.cpp:14:1: error: stray '\302' in program
concert.cpp:14:1: error: stray '\240' in program
concert.cpp:14:1: error: stray '\302' in program
concert.cpp:14:1: error: stray '\240' in program
concert.cpp:14:1: error: stray '\302' in program
concert.cpp:14:1: error: stray '\240' in program
concert.cpp:14:1: error: stray '\302' in program
concert.cpp:14:1: error: stray '\240' in program
concert.cpp:14:1: error: stray '\302' in program
concert.cpp:14:1: error: stray '\240' in program
concert.cpp:14:1: error: stray '\302' in program
concert.cpp:14:1: error: stray '\240' in program
concert.cpp:15:1: error: stray '\302' in program
         int j=0,a=0,b=0;

 ^
concert.cpp:15:1: error: stray '\240' in program
concert.cpp:15:1: error: stray '\302' in program
concert.cpp:15:1: error: stray '\240' in program
concert.cpp:15:1: error: stray '\302' in program
concert.cpp:15:1: error: stray '\240' in program
concert.cpp:15:1: error: stray '\302' in program
concert.cpp:15:1: error: stray '\240' in program
concert.cpp:15:1: error: stray '\302' in program
concert.cpp:15:1: error: stray '\240' in program
concert.cpp:15:1: error: stray '\302' in program
concert.cpp:15:1: error: stray '\240' in program
concert.cpp:15:1: error: stray '\302' in program
concert.cpp:15:1: error: stray '\240' in program
concert.cpp:15:1: error: stray '\302' in program
concert.cpp:15:1: error: stray '\240' in program
concert.cpp:15:1: error: stray '\302' in program
concert.cpp:15:1: error: stray '\240' in program
concert.cpp:16:1: error: stray '\302' in program
         while(v[j]!=':') a=a*10+v[j++]-'0';

 ^
concert.cpp:16:1: error: stray '\240' in program
concert.cpp:16:1: error: stray '\302' in program
concert.cpp:16:1: error: stray '\240' in program
concert.cpp:16:1: error: stray '\302' in program
concert.cpp:16:1: error: stray '\240' in program
concert.cpp:16:1: error: stray '\302' in program
concert.cpp:16:1: error: stray '\240' in program
concert.cpp:16:1: error: stray '\302' in program
concert.cpp:16:1: error: stray '\240' in program
concert.cpp:16:1: error: stray '\302' in program
concert.cpp:16:1: error: stray '\240' in program
concert.cpp:16:1: error: stray '\302' in program
concert.cpp:16:1: error: stray '\240' in program
concert.cpp:16:1: error: stray '\302' in program
concert.cpp:16:1: error: stray '\240' in program
concert.cpp:16:1: error: stray '\302' in program
concert.cpp:16:1: error: stray '\240' in program
concert.cpp:17:1: error: stray '\302' in program
         a*=60; j++;

 ^
concert.cpp:17:1: error: stray '\240' in program
concert.cpp:17:1: error: stray '\302' in program
concert.cpp:17:1: error: stray '\240' in program
concert.cpp:17:1: error: stray '\302' in program
concert.cpp:17:1: error: stray '\240' in program
concert.cpp:17:1: error: stray '\302' in program
concert.cpp:17:1: error: stray '\240' in program
concert.cpp:17:1: error: stray '\302' in program
concert.cpp:17:1: error: stray '\240' in program
concert.cpp:17:1: error: stray '\302' in program
concert.cpp:17:1: error: stray '\240' in program
concert.cpp:17:1: error: stray '\302' in program
concert.cpp:17:1: error: stray '\240' in program
concert.cpp:17:1: error: stray '\302' in program
concert.cpp:17:1: error: stray '\240' in program
concert.cpp:17:1: error: stray '\302' in program
concert.cpp:17:1: error: stray '\240' in program
concert.cpp:18:1: error: stray '\302' in program
         while(v[j]!='\0') b=b*10+v[j++]-'0';

 ^
concert.cpp:18:1: error: stray '\240' in program
concert.cpp:18:1: error: stray '\302' in program
concert.cpp:18:1: error: stray '\240' in program
concert.cpp:18:1: error: stray '\302' in program
concert.cpp:18:1: error: stray '\240' in program
concert.cpp:18:1: error: stray '\302' in program
concert.cpp:18:1: error: stray '\240' in program
concert.cpp:18:1: error: stray '\302' in program
concert.cpp:18:1: error: stray '\240' in program
concert.cpp:18:1: error: stray '\302' in program
concert.cpp:18:1: error: stray '\240' in program
concert.cpp:18:1: error: stray '\302' in program
concert.cpp:18:1: error: stray '\240' in program
concert.cpp:18:1: error: stray '\302' in program
concert.cpp:18:1: error: stray '\240' in program
concert.cpp:18:1: error: stray '\302' in program
concert.cpp:18:1: error: stray '\240' in program
concert.cpp:19:1: error: stray '\302' in program
         a+=b;

 ^
concert.cpp:19:1: error: stray '\240' in program
concert.cpp:19:1: error: stray '\302' in program
concert.cpp:19:1: error: stray '\240' in program
concert.cpp:19:1: error: stray '\302' in program
concert.cpp:19:1: error: stray '\240' in program
concert.cpp:19:1: error: stray '\302' in program
concert.cpp:19:1: error: stray '\240' in program
concert.cpp:19:1: error: stray '\302' in program
concert.cpp:19:1: error: stray '\240' in program
concert.cpp:19:1: error: stray '\302' in program
concert.cpp:19:1: error: stray '\240' in program
concert.cpp:19:1: error: stray '\302' in program
concert.cpp:19:1: error: stray '\240' in program
concert.cpp:19:1: error: stray '\302' in program
concert.cpp:19:1: error: stray '\240' in program
concert.cpp:20:1: error: stray '\302' in program
         x[i].t=a; x[i].ord=i;

 ^
concert.cpp:20:1: error: stray '\240' in program
concert.cpp:20:1: error: stray '\302' in program
concert.cpp:20:1: error: stray '\240' in program
concert.cpp:20:1: error: stray '\302' in program
concert.cpp:20:1: error: stray '\240' in program
concert.cpp:20:1: error: stray '\302' in program
concert.cpp:20:1: error: stray '\240' in program
concert.cpp:20:1: error: stray '\302' in program
concert.cpp:20:1: error: stray '\240' in program
concert.cpp:20:1: error: stray '\302' in program
concert.cpp:20:1: error: stray '\240' in program
concert.cpp:20:1: error: stray '\302' in program
concert.cpp:20:1: error: stray '\240' in program
concert.cpp:20:1: error: stray '\302' in program
concert.cpp:20:1: error: stray '\240' in program
concert.cpp:20:1: error: stray '\302' in program
concert.cpp:20:1: error: stray '\240' in program
concert.cpp:21:1: error: stray '\302' in program
     }

 ^
concert.cpp:21:1: error: stray '\240' in program
concert.cpp:21:1: error: stray '\302' in program
concert.cpp:21:1: error: stray '\240' in program
concert.cpp:21:1: error: stray '\302' in program
concert.cpp:21:1: error: stray '\240' in program
concert.cpp:21:1: error: stray '\302' in program
concert.cpp:21:1: error: stray '\240' in program
concert.cpp:22:1: error: stray '\302' in program
     sort(x+1,x+n+1,cmp);

 ^
concert.cpp:22:1: error: stray '\240' in program
concert.cpp:22:1: error: stray '\302' in program
concert.cpp:22:1: error: stray '\240' in program
concert.cpp:22:1: error: stray '\302' in program
concert.cpp:22:1: error: stray '\240' in program
concert.cpp:22:1: error: stray '\302' in program
concert.cpp:22:1: error: stray '\240' in program
concert.cpp:23:1: error: stray '\302' in program
     i=1;

 ^
concert.cpp:23:1: error: stray '\240' in program
concert.cpp:23:1: error: stray '\302' in program
concert.cpp:23:1: error: stray '\240' in program
concert.cpp:23:1: error: stray '\302' in program
concert.cpp:23:1: error: stray '\240' in program
concert.cpp:23:1: error: stray '\302' in program
concert.cpp:23:1: error: stray '\240' in program
concert.cpp:24:1: error: stray '\302' in program
     while(i<=n and x[i].t<=T) {s[++nr]=x[i].ord; T-=x[i].t; ++i;}

 ^
concert.cpp:24:1: error: stray '\240' in program
concert.cpp:24:1: error: stray '\302' in program
concert.cpp:24:1: error: stray '\240' in program
concert.cpp:24:1: error: stray '\302' in program
concert.cpp:24:1: error: stray '\240' in program
concert.cpp:24:1: error: stray '\302' in program
concert.cpp:24:1: error: stray '\240' in program
concert.cpp:24:1: error: stray '\302' in program
concert.cpp:24:1: error: stray '\240' in program
concert.cpp:24:1: error: stray '\302' in program
concert.cpp:24:1: error: stray '\240' in program
concert.cpp:24:1: error: stray '\302' in program
concert.cpp:24:1: error: stray '\240' in program
concert.cpp:24:1: error: stray '\302' in program
concert.cpp:24:1: error: stray '\240' in program
concert.cpp:24:1: error: stray '\302' in program
concert.cpp:24:1: error: stray '\240' in program
concert.cpp:25:1: error: stray '\302' in program
     g<<nr<<'\n';

 ^
concert.cpp:25:1: error: stray '\240' in program
concert.cpp:25:1: error: stray '\302' in program
concert.cpp:25:1: error: stray '\240' in program
concert.cpp:25:1: error: stray '\302' in program
concert.cpp:25:1: error: stray '\240' in program
concert.cpp:25:1: error: stray '\302' in program
concert.cpp:25:1: error: stray '\240' in program
concert.cpp:26:1: error: stray '\302' in program
     for(i=1;i<=nr;i++) g<<s[i]<<' ';

 ^
concert.cpp:26:1: error: stray '\240' in program
concert.cpp:26:1: error: stray '\302' in program
concert.cpp:26:1: error: stray '\240' in program
concert.cpp:26:1: error: stray '\302' in program
concert.cpp:26:1: error: stray '\240' in program
concert.cpp:26:1: error: stray '\302' in program
concert.cpp:26:1: error: stray '\240' in program
concert.cpp:26:1: error: stray '\302' in program
concert.cpp:26:1: error: stray '\240' in program
concert.cpp:26:38: warning: multi-character character constant [-Wmultichar]
     for(i=1;i<=nr;i++) g<<s[i]<<' ';

                                      ^
concert.cpp:27:1: error: stray '\302' in program
     g.close(); return 0;

 ^
concert.cpp:27:1: error: stray '\240' in program
concert.cpp:27:1: error: stray '\302' in program
concert.cpp:27:1: error: stray '\240' in program
concert.cpp:27:1: error: stray '\302' in program
concert.cpp:27:1: error: stray '\240' in program
concert.cpp:27:1: error: stray '\302' in program
concert.cpp:27:1: error: stray '\240' in program
concert.cpp:27:1: error: stray '\302' in program
concert.cpp:27:1: error: stray '\240' in program
concert.cpp:27:1: error: stray '\302' in program
concert.cpp:27:1: error: stray '\240' in program
concert.cpp:31:1: error: stray '\310' in program
 Citește mai multe pe Brainly.ro - https://brainly.ro/tema/4082809#readmore
 ^
concert.cpp:31:1: error: stray '\231' in program
concert.cpp:31:1: error: 'Cite' does not name a type

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