#941
Urare
În preajma Crăciunului toţi suntem sau redevenim copii.
Scrie un program care afişează pe ecran o urare pentru cei dragi ţie!
Problema | Urare | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #24510467 | Utilizator | |
Fișier | urare.cpp | Dimensiune | 1.14 KB |
Data încărcării | 12 Octombrie 2020, 07:33 | Scor / rezultat | Eroare de compilare |
urare.cpp:2:7: error: expected nested-name-specifier before 'System' using System; ^ urare.cpp:2:7: error: 'System' has not been declared urare.cpp:3:7: error: expected nested-name-specifier before 'System' using System.Collections.Generic; ^ urare.cpp:3:7: error: 'System' has not been declared urare.cpp:3:13: error: expected ';' before '.' token using System.Collections.Generic; ^ urare.cpp:3:13: error: expected unqualified-id before '.' token urare.cpp:4:7: error: expected nested-name-specifier before 'System' using System.Linq; ^ urare.cpp:4:7: error: 'System' has not been declared urare.cpp:4:13: error: expected ';' before '.' token using System.Linq; ^ urare.cpp:4:13: error: expected unqualified-id before '.' token urare.cpp:5:7: error: expected nested-name-specifier before 'System' using System.Text; ^ urare.cpp:5:7: error: 'System' has not been declared urare.cpp:5:13: error: expected ';' before '.' token using System.Text; ^ urare.cpp:5:13: error: expected unqualified-id before '.' token urare.cpp:6:7: error: expected nested-name-specifier before 'System' using System.Threading.Tasks; ^ urare.cpp:6:7: error: 'System' has not been declared urare.cpp:6:13: error: expected ';' before '.' token using System.Threading.Tasks; ^ urare.cpp:6:13: error: expected unqualified-id before '.' token urare.cpp:11:26: error: 'string' has not been declared static void Main(string[] args) ^ urare.cpp:11:35: error: expected ',' or '...' before 'args' static void Main(string[] args) ^ urare.cpp:38:5: error: expected ';' after class definition } ^ urare.cpp: In static member function 'static void sortcol::Program::Main(int*)': urare.cpp:14:13: error: 'string' was not declared in this scope string[] S = Console.ReadLine().Split(); ^ urare.cpp:14:20: error: expected primary-expression before ']' token string[] S = Console.ReadLine().Split(); ^ urare.cpp:14:22: error: expected ';' before 'S' string[] S = Console.ReadLine().Split(); ^ urare.cpp:15:17: error: expected primary-expression before 'int' n = int.Parse(S[0]); ^ urare.cpp:15:17: error: expected ';' before 'int' urare.cpp:16:17: error: expected primary-expression before 'int' m = int.Parse(S[1]); ^ urare.cpp:16:17: error: expected ';' before 'int' urare.cpp:17:16: error: expected unqualified-id before '[' token int[,] A; ^ urare.cpp:18:13: error: 'A' was not declared in this scope A = new int[n + 1, m + 1]; ^ urare.cpp:18:27: warning: left operand of comma operator has no effect [-Wunused-value] A = new int[n + 1, m + 1]; ^ urare.cpp:21:17: error: 'S' was not declared in this scope S = Console.ReadLine().Split(); ^ urare.cpp:21:21: error: 'Console' was not declared in this scope S = Console.ReadLine().Split(); ^ urare.cpp:23:26: warning: left operand of comma operator has no effect [-Wunused-value] A[i, j] = int.Parse(S[j - 1]); ^ urare.cpp:23:31: error: expected primary-expression before 'int' A[i, j] = int.Parse(S[j - 1]); ^ urare.cpp:23:31: error: expected ';' before 'int' urare.cpp:28:34: warning: left operand of comma operator has no effect [-Wunused-value] if (A[i, k] < A[j, k]) ^ urare.cpp:28:44: warning: left operand of comma operator has no effect [-Wunused-value] if (A[i, k] < A[j, k]) ^ urare.cpp:29:43: warning: left operand of comma operator has no effect [-Wunused-value] int aux( A[i, k] , A[j, k]) ^ urare.cpp:29:53: warning: left operand of comma operator has no effect [-Wunused-value] int aux( A[i, k] , A[j, k]) ^ urare.cpp:29:55: error: expression list treated as compound expression in initializer [-fpermissive] int aux( A[i, k] , A[j, k]) ^ urare.cpp:30:13: error: expected ',' or ';' before 'for' for (int i = 1; i <= n; i++) ^ urare.cpp:29:33: warning: unused variable 'aux' [-Wunused-variable] int aux( A[i, k] , A[j, k]) ^ urare.cpp:30:29: error: 'i' was not declared in this scope for (int i = 1; i <= n; i++) ^ urare.cpp:30:40: error: expected ';' before ')' token for (int i = 1; i <= n; i++) ^ urare.cpp:36:13: error: 'Console' was not declared in this scope Console.ReadKey(); ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Urare 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ă.