Detalii evaluare #53610079

Rezumat problemă

La un concurs de programare s-au înscris n elevi. Concursul se desfăşoară pe două secţiuni, secţiunea 1 pentru începători şi secţiunea 2 avansaţi. Proba de concurs se desfăşoară pe parcursul a 3 ore şi elevii au de rezolvat 2 probleme.
Fiecare problemă poate avea punctajul minim de 0 puncte şi punctajul maxim de 100 de puncte. Punctajul final al concurentului este format din suma punctajelor celor două probleme. Să se scrie un program care citeşte numărul de elevi înscrişi şi apoi date despre fiecare elev înscris (secţiunea la care s-a înscris, punctajul obţinut pentru prima problema şi punctajul obţinut pentru a două problemă) și rezolvă următoarele cerinţe:

1. Afișează mesajul DA dacă toţi cei N elevi înscrişi au reuşit să obţină un punctaj nenul la ambele probleme propuse, respectiv NU” în caz contrar.
2. Afişează pentru fiecare secţiune numărul de elevi înscrişi. Afişarea se va face în ordinea crescătoare a numărului secţiunii, prin perechi de numere de forma nr_secţiune nr_elevi.
3. Afişaţi pentru fiecare secţiune punctajul maxim obţinut şi numărul de elevi care au obţinut acest punctaj. Afişarea se va face în ordinea crescătoare a numărului secţiunii, prin triplete de numere de forma nr_secţiune punctaj_maxim nr_elevi. Ştiind ca premiile se acordă doar celor care au luat punctaj maxim, afişaţi şi numărul de premii care vor fi acordate.

Concursul EMPOWERSOFT, 2016

Detalii

Problema Concurs2 Operații I/O concurs2.in/concurs2.out
Limita timp 0.5 secunde Limita memorie Total: 2 MB / Stivă 2 MB
Id soluție #53610079 Utilizator Didier Kabongo (didier_2k08)
Fișier concurs2.cpp Dimensiune 1.26 KB
Data încărcării 06 Noiembrie 2024, 13:07 Scor / rezultat Eroare de compilare

Evaluare


Mesaj compilare

concurs2.cpp:10:2: error: stray '\302' in program
     int c, n, s, sp, p1, p2, i, n1=0, n2=0, max1=0, max2=0, k1=0, k2=0;

  ^
concurs2.cpp:10:2: error: stray '\240' in program
concurs2.cpp:10:2: error: stray '\302' in program
concurs2.cpp:10:2: error: stray '\240' in program
concurs2.cpp:11:2: error: stray '\302' in program
     bool ok=true;

  ^
concurs2.cpp:11:2: error: stray '\240' in program
concurs2.cpp:11:2: error: stray '\302' in program
concurs2.cpp:11:2: error: stray '\240' in program
concurs2.cpp:12:2: error: stray '\302' in program
     cin >> c >> n;

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

  ^
concurs2.cpp:13:2: error: stray '\240' in program
concurs2.cpp:13:2: error: stray '\302' in program
concurs2.cpp:13:2: error: stray '\240' in program
concurs2.cpp:14:2: error: stray '\302' in program
     {

  ^
concurs2.cpp:14:2: error: stray '\240' in program
concurs2.cpp:14:2: error: stray '\302' in program
concurs2.cpp:14:2: error: stray '\240' in program
concurs2.cpp:15:2: error: stray '\302' in program
         cin >> s >> p1 >> p2;

  ^
concurs2.cpp:15:2: error: stray '\240' in program
concurs2.cpp:15:2: error: stray '\302' in program
concurs2.cpp:15:2: error: stray '\240' in program
concurs2.cpp:15:2: error: stray '\302' in program
concurs2.cpp:15:2: error: stray '\240' in program
concurs2.cpp:15:2: error: stray '\302' in program
concurs2.cpp:15:2: error: stray '\240' in program
concurs2.cpp:15:2: error: stray '\302' in program
concurs2.cpp:15:2: error: stray '\240' in program
concurs2.cpp:15:2: error: stray '\302' in program
concurs2.cpp:15:2: error: stray '\240' in program
concurs2.cpp:16:2: error: stray '\302' in program
         if(s==1)

  ^
concurs2.cpp:16:2: error: stray '\240' in program
concurs2.cpp:16:2: error: stray '\302' in program
concurs2.cpp:16:2: error: stray '\240' in program
concurs2.cpp:16:2: error: stray '\302' in program
concurs2.cpp:16:2: error: stray '\240' in program
concurs2.cpp:16:2: error: stray '\302' in program
concurs2.cpp:16:2: error: stray '\240' in program
concurs2.cpp:16:2: error: stray '\302' in program
concurs2.cpp:16:2: error: stray '\240' in program
concurs2.cpp:16:2: error: stray '\302' in program
concurs2.cpp:16:2: error: stray '\240' in program
concurs2.cpp:17:2: error: stray '\302' in program
         {

  ^
concurs2.cpp:17:2: error: stray '\240' in program
concurs2.cpp:17:2: error: stray '\302' in program
concurs2.cpp:17:2: error: stray '\240' in program
concurs2.cpp:17:2: error: stray '\302' in program
concurs2.cpp:17:2: error: stray '\240' in program
concurs2.cpp:17:2: error: stray '\302' in program
concurs2.cpp:17:2: error: stray '\240' in program
concurs2.cpp:17:2: error: stray '\302' in program
concurs2.cpp:17:2: error: stray '\240' in program
concurs2.cpp:17:2: error: stray '\302' in program
concurs2.cpp:17:2: error: stray '\240' in program
concurs2.cpp:18:2: error: stray '\302' in program
             n1++;

  ^
concurs2.cpp:18:2: error: stray '\240' in program
concurs2.cpp:18:2: error: stray '\302' in program
concurs2.cpp:18:2: error: stray '\240' in program
concurs2.cpp:18:2: error: stray '\302' in program
concurs2.cpp:18:2: error: stray '\240' in program
concurs2.cpp:18:2: error: stray '\302' in program
concurs2.cpp:18:2: error: stray '\240' in program
concurs2.cpp:18:2: error: stray '\302' in program
concurs2.cpp:18:2: error: stray '\240' in program
concurs2.cpp:18:2: error: stray '\302' in program
concurs2.cpp:18:2: error: stray '\240' in program
concurs2.cpp:18:2: error: stray '\302' in program
concurs2.cpp:18:2: error: stray '\240' in program
concurs2.cpp:18:2: error: stray '\302' in program
concurs2.cpp:18:2: error: stray '\240' in program
concurs2.cpp:18:2: error: stray '\302' in program
concurs2.cpp:18:2: error: stray '\240' in program
concurs2.cpp:18:2: error: stray '\302' in program
concurs2.cpp:18:2: error: stray '\240' in program
concurs2.cpp:19:2: error: stray '\302' in program
             sp=p1+p2;

  ^
concurs2.cpp:19:2: error: stray '\240' in program
concurs2.cpp:19:2: error: stray '\302' in program
concurs2.cpp:19:2: error: stray '\240' in program
concurs2.cpp:19:2: error: stray '\302' in program
concurs2.cpp:19:2: error: stray '\240' in program
concurs2.cpp:19:2: error: stray '\302' in program
concurs2.cpp:19:2: error: stray '\240' in program
concurs2.cpp:19:2: error: stray '\302' in program
concurs2.cpp:19:2: error: stray '\240' in program
concurs2.cpp:19:2: error: stray '\302' in program
concurs2.cpp:19:2: error: stray '\240' in program
concurs2.cpp:19:2: error: stray '\302' in program
concurs2.cpp:19:2: error: stray '\240' in program
concurs2.cpp:19:2: error: stray '\302' in program
concurs2.cpp:19:2: error: stray '\240' in program
concurs2.cpp:19:2: error: stray '\302' in program
concurs2.cpp:19:2: error: stray '\240' in program
concurs2.cpp:19:2: error: stray '\302' in program
concurs2.cpp:19:2: error: stray '\240' in program
concurs2.cpp:20:2: error: stray '\302' in program
             if(sp>max1) max1=sp, k1=1;

  ^
concurs2.cpp:20:2: error: stray '\240' in program
concurs2.cpp:20:2: error: stray '\302' in program
concurs2.cpp:20:2: error: stray '\240' in program
concurs2.cpp:20:2: error: stray '\302' in program
concurs2.cpp:20:2: error: stray '\240' in program
concurs2.cpp:20:2: error: stray '\302' in program
concurs2.cpp:20:2: error: stray '\240' in program
concurs2.cpp:20:2: error: stray '\302' in program
concurs2.cpp:20:2: error: stray '\240' in program
concurs2.cpp:20:2: error: stray '\302' in program
concurs2.cpp:20:2: error: stray '\240' in program
concurs2.cpp:20:2: error: stray '\302' in program
concurs2.cpp:20:2: error: stray '\240' in program
concurs2.cpp:20:2: error: stray '\302' in program
concurs2.cpp:20:2: error: stray '\240' in program
concurs2.cpp:20:2: error: stray '\302' in program
concurs2.cpp:20:2: error: stray '\240' in program
concurs2.cpp:20:2: error: stray '\302' in program
concurs2.cpp:20:2: error: stray '\240' in program
concurs2.cpp:21:2: error: stray '\302' in program
             else if(sp==max1) k1++;

  ^
concurs2.cpp:21:2: error: stray '\240' in program
concurs2.cpp:21:2: error: stray '\302' in program
concurs2.cpp:21:2: error: stray '\240' in program
concurs2.cpp:21:2: error: stray '\302' in program
concurs2.cpp:21:2: error: stray '\240' in program
concurs2.cpp:21:2: error: stray '\302' in program
concurs2.cpp:21:2: error: stray '\240' in program
concurs2.cpp:21:2: error: stray '\302' in program
concurs2.cpp:21:2: error: stray '\240' in program
concurs2.cpp:21:2: error: stray '\302' in program
concurs2.cpp:21:2: error: stray '\240' in program
concurs2.cpp:21:2: error: stray '\302' in program
concurs2.cpp:21:2: error: stray '\240' in program
concurs2.cpp:21:2: error: stray '\302' in program
concurs2.cpp:21:2: error: stray '\240' in program
concurs2.cpp:21:2: error: stray '\302' in program
concurs2.cpp:21:2: error: stray '\240' in program
concurs2.cpp:21:2: error: stray '\302' in program
concurs2.cpp:21:2: error: stray '\240' in program
concurs2.cpp:22:2: error: stray '\302' in program
             if(p1==0 || p2==0) ok=false;

  ^
concurs2.cpp:22:2: error: stray '\240' in program
concurs2.cpp:22:2: error: stray '\302' in program
concurs2.cpp:22:2: error: stray '\240' in program
concurs2.cpp:22:2: error: stray '\302' in program
concurs2.cpp:22:2: error: stray '\240' in program
concurs2.cpp:22:2: error: stray '\302' in program
concurs2.cpp:22:2: error: stray '\240' in program
concurs2.cpp:22:2: error: stray '\302' in program
concurs2.cpp:22:2: error: stray '\240' in program
concurs2.cpp:22:2: error: stray '\302' in program
concurs2.cpp:22:2: error: stray '\240' in program
concurs2.cpp:22:2: error: stray '\302' in program
concurs2.cpp:22:2: error: stray '\240' in program
concurs2.cpp:22:2: error: stray '\302' in program
concurs2.cpp:22:2: error: stray '\240' in program
concurs2.cpp:22:2: error: stray '\302' in program
concurs2.cpp:22:2: error: stray '\240' in program
concurs2.cpp:22:2: error: stray '\302' in program
concurs2.cpp:22:2: error: stray '\240' in program
concurs2.cpp:23:2: error: stray '\302' in program
         }

  ^
concurs2.cpp:23:2: error: stray '\240' in program
concurs2.cpp:23:2: error: stray '\302' in program
concurs2.cpp:23:2: error: stray '\240' in program
concurs2.cpp:23:2: error: stray '\302' in program
concurs2.cpp:23:2: error: stray '\240' in program
concurs2.cpp:23:2: error: stray '\302' in program
concurs2.cpp:23:2: error: stray '\240' in program
concurs2.cpp:23:2: error: stray '\302' in program
concurs2.cpp:23:2: error: stray '\240' in program
concurs2.cpp:23:2: error: stray '\302' in program
concurs2.cpp:23:2: error: stray '\240' in program
concurs2.cpp:24:2: error: stray '\302' in program
         else

  ^
concurs2.cpp:24:2: error: stray '\240' in program
concurs2.cpp:24:2: error: stray '\302' in program
concurs2.cpp:24:2: error: stray '\240' in program
concurs2.cpp:24:2: error: stray '\302' in program
concurs2.cpp:24:2: error: stray '\240' in program
concurs2.cpp:24:2: error: stray '\302' in program
concurs2.cpp:24:2: error: stray '\240' in program
concurs2.cpp:24:2: error: stray '\302' in program
concurs2.cpp:24:2: error: stray '\240' in program
concurs2.cpp:24:2: error: stray '\302' in program
concurs2.cpp:24:2: error: stray '\240' in program
concurs2.cpp:25:2: error: stray '\302' in program
         {

  ^
concurs2.cpp:25:2: error: stray '\240' in program
concurs2.cpp:25:2: error: stray '\302' in program
concurs2.cpp:25:2: error: stray '\240' in program
concurs2.cpp:25:2: error: stray '\302' in program
concurs2.cpp:25:2: error: stray '\240' in program
concurs2.cpp:25:2: error: stray '\302' in program
concurs2.cpp:25:2: error: stray '\240' in program
concurs2.cpp:25:2: error: stray '\302' in program
concurs2.cpp:25:2: error: stray '\240' in program
concurs2.cpp:25:2: error: stray '\302' in program
concurs2.cpp:25:2: error: stray '\240' in program
concurs2.cpp:26:2: error: stray '\302' in program
             n2++;

  ^
concurs2.cpp:26:2: error: stray '\240' in program
concurs2.cpp:26:2: error: stray '\302' in program
concurs2.cpp:26:2: error: stray '\240' in program
concurs2.cpp:26:2: error: stray '\302' in program
concurs2.cpp:26:2: error: stray '\240' in program
concurs2.cpp:26:2: error: stray '\302' in program
concurs2.cpp:26:2: error: stray '\240' in program
concurs2.cpp:26:2: error: stray '\302' in program
concurs2.cpp:26:2: error: stray '\240' in program
concurs2.cpp:26:2: error: stray '\302' in program
concurs2.cpp:26:2: error: stray '\240' in program
concurs2.cpp:26:2: error: stray '\302' in program
concurs2.cpp:26:2: error: stray '\240' in program
concurs2.cpp:26:2: error: stray '\302' in program
concurs2.cpp:26:2: error: stray '\240' in program
concurs2.cpp:26:2: error: stray '\302' in program
concurs2.cpp:26:2: error: stray '\240' in program
concurs2.cpp:26:2: error: stray '\302' in program
concurs2.cpp:26:2: error: stray '\240' in program
concurs2.cpp:27:2: error: stray '\302' in program
             sp=p1+p2;

  ^
concurs2.cpp:27:2: error: stray '\240' in program
concurs2.cpp:27:2: error: stray '\302' in program
concurs2.cpp:27:2: error: stray '\240' in program
concurs2.cpp:27:2: error: stray '\302' in program
concurs2.cpp:27:2: error: stray '\240' in program
concurs2.cpp:27:2: error: stray '\302' in program
concurs2.cpp:27:2: error: stray '\240' in program
concurs2.cpp:27:2: error: stray '\302' in program
concurs2.cpp:27:2: error: stray '\240' in program
concurs2.cpp:27:2: error: stray '\302' in program
concurs2.cpp:27:2: error: stray '\240' in program
concurs2.cpp:27:2: error: stray '\302' in program
concurs2.cpp:27:2: error: stray '\240' in program
concurs2.cpp:27:2: error: stray '\302' in program
concurs2.cpp:27:2: error: stray '\240' in program
concurs2.cpp:27:2: error: stray '\302' in program
concurs2.cpp:27:2: error: stray '\240' in program
concurs2.cpp:27:2: error: stray '\302' in program
concurs2.cpp:27:2: error: stray '\240' in program
concurs2.cpp:28:2: error: stray '\302' in program
             if(sp>max2) max2=sp, k2=1;

  ^
concurs2.cpp:28:2: error: stray '\240' in program
concurs2.cpp:28:2: error: stray '\302' in program
concurs2.cpp:28:2: error: stray '\240' in program
concurs2.cpp:28:2: error: stray '\302' in program
concurs2.cpp:28:2: error: stray '\240' in program
concurs2.cpp:28:2: error: stray '\302' in program
concurs2.cpp:28:2: error: stray '\240' in program
concurs2.cpp:28:2: error: stray '\302' in program
concurs2.cpp:28:2: error: stray '\240' in program
concurs2.cpp:28:2: error: stray '\302' in program
concurs2.cpp:28:2: error: stray '\240' in program
concurs2.cpp:28:2: error: stray '\302' in program
concurs2.cpp:28:2: error: stray '\240' in program
concurs2.cpp:28:2: error: stray '\302' in program
concurs2.cpp:28:2: error: stray '\240' in program
concurs2.cpp:28:2: error: stray '\302' in program
concurs2.cpp:28:2: error: stray '\240' in program
concurs2.cpp:28:2: error: stray '\302' in program
concurs2.cpp:28:2: error: stray '\240' in program
concurs2.cpp:29:2: error: stray '\302' in program
             else if(sp==max2) k2++;

  ^
concurs2.cpp:29:2: error: stray '\240' in program
concurs2.cpp:29:2: error: stray '\302' in program
concurs2.cpp:29:2: error: stray '\240' in program
concurs2.cpp:29:2: error: stray '\302' in program
concurs2.cpp:29:2: error: stray '\240' in program
concurs2.cpp:29:2: error: stray '\302' in program
concurs2.cpp:29:2: error: stray '\240' in program
concurs2.cpp:29:2: error: stray '\302' in program
concurs2.cpp:29:2: error: stray '\240' in program
concurs2.cpp:29:2: error: stray '\302' in program
concurs2.cpp:29:2: error: stray '\240' in program
concurs2.cpp:29:2: error: stray '\302' in program
concurs2.cpp:29:2: error: stray '\240' in program
concurs2.cpp:29:2: error: stray '\302' in program
concurs2.cpp:29:2: error: stray '\240' in program
concurs2.cpp:29:2: error: stray '\302' in program
concurs2.cpp:29:2: error: stray '\240' in program
concurs2.cpp:29:2: error: stray '\302' in program
concurs2.cpp:29:2: error: stray '\240' in program
concurs2.cpp:30:2: error: stray '\302' in program
             if(p1==0 || p2==0) ok=false;

  ^
concurs2.cpp:30:2: error: stray '\240' in program
concurs2.cpp:30:2: error: stray '\302' in program
concurs2.cpp:30:2: error: stray '\240' in program
concurs2.cpp:30:2: error: stray '\302' in program
concurs2.cpp:30:2: error: stray '\240' in program
concurs2.cpp:30:2: error: stray '\302' in program
concurs2.cpp:30:2: error: stray '\240' in program
concurs2.cpp:30:2: error: stray '\302' in program
concurs2.cpp:30:2: error: stray '\240' in program
concurs2.cpp:30:2: error: stray '\302' in program
concurs2.cpp:30:2: error: stray '\240' in program
concurs2.cpp:30:2: error: stray '\302' in program
concurs2.cpp:30:2: error: stray '\240' in program
concurs2.cpp:30:2: error: stray '\302' in program
concurs2.cpp:30:2: error: stray '\240' in program
concurs2.cpp:30:2: error: stray '\302' in program
concurs2.cpp:30:2: error: stray '\240' in program
concurs2.cpp:30:2: error: stray '\302' in program
concurs2.cpp:30:2: error: stray '\240' in program
concurs2.cpp:31:2: error: stray '\302' in program
         }

  ^
concurs2.cpp:31:2: error: stray '\240' in program
concurs2.cpp:31:2: error: stray '\302' in program
concurs2.cpp:31:2: error: stray '\240' in program
concurs2.cpp:31:2: error: stray '\302' in program
concurs2.cpp:31:2: error: stray '\240' in program
concurs2.cpp:31:2: error: stray '\302' in program
concurs2.cpp:31:2: error: stray '\240' in program
concurs2.cpp:31:2: error: stray '\302' in program
concurs2.cpp:31:2: error: stray '\240' in program
concurs2.cpp:31:2: error: stray '\302' in program
concurs2.cpp:31:2: error: stray '\240' in program
concurs2.cpp:33:2: error: stray '\302' in program
     }

  ^
concurs2.cpp:33:2: error: stray '\240' in program
concurs2.cpp:33:2: error: stray '\302' in program
concurs2.cpp:33:2: error: stray '\240' in program
concurs2.cpp:34:2: error: stray '\302' in program
     if(c==1)

  ^
concurs2.cpp:34:2: error: stray '\240' in program
concurs2.cpp:34:2: error: stray '\302' in program
concurs2.cpp:34:2: error: stray '\240' in program
concurs2.cpp:35:2: error: stray '\302' in program
     {

  ^
concurs2.cpp:35:2: error: stray '\240' in program
concurs2.cpp:35:2: error: stray '\302' in program
concurs2.cpp:35:2: error: stray '\240' in program
concurs2.cpp:36:2: error: stray '\302' in program
         if(ok==true) cout << "DA";

  ^
concurs2.cpp:36:2: error: stray '\240' in program
concurs2.cpp:36:2: error: stray '\302' in program
concurs2.cpp:36:2: error: stray '\240' in program
concurs2.cpp:36:2: error: stray '\302' in program
concurs2.cpp:36:2: error: stray '\240' in program
concurs2.cpp:36:2: error: stray '\302' in program
concurs2.cpp:36:2: error: stray '\240' in program
concurs2.cpp:36:2: error: stray '\302' in program
concurs2.cpp:36:2: error: stray '\240' in program
concurs2.cpp:36:2: error: stray '\302' in program
concurs2.cpp:36:2: error: stray '\240' in program
concurs2.cpp:37:2: error: stray '\302' in program
         else cout << "NU";

  ^
concurs2.cpp:37:2: error: stray '\240' in program
concurs2.cpp:37:2: error: stray '\302' in program
concurs2.cpp:37:2: error: stray '\240' in program
concurs2.cpp:37:2: error: stray '\302' in program
concurs2.cpp:37:2: error: stray '\240' in program
concurs2.cpp:37:2: error: stray '\302' in program
concurs2.cpp:37:2: error: stray '\240' in program
concurs2.cpp:37:2: error: stray '\302' in program
concurs2.cpp:37:2: error: stray '\240' in program
concurs2.cpp:37:2: error: stray '\302' in program
concurs2.cpp:37:2: error: stray '\240' in program
concurs2.cpp:38:2: error: stray '\302' in program
     }

  ^
concurs2.cpp:38:2: error: stray '\240' in program
concurs2.cpp:38:2: error: stray '\302' in program
concurs2.cpp:38:2: error: stray '\240' in program
concurs2.cpp:39:2: error: stray '\302' in program
     if(c==2)

  ^
concurs2.cpp:39:2: error: stray '\240' in program
concurs2.cpp:39:2: error: stray '\302' in program
concurs2.cpp:39:2: error: stray '\240' in program
concurs2.cpp:40:2: error: stray '\302' in program
     {

  ^
concurs2.cpp:40:2: error: stray '\240' in program
concurs2.cpp:40:2: error: stray '\302' in program
concurs2.cpp:40:2: error: stray '\240' in program
concurs2.cpp:41:2: error: stray '\302' in program
         cout << 1 << " " << n1 << '\n';

  ^
concurs2.cpp:41:2: error: stray '\240' in program
concurs2.cpp:41:2: error: stray '\302' in program
concurs2.cpp:41:2: error: stray '\240' in program
concurs2.cpp:41:2: error: stray '\302' in program
concurs2.cpp:41:2: error: stray '\240' in program
concurs2.cpp:41:2: error: stray '\302' in program
concurs2.cpp:41:2: error: stray '\240' in program
concurs2.cpp:41:2: error: stray '\302' in program
concurs2.cpp:41:2: error: stray '\240' in program
concurs2.cpp:41:2: error: stray '\302' in program
concurs2.cpp:41:2: error: stray '\240' in program
concurs2.cpp:42:2: error: stray '\302' in program
         cout << 2 << ' ' << n2;

  ^
concurs2.cpp:42:2: error: stray '\240' in program
concurs2.cpp:42:2: error: stray '\302' in program
concurs2.cpp:42:2: error: stray '\240' in program
concurs2.cpp:42:2: error: stray '\302' in program
concurs2.cpp:42:2: error: stray '\240' in program
concurs2.cpp:42:2: error: stray '\302' in program
concurs2.cpp:42:2: error: stray '\240' in program
concurs2.cpp:42:2: error: stray '\302' in program
concurs2.cpp:42:2: error: stray '\240' in program
concurs2.cpp:42:2: error: stray '\302' in program
concurs2.cpp:42:2: error: stray '\240' in program
concurs2.cpp:43:2: error: stray '\302' in program
     }

  ^
concurs2.cpp:43:2: error: stray '\240' in program
concurs2.cpp:43:2: error: stray '\302' in program
concurs2.cpp:43:2: error: stray '\240' in program
concurs2.cpp:44:2: error: stray '\302' in program
     if(c==3)

  ^
concurs2.cpp:44:2: error: stray '\240' in program
concurs2.cpp:44:2: error: stray '\302' in program
concurs2.cpp:44:2: error: stray '\240' in program
concurs2.cpp:45:2: error: stray '\302' in program
     {

  ^
concurs2.cpp:45:2: error: stray '\240' in program
concurs2.cpp:45:2: error: stray '\302' in program
concurs2.cpp:45:2: error: stray '\240' in program
concurs2.cpp:46:2: error: stray '\302' in program
         cout << 1 << ' ' << max1 << ' ' << k1 << '\n';

  ^
concurs2.cpp:46:2: error: stray '\240' in program
concurs2.cpp:46:2: error: stray '\302' in program
concurs2.cpp:46:2: error: stray '\240' in program
concurs2.cpp:46:2: error: stray '\302' in program
concurs2.cpp:46:2: error: stray '\240' in program
concurs2.cpp:46:2: error: stray '\302' in program
concurs2.cpp:46:2: error: stray '\240' in program
concurs2.cpp:46:2: error: stray '\302' in program
concurs2.cpp:46:2: error: stray '\240' in program
concurs2.cpp:46:2: error: stray '\302' in program
concurs2.cpp:46:2: error: stray '\240' in program
concurs2.cpp:47:2: error: stray '\302' in program
         cout << 2 << ' ' << max2 << ' ' << k2 << '\n';

  ^
concurs2.cpp:47:2: error: stray '\240' in program
concurs2.cpp:47:2: error: stray '\302' in program
concurs2.cpp:47:2: error: stray '\240' in program
concurs2.cpp:47:2: error: stray '\302' in program
concurs2.cpp:47:2: error: stray '\240' in program
concurs2.cpp:47:2: error: stray '\302' in program
concurs2.cpp:47:2: error: stray '\240' in program
concurs2.cpp:47:2: error: stray '\302' in program
concurs2.cpp:47:2: error: stray '\240' in program
concurs2.cpp:47:2: error: stray '\302' in program
concurs2.cpp:47:2: error: stray '\240' in program
concurs2.cpp:48:2: error: stray '\302' in program
         cout << k1+k2;

  ^
concurs2.cpp:48:2: error: stray '\240' in program
concurs2.cpp:48:2: error: stray '\302' in program
concurs2.cpp:48:2: error: stray '\240' in program
concurs2.cpp:48:2: error: stray '\302' in program
concurs2.cpp:48:2: error: stray '\240' in program
concurs2.cpp:48:2: error: stray '\302' in program
concurs2.cpp:48:2: error: stray '\240' in program
concurs2.cpp:48:2: error: stray '\302' in program
concurs2.cpp:48:2: error: stray '\240' in program
concurs2.cpp:48:2: error: stray '\302' in program
concurs2.cpp:48:2: error: stray '\240' in program
concurs2.cpp:49:2: error: stray '\302' in program
     }

  ^
concurs2.cpp:49:2: error: stray '\240' in program
concurs2.cpp:49:2: error: stray '\302' in program
concurs2.cpp:49:2: error: stray '\240' in program
concurs2.cpp:50:2: error: stray '\302' in program
     return 0;

  ^
concurs2.cpp:50:2: error: stray '\240' in program
concurs2.cpp:50:2: error: stray '\302' in program
concurs2.cpp:50:2: error: stray '\240' in program

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