#1744
Fișierul de intrare conține cel mult 1.000.000 de numere întregi. Se cere să se afișeze în fișierul de ieșire cel mai mic număr din intervalul [-100,100] care nu apare în fișierul de intrare.
| Problema | NrLipsa2 | Operații I/O |
nrlipsa2.in/nrlipsa2.out
|
|---|---|---|---|
| Limita timp | 1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64459284 | Utilizator | |
| Fișier | nrlipsa2.cpp | Dimensiune | 699 B |
| Data încărcării | 08 Mai 2026, 08:26 | Scor/rezultat | 0 puncte |
nrlipsa2.cpp: In function ‘int main()’: nrlipsa2.cpp:19:15: warning: array subscript -1 is below array bounds of ‘int [101]’ [-Warray-bounds=] 19 | if(a[i]==0){ | ~~~^ nrlipsa2.cpp:9:9: note: while referencing ‘a’ 9 | int a[101]={0},b[101]={0}, n=0, i, x; | ^ nrlipsa2.cpp:12:16: warning: array subscript -1 is below array bounds of ‘int [101]’ [-Warray-bounds=] 12 | a[x]++; | ~~~^ nrlipsa2.cpp:9:9: note: while referencing ‘a’ 9 | int a[101]={0},b[101]={0}, n=0, i, x; | ^ nrlipsa2.cpp:12:16: warning: array subscript -1 is below array bounds of ‘int [101]’ [-Warray-bounds=] 12 | a[x]++; | ~~~^ nrlipsa2.cpp:9:9: note: while referencing ‘a’ 9 | int a[101]={0},b[101]={0}, n=0, i, x; | ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | Raspuns gresit. | 20 | 0 | Exemplu | |
| 2 | 0.002 secunde | Raspuns gresit. | 20 | 0 | ||
| 3 | 0.002 secunde | Raspuns gresit. | 20 | 0 | ||
| 4 | 0.009 secunde | Raspuns gresit. | 20 | 0 | ||
| 5 | 0.09 secunde | Raspuns gresit. | 20 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema NrLipsa2 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ă.