#1452
Să se șteargă dintr-un șir elementul aflat pe o poziție dată.
| Problema | Stergere_Element | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #32539822 | Utilizator | |
| Fișier | stergere_element.cpp | Dimensiune | 448 B |
| Data încărcării | 18 Noiembrie 2021, 20:12 | Scor/rezultat | 0 puncte |
stergere_element.cpp: In function 'int main()': stergere_element.cpp:7:26: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=] scanf("%d %d", &n, &x); ^ stergere_element.cpp:7:26: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=] stergere_element.cpp:9:25: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int' [-Wformat=] scanf("%d", v[i]); ^ stergere_element.cpp:22:26: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=] printf("%d", v[i]); ^ stergere_element.cpp:6:30: warning: unused variable 'y' [-Wunused-variable] long long v[1501], n, x, y; ^ stergere_element.cpp:7:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &n, &x); ^ stergere_element.cpp:9:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", v[i]); ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0 secunde | Caught fatal signal 11 | 20 | 0 | Exemplu | |
| 2 | 0 secunde | Caught fatal signal 11 | 20 | 0 | ||
| 3 | 0 secunde | Caught fatal signal 11 | 20 | 0 | ||
| 4 | 0 secunde | Caught fatal signal 11 | 20 | 0 | ||
| 5 | 0 secunde | Caught fatal signal 11 | 20 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Stergere_Element 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ă.