#852
Paranteze3
Se dau n
șiruri de paranteze rotunde sau pătrate. Să se stabilească, despre fiecare șir, dacă este corect parantezat.
Problema | Paranteze3 | Operații I/O |
paranteze3.in /paranteze3.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #52439976 | Utilizator | |
Fișier | paranteze3.cpp | Dimensiune | 1.51 KB |
Data încărcării | 30 Septembrie 2024, 12:48 | Scor / rezultat | Eroare de compilare |
paranteze3.cpp:1:7: error: expected nested-name-specifier before 'System' using System; ^ paranteze3.cpp:1:7: error: 'System' has not been declared paranteze3.cpp:2:7: error: expected nested-name-specifier before 'System' using System.Collections; ^ paranteze3.cpp:2:7: error: 'System' has not been declared paranteze3.cpp:2:13: error: expected ';' before '.' token using System.Collections; ^ paranteze3.cpp:2:13: error: expected unqualified-id before '.' token paranteze3.cpp:3:7: error: expected nested-name-specifier before 'System' using System.IO; ^ paranteze3.cpp:3:7: error: 'System' has not been declared paranteze3.cpp:3:13: error: expected ';' before '.' token using System.IO; ^ paranteze3.cpp:3:13: error: expected unqualified-id before '.' token paranteze3.cpp:4:7: error: expected nested-name-specifier before 'System' using System.Collections.Generic; ^ paranteze3.cpp:4:7: error: 'System' has not been declared paranteze3.cpp:4:13: error: expected ';' before '.' token using System.Collections.Generic; ^ paranteze3.cpp:4:13: error: expected unqualified-id before '.' token paranteze3.cpp:5:7: error: expected nested-name-specifier before 'System' using System.Linq; ^ paranteze3.cpp:5:7: error: 'System' has not been declared paranteze3.cpp:5:13: error: expected ';' before '.' token using System.Linq; ^ paranteze3.cpp:5:13: error: expected unqualified-id before '.' token paranteze3.cpp:6:7: error: expected nested-name-specifier before 'System' using System.Text; ^ paranteze3.cpp:6:7: error: 'System' has not been declared paranteze3.cpp:6:13: error: expected ';' before '.' token using System.Text; ^ paranteze3.cpp:6:13: error: expected unqualified-id before '.' token paranteze3.cpp:7:7: error: expected nested-name-specifier before 'System' using System.Threading.Tasks; ^ paranteze3.cpp:7:7: error: 'System' has not been declared paranteze3.cpp:7:13: error: expected ';' before '.' token using System.Threading.Tasks; ^ paranteze3.cpp:7:13: error: expected unqualified-id before '.' token paranteze3.cpp:13:26: error: 'string' has not been declared static void Main(string[] args) ^ paranteze3.cpp:13:35: error: expected ',' or '...' before 'args' static void Main(string[] args) ^ paranteze3.cpp:49:5: error: expected ';' after class definition } ^ paranteze3.cpp: In static member function 'static void p14_problema852::Program::Main(int*)': paranteze3.cpp:15:13: error: 'StreamReader' was not declared in this scope StreamReader fin = new StreamReader("paranteze3.in"); ^ paranteze3.cpp:15:26: error: expected ';' before 'fin' StreamReader fin = new StreamReader("paranteze3.in"); ^ paranteze3.cpp:16:13: error: 'StreamWriter' was not declared in this scope StreamWriter fout = new StreamWriter("paranteze3.out"); ^ paranteze3.cpp:16:26: error: expected ';' before 'fout' StreamWriter fout = new StreamWriter("paranteze3.out"); ^ paranteze3.cpp:17:13: error: 'Stack' was not declared in this scope Stack st = new Stack(); ^ paranteze3.cpp:17:19: error: expected ';' before 'st' Stack st = new Stack(); ^ paranteze3.cpp:18:13: error: 'string' was not declared in this scope string a; ^ paranteze3.cpp:18:20: error: expected ';' before 'a' string a; ^ paranteze3.cpp:26:17: error: expected primary-expression before 'int' n = int.Parse(fin.ReadLine()); ^ paranteze3.cpp:26:17: error: expected ';' before 'int' paranteze3.cpp:29:17: error: 'a' was not declared in this scope a = fin.ReadLine(); ^ paranteze3.cpp:29:21: error: 'fin' was not declared in this scope a = fin.ReadLine(); ^ paranteze3.cpp:30:17: error: 'st' was not declared in this scope st.Clear(); // golim stiva ^ paranteze3.cpp:44:17: error: 'fout' was not declared in this scope fout.WriteLine(corectPar); ^ paranteze3.cpp:46:13: error: 'fin' was not declared in this scope fin.Close(); ^ paranteze3.cpp:47:13: error: 'fout' was not declared in this scope fout.Close(); ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Paranteze3 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ă.