#1025
MergeSort
Se dă un șir cu n
elemente, numere întregi. Folosind metoda MergeSort, ordonați crescător elementele acestui șir.
Problema | MergeSort | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.3 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #58512630 | Utilizator | |
Fișier | mergesort.cs | Dimensiune | 2.56 KB |
Data încărcării | 12 Iunie 2025, 19:48 | Scor / rezultat | Eroare de compilare |
Compilation failed: 19 error(s), 0 warnings mergesort.cs(12,9): error CS0103: The name \`Array' does not exist in the current context mergesort.cs(13,9): error CS0103: The name \`Array' does not exist in the current context mergesort.cs(23,9): error CS0246: The type or namespace name \`List' could not be found. Are you missing \`System.Collections.Generic' using directive? mergesort.cs(29,17): error CS0841: A local variable \`arrayC' cannot be used before it is declared mergesort.cs(30,37): error CS1061: Type \`int[]' does not contain a definition for \`Skip' and no extension method \`Skip' of type \`int[]' could be found. Are you missing \`System.Linq' using directive? /usr/lib/mono/4.5/mscorlib.dll (Location of the symbol related to previous error) mergesort.cs(34,17): error CS0841: A local variable \`arrayC' cannot be used before it is declared mergesort.cs(35,37): error CS1061: Type \`int[]' does not contain a definition for \`Skip' and no extension method \`Skip' of type \`int[]' could be found. Are you missing \`System.Linq' using directive? /usr/lib/mono/4.5/mscorlib.dll (Location of the symbol related to previous error) mergesort.cs(41,13): error CS0841: A local variable \`arrayC' cannot be used before it is declared mergesort.cs(42,33): error CS1061: Type \`int[]' does not contain a definition for \`Skip' and no extension method \`Skip' of type \`int[]' could be found. Are you missing \`System.Linq' using directive? /usr/lib/mono/4.5/mscorlib.dll (Location of the symbol related to previous error) mergesort.cs(47,13): error CS0841: A local variable \`arrayC' cannot be used before it is declared mergesort.cs(48,33): error CS1061: Type \`int[]' does not contain a definition for \`Skip' and no extension method \`Skip' of type \`int[]' could be found. Are you missing \`System.Linq' using directive? /usr/lib/mono/4.5/mscorlib.dll (Location of the symbol related to previous error) mergesort.cs(51,16): error CS0841: A local variable \`arrayC' cannot be used before it is declared mergesort.cs(65,9): error CS0103: The name \`Console' does not exist in the current context mergesort.cs(66,27): error CS0103: The name \`Console' does not exist in the current context mergesort.cs(69,9): error CS0103: The name \`Console' does not exist in the current context mergesort.cs(70,34): error CS0103: The name \`Console' does not exist in the current context mergesort.cs(75,13): error CS0103: The name \`Console' does not exist in the current context mergesort.cs(79,41): error CS1061: Type \`string[]' does not contain a definition for \`Select' and no extension method \`Select' of type \`string[]' could be found. Are you missing \`System.Linq' using directive? /usr/lib/mono/4.5/mscorlib.dll (Location of the symbol related to previous error) mergesort.cs(85,9): error CS0103: The name \`Console' does not exist in the current context
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema MergeSort 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ă.