Detalii evaluare #38860082

Rezumat problemă

#832 Nota

Fiind dată nota unui elev să se afișeze dacă acesta este corigent sau promovat.

Detalii

Problema Nota Operații I/O tastatură/ecran
Limita timp 0.1 secunde Limita memorie Total: 64 MB / Stivă 8 MB
Id soluție #38860082 Utilizator Costea Tudor (CosteaTudor)
Fișier nota.cpp Dimensiune 564 B
Data încărcării 19 Octombrie 2022, 09:21 Scor / rezultat Eroare de compilare

Evaluare


Mesaj compilare

nota.cpp:1:7: error: expected nested-name-specifier before 'System'
 using System;

       ^
nota.cpp:1:7: error: 'System' has not been declared
nota.cpp:2:7: error: expected nested-name-specifier before 'System'
 using System.Collections.Generic;

       ^
nota.cpp:2:7: error: 'System' has not been declared
nota.cpp:2:13: error: expected ';' before '.' token
 using System.Collections.Generic;

             ^
nota.cpp:2:13: error: expected unqualified-id before '.' token
nota.cpp:3:7: error: expected nested-name-specifier before 'System'
 using System.Linq;

       ^
nota.cpp:3:7: error: 'System' has not been declared
nota.cpp:3:13: error: expected ';' before '.' token
 using System.Linq;

             ^
nota.cpp:3:13: error: expected unqualified-id before '.' token
nota.cpp:4:7: error: expected nested-name-specifier before 'System'
 using System.Text;

       ^
nota.cpp:4:7: error: 'System' has not been declared
nota.cpp:4:13: error: expected ';' before '.' token
 using System.Text;

             ^
nota.cpp:4:13: error: expected unqualified-id before '.' token
nota.cpp:5:7: error: expected nested-name-specifier before 'System'
 using System.Threading.Tasks;

       ^
nota.cpp:5:7: error: 'System' has not been declared
nota.cpp:5:13: error: expected ';' before '.' token
 using System.Threading.Tasks;

             ^
nota.cpp:5:13: error: expected unqualified-id before '.' token
nota.cpp:11:26: error: 'string' has not been declared
         static void Main(string[] args)

                          ^
nota.cpp:11:35: error: expected ',' or '...' before 'args'
         static void Main(string[] args)

                                   ^
nota.cpp:24:5: error: expected ';' after class definition
     }

     ^
nota.cpp: In static member function 'static void ConsoleApplication1::Program::Main(int*)':
nota.cpp:13:13: error: 'string' was not declared in this scope
             string[] input = Console.ReadLine().Split(' ');

             ^
nota.cpp:13:20: error: expected primary-expression before ']' token
             string[] input = Console.ReadLine().Split(' ');

                    ^
nota.cpp:13:22: error: expected ';' before 'input'
             string[] input = Console.ReadLine().Split(' ');

                      ^
nota.cpp:14:21: error: expected primary-expression before 'int'
             int a = int.Parse(input[0]);

                     ^
nota.cpp:17:17: error: 'Console' was not declared in this scope
                 Console.WriteLine("promovat");

                 ^
nota.cpp:21:17: error: 'Console' was not declared in this scope
                 Console.WriteLine("corigent");

                 ^

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