#3974
Se dau 2 mulţimi de numere naturale. Să se afișeze mulţimea rezultată în urma efectuării unei operații.
| Problema | IRDDS | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.3 secunde | Limita memorie |
Total: 8 MB
/
Stivă 4 MB
|
| Id soluție | #64370594 | Utilizator | |
| Fișier | irdds.cpp | Dimensiune | 2.10 KB |
| Data încărcării | 04 Mai 2026, 08:49 | Scor/rezultat | 0 puncte |
irdds.cpp: In function ‘int main()’: irdds.cpp:53:1: warning: this ‘while’ clause does not guard... [-Wmisleading-indentation] 53 | while(j<=m) | ^~~~~ irdds.cpp:55:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘while’ 55 | for(i=1;i<=k;i++) | ^~~ irdds.cpp:69:13: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 69 | if(a[i]==b[j]) | ^~ irdds.cpp:71:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 71 | j++; | ^ irdds.cpp:89:13: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 89 | if(a[i]==b[j]) | ^~ irdds.cpp:91:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 91 | j++; | ^ irdds.cpp:103:13: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 103 | if(a[i]==b[j]) | ^~ irdds.cpp:105:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 105 | j++; | ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.12 secunde | Raspuns gresit. | 10 | 0 | ||
| 2 | 0.119 secunde | Raspuns gresit. | 10 | 0 | ||
| 3 | 0.098 secunde | Raspuns gresit. | 10 | 0 | ||
| 4 | 0.095 secunde | Raspuns gresit. | 10 | 0 | ||
| 5 | 0.145 secunde | Raspuns gresit. | 10 | 0 | ||
| 6 | 0.111 secunde | Raspuns gresit. | 10 | 0 | ||
| 7 | Depășit | Limita de timp depășită | 10 | 0 | ||
| 8 | Depășit | Limita de timp depășită | 10 | 0 | ||
| 9 | 0.072 secunde | Raspuns gresit. | 10 | 0 | ||
| 10 | Depășit | Limita de timp depășită | 10 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema IRDDS 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ă.