#528
Multimi
Se dau două mulțimi de numere naturale. Să se afișeze reuniunea și intersecția lor.
Problema | Multimi | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #53707620 | Utilizator | |
Fișier | multimi.cpp | Dimensiune | 1.59 KB |
Data încărcării | 09 Noiembrie 2024, 10:38 | Scor / rezultat | 0 puncte |
multimi.cpp: In function 'int main()': multimi.cpp:8:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for ( int i = 1 ; i <= n ; i ++ ) ^ multimi.cpp:11:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for ( int i = 1 ; i <= m ; i ++ ) ^ multimi.cpp:16:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while ( i <= n || j <= m ) ^ multimi.cpp:16:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while ( i <= n || j <= m ) ^ multimi.cpp:18:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if ( i > n ) ^ multimi.cpp:24:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] else if ( j > m ) ^ multimi.cpp:47:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for ( int i = 1 ; i <= n + m ; i ++ ) ^ multimi.cpp:49:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for ( int i = 1 ; i <= n + m ; i ++ ) ^ multimi.cpp:59:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for ( int i = 1 ; i <= n + m ; i ++ ) ^ multimi.cpp:61:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for ( int i = 1 ; i <= n + m ; i ++ ) ^ multimi.cpp:63:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for ( int i = 1 ; i <= n + m ; 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 | 40 | 0 | ||
3 | 0 secunde | Caught fatal signal 11 | 40 | 0 | ||
Punctaj total | 0 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Multimi 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ă.