#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 | #64211399 | Utilizator | |
| Fișier | irdds.cpp | Dimensiune | 954 B |
| Data încărcării | 23 Aprilie 2026, 09:46 | Scor/rezultat | Eroare de compilare |
irdds.cpp: In function ‘int main()’: irdds.cpp:20:12: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 20 | if(A[i]=!u) | ~~~~^~~ irdds.cpp:20:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 20 | if(A[i]=!u) | ^~ irdds.cpp:21:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 21 | k++;R[k]=A[i];A[i]=u; | ^ irdds.cpp:30:9: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 30 | if(ok==0) | ^~ irdds.cpp:32:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 32 | R[k]=B[i]; | ^ irdds.cpp:35:5: error: expected ‘}’ before ‘else’ 35 | else { | ^~~~ irdds.cpp:19:18: note: to match this ‘{’ 19 | if(A[i]<B[j]){ | ^ irdds.cpp:36:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 36 | if(B[j]=!u) | ~~~~^~~ irdds.cpp:36:8: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 36 | if(B[j]=!u) | ^~ irdds.cpp:37:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 37 | k++;R[k]=B[j];B[j]=u; | ^ irdds.cpp:42:12: error: expected ‘;’ before ‘}’ token 42 | j++ | ^ | ; 43 | } | ~ irdds.cpp: At global scope: irdds.cpp:48:5: error: expected unqualified-id before ‘return’ 48 | return 0; | ^~~~~~ irdds.cpp:49:1: error: expected declaration before ‘}’ token 49 | } | ^
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ă.