Detalii evaluare #54063366

Rezumat problemă

Se dă n. Afișați un triunghi cu latura de n steluțe gol înăuntru.

Detalii

Problema LaturiTriunghi Operații I/O tastatură/ecran
Limita timp 0.01 secunde Limita memorie Total: 10 MB / Stivă 2 MB
Id soluție #54063366 Utilizator Ungureanu Ionut-Alin (AlinUngureanu)
Fișier laturitriunghi.cpp Dimensiune 519 B
Data încărcării 19 Noiembrie 2024, 02:03 Scor / rezultat Eroare de compilare

Evaluare


Mesaj compilare

laturitriunghi.cpp:4:1: error: stray '\302' in program
 {    int n, i;

 ^
laturitriunghi.cpp:4:1: error: stray '\240' in program
laturitriunghi.cpp:4:1: error: stray '\302' in program
laturitriunghi.cpp:4:1: error: stray '\240' in program
laturitriunghi.cpp:5:2: error: stray '\302' in program
  cin>>n;  

  ^
laturitriunghi.cpp:5:2: error: stray '\240' in program
laturitriunghi.cpp:6:2: error: stray '\302' in program
  for (i=1; i<n; i++)   

  ^
laturitriunghi.cpp:6:2: error: stray '\240' in program
laturitriunghi.cpp:6:2: error: stray '\302' in program
laturitriunghi.cpp:6:2: error: stray '\240' in program
laturitriunghi.cpp:7:6: error: stray '\302' in program
      cout<<" ";   

      ^
laturitriunghi.cpp:7:6: error: stray '\240' in program
laturitriunghi.cpp:7:6: error: stray '\302' in program
laturitriunghi.cpp:7:6: error: stray '\240' in program
laturitriunghi.cpp:8:2: error: stray '\302' in program
  cout<<"*";   

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

  ^
laturitriunghi.cpp:9:2: error: stray '\240' in program
laturitriunghi.cpp:9:2: error: stray '\302' in program
laturitriunghi.cpp:9:2: error: stray '\240' in program
laturitriunghi.cpp:10:6: error: stray '\302' in program
      cout<<" ";   

      ^
laturitriunghi.cpp:10:6: error: stray '\240' in program
laturitriunghi.cpp:10:6: error: stray '\302' in program
laturitriunghi.cpp:10:6: error: stray '\240' in program
laturitriunghi.cpp:11:2: error: stray '\302' in program
  cout<<endl;    

  ^
laturitriunghi.cpp:11:2: error: stray '\240' in program
laturitriunghi.cpp:11:2: error: stray '\302' in program
laturitriunghi.cpp:11:2: error: stray '\240' in program
laturitriunghi.cpp:13:2: error: stray '\302' in program
  {        for (int j=1; j<=2*n-1; j++)       

  ^
laturitriunghi.cpp:13:2: error: stray '\240' in program
laturitriunghi.cpp:13:2: error: stray '\302' in program
laturitriunghi.cpp:13:2: error: stray '\240' in program
laturitriunghi.cpp:13:2: error: stray '\302' in program
laturitriunghi.cpp:13:2: error: stray '\240' in program
laturitriunghi.cpp:13:2: error: stray '\302' in program
laturitriunghi.cpp:13:2: error: stray '\240' in program
laturitriunghi.cpp:13:2: error: stray '\302' in program
laturitriunghi.cpp:13:2: error: stray '\240' in program
laturitriunghi.cpp:13:2: error: stray '\302' in program
laturitriunghi.cpp:13:2: error: stray '\240' in program
laturitriunghi.cpp:13:2: error: stray '\302' in program
laturitriunghi.cpp:13:2: error: stray '\240' in program
laturitriunghi.cpp:13:2: error: stray '\302' in program
laturitriunghi.cpp:13:2: error: stray '\240' in program
laturitriunghi.cpp:15:6: error: stray '\302' in program
      cout<<"*";      

      ^
laturitriunghi.cpp:15:6: error: stray '\240' in program
laturitriunghi.cpp:15:6: error: stray '\302' in program
laturitriunghi.cpp:15:6: error: stray '\240' in program
laturitriunghi.cpp:15:6: error: stray '\302' in program
laturitriunghi.cpp:15:6: error: stray '\240' in program
laturitriunghi.cpp:16:6: error: stray '\302' in program
      else cout<<" ";       

      ^
laturitriunghi.cpp:16:6: error: stray '\240' in program
laturitriunghi.cpp:16:6: error: stray '\302' in program
laturitriunghi.cpp:16:6: error: stray '\240' in program
laturitriunghi.cpp:16:6: error: stray '\302' in program
laturitriunghi.cpp:16:6: error: stray '\240' in program
laturitriunghi.cpp:16:6: error: stray '\302' in program
laturitriunghi.cpp:16:6: error: stray '\240' in program
laturitriunghi.cpp:17:6: error: stray '\302' in program
      cout<<endl;    }  

      ^
laturitriunghi.cpp:17:6: error: stray '\240' in program
laturitriunghi.cpp:17:6: error: stray '\302' in program
laturitriunghi.cpp:17:6: error: stray '\240' in program
laturitriunghi.cpp:17:6: error: stray '\302' in program
laturitriunghi.cpp:17:6: error: stray '\240' in program
laturitriunghi.cpp:18:2: error: stray '\302' in program
  if (n>1)     

  ^
laturitriunghi.cpp:18:2: error: stray '\240' in program
laturitriunghi.cpp:18:2: error: stray '\302' in program
laturitriunghi.cpp:18:2: error: stray '\240' in program
laturitriunghi.cpp:18:2: error: stray '\302' in program
laturitriunghi.cpp:18:2: error: stray '\240' in program
laturitriunghi.cpp:19:6: error: stray '\302' in program
      for (i=1; i<=n; i++)        

      ^
laturitriunghi.cpp:19:6: error: stray '\240' in program
laturitriunghi.cpp:19:6: error: stray '\302' in program
laturitriunghi.cpp:19:6: error: stray '\240' in program
laturitriunghi.cpp:19:6: error: stray '\302' in program
laturitriunghi.cpp:19:6: error: stray '\240' in program
laturitriunghi.cpp:19:6: error: stray '\302' in program
laturitriunghi.cpp:19:6: error: stray '\240' in program
laturitriunghi.cpp:20:6: error: stray '\302' in program
      cout<<"* ";    

      ^
laturitriunghi.cpp:20:6: error: stray '\240' in program
laturitriunghi.cpp:20:6: error: stray '\302' in program
laturitriunghi.cpp:20:6: 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 LaturiTriunghi 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ă.