#1884
Se dă un șir cu n elemente, numere naturale. Să se afișeze, pentru fiecare element din șir, valoarea din șir aflată după acesta și mai mare decât acesta. Dacă o asemenea valoare nu există, se va afișa -1.
| Problema | UEMM1 | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.2 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #39379502 | Utilizator | |
| Fișier | uemm1.cs | Dimensiune | 1.02 KB |
| Data încărcării | 07 Noiembrie 2022, 13:34 | Scor/rezultat | Eroare de compilare |
Compilation failed: 3 error(s), 0 warnings uemm1.cs(24,28): error CS1061: Type \`System.Collections.Generic.Stack<int>' does not contain a definition for \`Empty' and no extension method \`Empty' of type \`System.Collections.Generic.Stack<int>' could be found. Are you missing an assembly reference? /usr/lib/mono/4.5/System.dll (Location of the symbol related to previous error) uemm1.cs(25,24): error CS1061: Type \`System.Collections.Generic.Stack<int>' does not contain a definition for \`Empty' and no extension method \`Empty' of type \`System.Collections.Generic.Stack<int>' could be found. Are you missing an assembly reference? /usr/lib/mono/4.5/System.dll (Location of the symbol related to previous error) uemm1.cs(26,32): error CS1061: Type \`System.Collections.Generic.Stack<int>' does not contain a definition for \`Top' and no extension method \`Top' of type \`System.Collections.Generic.Stack<int>' could be found. Are you missing an assembly reference? /usr/lib/mono/4.5/System.dll (Location of the symbol related to previous error)
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema UEMM1 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ă.