#997
Reuniune
Se dau două mulțimi de numere naturale. Să se afișeze reuniunea lor.
Problema | Reuniune | Operații I/O |
reuniune.in /reuniune.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #49702154 | Utilizator | |
Fișier | reuniune.cpp | Dimensiune | 734 B |
Data încărcării | 12 Martie 2024, 16:33 | Scor / rezultat | Eroare de compilare |
reuniune.cpp:6:15: warning: missing terminating " character [enabled by default] ofstream cout("reuniune.out); ^ reuniune.cpp:6:1: error: missing terminating " character ofstream cout("reuniune.out); ^ reuniune.cpp:8:8: error: 'a' has not been declared int n, a[1001], b[1001], m, c[1001], l; ^ reuniune.cpp:8:17: error: 'b' has not been declared int n, a[1001], b[1001], m, c[1001], l; ^ reuniune.cpp:8:26: error: 'm' has not been declared int n, a[1001], b[1001], m, c[1001], l; ^ reuniune.cpp:8:29: error: 'c' has not been declared int n, a[1001], b[1001], m, c[1001], l; ^ reuniune.cpp:8:38: error: 'l' has not been declared int n, a[1001], b[1001], m, c[1001], l; ^ reuniune.cpp:8:39: error: expected ')' before ';' token int n, a[1001], b[1001], m, c[1001], l; ^ reuniune.cpp: In function 'int main()': reuniune.cpp:13:12: error: 'n' was not declared in this scope cin >> n >> m; ^ reuniune.cpp:13:17: error: 'm' was not declared in this scope cin >> n >> m; ^ reuniune.cpp:16:16: error: 'a' was not declared in this scope cin >> a[i]; ^ reuniune.cpp:19:16: error: 'b' was not declared in this scope cin >> b[i]; ^ reuniune.cpp:25:16: error: 'a' was not declared in this scope if(a[i]==b[j]) ok=0; ^ reuniune.cpp:25:22: error: 'b' was not declared in this scope if(a[i]==b[j]) ok=0; ^ reuniune.cpp:27:20: error: 'c' was not declared in this scope if(ok) c[++l]=a[i]; ^ reuniune.cpp:27:24: error: 'l' was not declared in this scope if(ok) c[++l]=a[i]; ^ reuniune.cpp:27:27: error: 'a' was not declared in this scope if(ok) c[++l]=a[i]; ^ reuniune.cpp:32:13: error: 'c' was not declared in this scope c[++l]=b[i]; ^ reuniune.cpp:32:17: error: 'l' was not declared in this scope c[++l]=b[i]; ^ reuniune.cpp:32:20: error: 'b' was not declared in this scope c[++l]=b[i]; ^ reuniune.cpp:34:21: error: 'l' was not declared in this scope for(int i=1; i<=l; i++) ^ reuniune.cpp:37:14: error: 'c' was not declared in this scope if(c[i] > c[j]) swap(c[i], c[j]); ^ reuniune.cpp:40:21: error: 'l' was not declared in this scope for(int i=1; i<=l; i++) ^ reuniune.cpp:41:17: error: 'c' was not declared in this scope cout << c[i] << " "; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Reuniune 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ă.