#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 | #64370668 | Utilizator | |
| Fișier | irdds.cpp | Dimensiune | 2.10 KB |
| Data încărcării | 04 Mai 2026, 08:51 | Scor/rezultat | Eroare de compilare |
irdds.cpp:4:2: error: ‘a’ does not name a type 4 | a[200001],b[200001],c[400001]; | ^ irdds.cpp: In function ‘int main()’: irdds.cpp:11:14: error: ‘a’ was not declared in this scope 11 | cin>>a[i]; | ^ irdds.cpp:13:14: error: ‘b’ was not declared in this scope 13 | cin>>b[i]; | ^ irdds.cpp:19:16: error: ‘a’ was not declared in this scope 19 | if(a[i]==b[j]) | ^ irdds.cpp:19:22: error: ‘b’ was not declared in this scope 19 | if(a[i]==b[j]) | ^ irdds.cpp:21:15: error: ‘c’ was not declared in this scope 21 | c[++k]=a[i++]; | ^ irdds.cpp:31:15: error: ‘c’ was not declared in this scope 31 | cout<<c[i]<<" "; | ^ irdds.cpp:39:16: error: ‘a’ was not declared in this scope 39 | if(a[i]<b[j]) | ^ irdds.cpp:39:21: error: ‘b’ was not declared in this scope 39 | if(a[i]<b[j]) | ^ irdds.cpp:41:15: error: ‘c’ was not declared in this scope 41 | c[++k]=a[i++]; | ^ irdds.cpp:45:13: error: ‘c’ was not declared in this scope 45 | c[++k]=b[j++]; | ^ irdds.cpp:48:13: error: ‘c’ was not declared in this scope 48 | c[++k]=a[i++]; | ^ irdds.cpp:52:5: error: ‘c’ was not declared in this scope 52 | c[++k]=a[i++]; | ^ irdds.cpp:52:12: error: ‘a’ was not declared in this scope 52 | c[++k]=a[i++]; | ^ irdds.cpp:54:5: error: ‘c’ was not declared in this scope 54 | c[++k]=b[j++]; | ^ irdds.cpp:54:12: error: ‘b’ was not declared in this scope 54 | c[++k]=b[j++]; | ^ irdds.cpp:53:1: warning: this ‘while’ clause does not guard... [-Wmisleading-indentation] 53 | while(j<=m) | ^~~~~ irdds.cpp:55:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘while’ 55 | for(i=1;i<=k;i++) | ^~~ irdds.cpp:56:15: error: ‘c’ was not declared in this scope 56 | cout<<c[i]<<" "; | ^ irdds.cpp:63:16: error: ‘a’ was not declared in this scope 63 | if(a[i]<b[j]) | ^ irdds.cpp:63:21: error: ‘b’ was not declared in this scope 63 | if(a[i]<b[j]) | ^ irdds.cpp:65:15: error: ‘c’ was not declared in this scope 65 | c[++k]=a[i++]; | ^ irdds.cpp:69:13: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 69 | if(a[i]==b[j]) | ^~ irdds.cpp:71:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 71 | j++; | ^ irdds.cpp:74:5: error: ‘c’ was not declared in this scope 74 | c[++k]=a[i++]; | ^ irdds.cpp:74:12: error: ‘a’ was not declared in this scope 74 | c[++k]=a[i++]; | ^ irdds.cpp:76:15: error: ‘c’ was not declared in this scope 76 | cout<<c[i]<<" "; | ^ irdds.cpp:83:16: error: ‘a’ was not declared in this scope 83 | if(a[i]<b[j]) | ^ irdds.cpp:83:21: error: ‘b’ was not declared in this scope 83 | if(a[i]<b[j]) | ^ irdds.cpp:85:15: error: ‘c’ was not declared in this scope 85 | c[++k]=a[i++]; | ^ irdds.cpp:89:13: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 89 | if(a[i]==b[j]) | ^~ irdds.cpp:91:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 91 | j++; | ^ irdds.cpp:94:5: error: ‘c’ was not declared in this scope 94 | c[++k]=a[i++]; | ^ irdds.cpp:94:12: error: ‘a’ was not declared in this scope 94 | c[++k]=a[i++]; | ^ irdds.cpp:97:16: error: ‘a’ was not declared in this scope 97 | if(a[i]>b[j]) | ^ irdds.cpp:97:21: error: ‘b’ was not declared in this scope 97 | if(a[i]>b[j]) | ^ irdds.cpp:99:15: error: ‘c’ was not declared in this scope 99 | c[++k]=b[j++]; | ^ irdds.cpp:103:13: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 103 | if(a[i]==b[j]) | ^~ irdds.cpp:105:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 105 | j++; | ^ irdds.cpp:108:5: error: ‘c’ was not declared in this scope 108 | c[++k]=b[j++]; | ^ irdds.cpp:108:12: error: ‘b’ was not declared in this scope 108 | c[++k]=b[j++]; | ^ irdds.cpp:111:8: error: ‘c’ was not declared in this scope 111 | if(c[i]>c[j]) | ^ irdds.cpp:114:15: error: ‘c’ was not declared in this scope 114 | cout<<c[i]<<" "; | ^
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ă.