#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 |
![]() |
---|---|---|---|
Limita timp | 0.3 secunde | Limita memorie |
Total: 8 MB
/
Stivă 4 MB
|
Id soluție | #57708309 | Utilizator | |
Fișier | irdds.cpp | Dimensiune | 736 B |
Data încărcării | 11 Aprilie 2025, 11:46 | Scor / rezultat | 0 puncte |
irdds.cpp: In function 'int main()': irdds.cpp:7:10: warning: statement has no effect [-Wunused-value] { f>>n>>m>>w; ^ irdds.cpp:8:23: warning: statement has no effect [-Wunused-value] for (i=1; i<=n; i++) f>>a[i]; ^ irdds.cpp:9:23: warning: statement has no effect [-Wunused-value] for (i=1; i<=m; i++) f>>b[i]; ^ irdds.cpp:16:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(a[i]=b[j]) {if (c[++p]=a[i]) {i++; j++;} ^ irdds.cpp:16:31: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(a[i]=b[j]) {if (c[++p]=a[i]) {i++; j++;} ^ irdds.cpp:26:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(a[i]=b[j]) {if (c[++p]=a[i]) {i++; j++;} ^ irdds.cpp:26:31: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(a[i]=b[j]) {if (c[++p]=a[i]) {i++; j++;} ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
2 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
3 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
4 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
5 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
6 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
7 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
8 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
9 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
10 | 0 secunde | Raspuns gresit. | 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ă.