#530
Se dau două mulțimi de numere naturale. Să se afișeze reuniunea și intersecția lor.
| Problema | Multimi1 | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.5 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64869022 | Utilizator | |
| Fișier | multimi1.cpp | Dimensiune | 1.10 KB |
| Data încărcării | 08 Iunie 2026, 16:24 | Scor/rezultat | 100 puncte |
multimi1.cpp: In function ‘int main()’: multimi1.cpp:12:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 12 | for(j=1; j<=m; j++) | ^~~ multimi1.cpp:14:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 14 | i=1; j=1; k=1; | ^ multimi1.cpp:33:9: warning: this ‘while’ clause does not guard... [-Wmisleading-indentation] 33 | while(i<=n) | ^~~~~ multimi1.cpp:35:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘while’ 35 | while(j<=m) | ^~~~~ multimi1.cpp:46:9: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation] 46 | else | ^~~~ multimi1.cpp:48:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’ 48 | for(t=1; t<k; t++) | ^~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.002 secunde | OK. | 20 | 20 | Exemplu | |
| 2 | 0.002 secunde | OK. | 40 | 40 | ||
| 3 | 0.078 secunde | OK. | 40 | 40 | ||
| Punctaj total | 100 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Multimi1 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ă.