#832
Nota
Fiind dată nota unui elev să se afișeze dacă acesta este corigent sau promovat.
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 | |
Fișier | nota.cpp | Dimensiune | 564 B |
Data încărcării | 19 Octombrie 2022, 09:21 | Scor / rezultat | Eroare de 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"); ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Nota face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
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ă.