#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 | #64959238 | Utilizator | |
| Fișier | irdds.cpp | Dimensiune | 4.70 KB |
| Data încărcării | 24 Iunie 2026, 18:58 | Scor/rezultat | Eroare de compilare |
irdds.cpp:123:5: error: redefinition of ‘int n’ 123 | int n, m, a[200001], b[200001], c[400001]; | ^ irdds.cpp:4:5: note: ‘int n’ previously declared here 4 | int n, m, a[200001], b[200001], c[400001]; | ^ irdds.cpp:123:8: error: redefinition of ‘int m’ 123 | int n, m, a[200001], b[200001], c[400001]; | ^ irdds.cpp:4:8: note: ‘int m’ previously declared here 4 | int n, m, a[200001], b[200001], c[400001]; | ^ irdds.cpp:123:11: error: redefinition of ‘int a [200001]’ 123 | int n, m, a[200001], b[200001], c[400001]; | ^ irdds.cpp:4:11: note: ‘int a [200001]’ previously declared here 4 | int n, m, a[200001], b[200001], c[400001]; | ^ irdds.cpp:123:22: error: redefinition of ‘int b [200001]’ 123 | int n, m, a[200001], b[200001], c[400001]; | ^ irdds.cpp:4:22: note: ‘int b [200001]’ previously declared here 4 | int n, m, a[200001], b[200001], c[400001]; | ^ irdds.cpp:123:33: error: redefinition of ‘int c [400001]’ 123 | int n, m, a[200001], b[200001], c[400001]; | ^ irdds.cpp:4:33: note: ‘int c [400001]’ previously declared here 4 | int n, m, a[200001], b[200001], c[400001]; | ^ irdds.cpp:124:6: error: redefinition of ‘char operatie’ 124 | char operatie; | ^~~~~~~~ irdds.cpp:5:6: note: ‘char operatie’ previously declared here 5 | char operatie; | ^~~~~~~~ irdds.cpp:125:5: error: redefinition of ‘int p’ 125 | int p = 1; | ^ irdds.cpp:6:5: note: ‘int p’ previously defined here 6 | int p = 1; | ^ irdds.cpp:127:6: error: redefinition of ‘void intersectie(int*, int*)’ 127 | void intersectie (int a[], int b[]) { | ^~~~~~~~~~~ irdds.cpp:8:6: note: ‘void intersectie(int*, int*)’ previously defined here 8 | void intersectie (int a[], int b[]) { | ^~~~~~~~~~~ irdds.cpp:149:6: error: redefinition of ‘void adunare(int*, int*)’ 149 | void adunare (int a[], int b[]) { | ^~~~~~~ irdds.cpp:30:6: note: ‘void adunare(int*, int*)’ previously defined here 30 | void adunare (int a[], int b[]) { | ^~~~~~~ irdds.cpp:168:6: error: redefinition of ‘void scadere(int*, int*)’ 168 | void scadere (int a[], int b[]) { | ^~~~~~~ irdds.cpp:49:6: note: ‘void scadere(int*, int*)’ previously defined here 49 | void scadere (int a[], int b[]) { | ^~~~~~~ irdds.cpp:190:6: error: redefinition of ‘void diferenta_sim(int*, int*)’ 190 | void diferenta_sim (int a[], int b[]) { | ^~~~~~~~~~~~~ irdds.cpp:71:6: note: ‘void diferenta_sim(int*, int*)’ previously defined here 71 | void diferenta_sim (int a[], int b[]) { | ^~~~~~~~~~~~~ irdds.cpp:213:5: error: redefinition of ‘int main()’ 213 | int main() { | ^~~~ irdds.cpp:94:5: note: ‘int main()’ previously defined here 94 | int main() { | ^~~~
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ă.