Detalii evaluare #11398327

Rezumat problemă

#2281 Sageata

Pentru un număr n, o săgeată este formată din n steluțe (*) pe fiecare linie și 2*n - 1 linii.

Admiterea la clasa de Excelență din Bistrița, 2017

Detalii

Problema Sageata Operații I/O tastatură/ecran
Limita timp 0.1 secunde Limita memorie Total: 64 MB / Stivă 8 MB
Id soluție #11398327 Utilizator Paul Andrei (Paul_Andrei)
Fișier sageata.cpp Dimensiune 554 B
Data încărcării 27 Octombrie 2018, 16:19 Scor / rezultat Eroare de compilare

Evaluare


Mesaj compilare

sageata.cpp:5:1: error: stray '\302' in program
     int n, s=0;

 ^
sageata.cpp:5:1: error: stray '\240' in program
sageata.cpp:5:1: error: stray '\302' in program
sageata.cpp:5:1: error: stray '\240' in program
sageata.cpp:5:1: error: stray '\302' in program
sageata.cpp:5:1: error: stray '\240' in program
sageata.cpp:6:1: error: stray '\302' in program
     cin>>n;

 ^
sageata.cpp:6:1: error: stray '\240' in program
sageata.cpp:6:1: error: stray '\302' in program
sageata.cpp:6:1: error: stray '\240' in program
sageata.cpp:6:1: error: stray '\302' in program
sageata.cpp:6:1: error: stray '\240' in program
sageata.cpp:7:1: error: stray '\302' in program
     for(int i=1;i<=n;i++){

 ^
sageata.cpp:7:1: error: stray '\240' in program
sageata.cpp:7:1: error: stray '\302' in program
sageata.cpp:7:1: error: stray '\240' in program
sageata.cpp:7:1: error: stray '\302' in program
sageata.cpp:7:1: error: stray '\240' in program
sageata.cpp:8:1: error: stray '\302' in program
             for(int k=1;k<=s;k++) cout<<' ';

 ^
sageata.cpp:8:1: error: stray '\240' in program
sageata.cpp:8:1: error: stray '\302' in program
sageata.cpp:8:1: error: stray '\240' in program
sageata.cpp:8:1: error: stray '\302' in program
sageata.cpp:8:1: error: stray '\240' in program
sageata.cpp:8:1: error: stray '\302' in program
sageata.cpp:8:1: error: stray '\240' in program
sageata.cpp:8:1: error: stray '\302' in program
sageata.cpp:8:1: error: stray '\240' in program
sageata.cpp:8:1: error: stray '\302' in program
sageata.cpp:8:1: error: stray '\240' in program
sageata.cpp:8:1: error: stray '\302' in program
sageata.cpp:8:1: error: stray '\240' in program
sageata.cpp:8:1: error: stray '\302' in program
sageata.cpp:8:1: error: stray '\240' in program
sageata.cpp:8:1: error: stray '\302' in program
sageata.cpp:8:1: error: stray '\240' in program
sageata.cpp:8:1: error: stray '\302' in program
sageata.cpp:8:1: error: stray '\240' in program
sageata.cpp:8:1: error: stray '\302' in program
sageata.cpp:8:1: error: stray '\240' in program
sageata.cpp:9:1: error: stray '\302' in program
             for(int j=1;j<=n;j++) cout<<'*';

 ^
sageata.cpp:9:1: error: stray '\240' in program
sageata.cpp:9:1: error: stray '\302' in program
sageata.cpp:9:1: error: stray '\240' in program
sageata.cpp:9:1: error: stray '\302' in program
sageata.cpp:9:1: error: stray '\240' in program
sageata.cpp:9:1: error: stray '\302' in program
sageata.cpp:9:1: error: stray '\240' in program
sageata.cpp:9:1: error: stray '\302' in program
sageata.cpp:9:1: error: stray '\240' in program
sageata.cpp:9:1: error: stray '\302' in program
sageata.cpp:9:1: error: stray '\240' in program
sageata.cpp:9:1: error: stray '\302' in program
sageata.cpp:9:1: error: stray '\240' in program
sageata.cpp:9:1: error: stray '\302' in program
sageata.cpp:9:1: error: stray '\240' in program
sageata.cpp:9:1: error: stray '\302' in program
sageata.cpp:9:1: error: stray '\240' in program
sageata.cpp:9:1: error: stray '\302' in program
sageata.cpp:9:1: error: stray '\240' in program
sageata.cpp:9:1: error: stray '\302' in program
sageata.cpp:9:1: error: stray '\240' in program
sageata.cpp:10:1: error: stray '\302' in program
             s+=1; cout<<endl;

 ^
sageata.cpp:10:1: error: stray '\240' in program
sageata.cpp:10:1: error: stray '\302' in program
sageata.cpp:10:1: error: stray '\240' in program
sageata.cpp:10:1: error: stray '\302' in program
sageata.cpp:10:1: error: stray '\240' in program
sageata.cpp:10:1: error: stray '\302' in program
sageata.cpp:10:1: error: stray '\240' in program
sageata.cpp:10:1: error: stray '\302' in program
sageata.cpp:10:1: error: stray '\240' in program
sageata.cpp:10:1: error: stray '\302' in program
sageata.cpp:10:1: error: stray '\240' in program
sageata.cpp:10:1: error: stray '\302' in program
sageata.cpp:10:1: error: stray '\240' in program
sageata.cpp:10:1: error: stray '\302' in program
sageata.cpp:10:1: error: stray '\240' in program
sageata.cpp:10:1: error: stray '\302' in program
sageata.cpp:10:1: error: stray '\240' in program
sageata.cpp:10:1: error: stray '\302' in program
sageata.cpp:10:1: error: stray '\240' in program
sageata.cpp:10:1: error: stray '\302' in program
sageata.cpp:10:1: error: stray '\240' in program
sageata.cpp:11:1: error: stray '\302' in program
         }

 ^
sageata.cpp:11:1: error: stray '\240' in program
sageata.cpp:11:1: error: stray '\302' in program
sageata.cpp:11:1: error: stray '\240' in program
sageata.cpp:11:1: error: stray '\302' in program
sageata.cpp:11:1: error: stray '\240' in program
sageata.cpp:11:1: error: stray '\302' in program
sageata.cpp:11:1: error: stray '\240' in program
sageata.cpp:11:1: error: stray '\302' in program
sageata.cpp:11:1: error: stray '\240' in program
sageata.cpp:11:1: error: stray '\302' in program
sageata.cpp:11:1: error: stray '\240' in program
sageata.cpp:11:1: error: stray '\302' in program
sageata.cpp:11:1: error: stray '\240' in program
sageata.cpp:12:1: error: stray '\302' in program
         s-=2;

 ^
sageata.cpp:12:1: error: stray '\240' in program
sageata.cpp:12:1: error: stray '\302' in program
sageata.cpp:12:1: error: stray '\240' in program
sageata.cpp:12:1: error: stray '\302' in program
sageata.cpp:12:1: error: stray '\240' in program
sageata.cpp:12:1: error: stray '\302' in program
sageata.cpp:12:1: error: stray '\240' in program
sageata.cpp:12:1: error: stray '\302' in program
sageata.cpp:12:1: error: stray '\240' in program
sageata.cpp:12:1: error: stray '\302' in program
sageata.cpp:12:1: error: stray '\240' in program
sageata.cpp:12:1: error: stray '\302' in program
sageata.cpp:12:1: error: stray '\240' in program
sageata.cpp:13:1: error: stray '\302' in program
         for(int a=1;a<=n-1;a++){

 ^
sageata.cpp:13:1: error: stray '\240' in program
sageata.cpp:13:1: error: stray '\302' in program
sageata.cpp:13:1: error: stray '\240' in program
sageata.cpp:13:1: error: stray '\302' in program
sageata.cpp:13:1: error: stray '\240' in program
sageata.cpp:13:1: error: stray '\302' in program
sageata.cpp:13:1: error: stray '\240' in program
sageata.cpp:13:1: error: stray '\302' in program
sageata.cpp:13:1: error: stray '\240' in program
sageata.cpp:13:1: error: stray '\302' in program
sageata.cpp:13:1: error: stray '\240' in program
sageata.cpp:13:1: error: stray '\302' in program
sageata.cpp:13:1: error: stray '\240' in program
sageata.cpp:14:1: error: stray '\302' in program
             for(int b=1;b<=s;b++) cout<<' ';

 ^
sageata.cpp:14:1: error: stray '\240' in program
sageata.cpp:14:1: error: stray '\302' in program
sageata.cpp:14:1: error: stray '\240' in program
sageata.cpp:14:1: error: stray '\302' in program
sageata.cpp:14:1: error: stray '\240' in program
sageata.cpp:14:1: error: stray '\302' in program
sageata.cpp:14:1: error: stray '\240' in program
sageata.cpp:14:1: error: stray '\302' in program
sageata.cpp:14:1: error: stray '\240' in program
sageata.cpp:14:1: error: stray '\302' in program
sageata.cpp:14:1: error: stray '\240' in program
sageata.cpp:14:1: error: stray '\302' in program
sageata.cpp:14:1: error: stray '\240' in program
sageata.cpp:14:1: error: stray '\302' in program
sageata.cpp:14:1: error: stray '\240' in program
sageata.cpp:14:1: error: stray '\302' in program
sageata.cpp:14:1: error: stray '\240' in program
sageata.cpp:14:1: error: stray '\302' in program
sageata.cpp:14:1: error: stray '\240' in program
sageata.cpp:14:1: error: stray '\302' in program
sageata.cpp:14:1: error: stray '\240' in program
sageata.cpp:15:1: error: stray '\302' in program
             for(int x=1;x<=n;x++) cout<<'*';

 ^
sageata.cpp:15:1: error: stray '\240' in program
sageata.cpp:15:1: error: stray '\302' in program
sageata.cpp:15:1: error: stray '\240' in program
sageata.cpp:15:1: error: stray '\302' in program
sageata.cpp:15:1: error: stray '\240' in program
sageata.cpp:15:1: error: stray '\302' in program
sageata.cpp:15:1: error: stray '\240' in program
sageata.cpp:15:1: error: stray '\302' in program
sageata.cpp:15:1: error: stray '\240' in program
sageata.cpp:15:1: error: stray '\302' in program
sageata.cpp:15:1: error: stray '\240' in program
sageata.cpp:15:1: error: stray '\302' in program
sageata.cpp:15:1: error: stray '\240' in program
sageata.cpp:15:1: error: stray '\302' in program
sageata.cpp:15:1: error: stray '\240' in program
sageata.cpp:15:1: error: stray '\302' in program
sageata.cpp:15:1: error: stray '\240' in program
sageata.cpp:15:1: error: stray '\302' in program
sageata.cpp:15:1: error: stray '\240' in program
sageata.cpp:15:1: error: stray '\302' in program
sageata.cpp:15:1: error: stray '\240' in program
sageata.cpp:16:1: error: stray '\302' in program
             s--; cout<<endl;

 ^
sageata.cpp:16:1: error: stray '\240' in program
sageata.cpp:16:1: error: stray '\302' in program
sageata.cpp:16:1: error: stray '\240' in program
sageata.cpp:16:1: error: stray '\302' in program
sageata.cpp:16:1: error: stray '\240' in program
sageata.cpp:16:1: error: stray '\302' in program
sageata.cpp:16:1: error: stray '\240' in program
sageata.cpp:16:1: error: stray '\302' in program
sageata.cpp:16:1: error: stray '\240' in program
sageata.cpp:16:1: error: stray '\302' in program
sageata.cpp:16:1: error: stray '\240' in program
sageata.cpp:16:1: error: stray '\302' in program
sageata.cpp:16:1: error: stray '\240' in program
sageata.cpp:16:1: error: stray '\302' in program
sageata.cpp:16:1: error: stray '\240' in program
sageata.cpp:16:1: error: stray '\302' in program
sageata.cpp:16:1: error: stray '\240' in program
sageata.cpp:16:1: error: stray '\302' in program
sageata.cpp:16:1: error: stray '\240' in program
sageata.cpp:16:1: error: stray '\302' in program
sageata.cpp:16:1: error: stray '\240' in program
sageata.cpp:17:1: error: stray '\302' in program
         }

 ^
sageata.cpp:17:1: error: stray '\240' in program
sageata.cpp:17:1: error: stray '\302' in program
sageata.cpp:17:1: error: stray '\240' in program
sageata.cpp:17:1: error: stray '\302' in program
sageata.cpp:17:1: error: stray '\240' in program
sageata.cpp:17:1: error: stray '\302' in program
sageata.cpp:17:1: error: stray '\240' in program
sageata.cpp:17:1: error: stray '\302' in program
sageata.cpp:17:1: error: stray '\240' in program
sageata.cpp:17:1: error: stray '\302' in program
sageata.cpp:17:1: error: stray '\240' in program
sageata.cpp:17:1: error: stray '\302' in program
sageata.cpp:17:1: error: stray '\240' in program
sageata.cpp:18:1: error: stray '\302' in program
     return 0;

 ^
sageata.cpp:18:1: error: stray '\240' in program
sageata.cpp:18:1: error: stray '\302' in program
sageata.cpp:18:1: error: stray '\240' in program
sageata.cpp:18:1: error: stray '\302' in program
sageata.cpp:18:1: 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 Sageata 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ă.