#3794
Se dau două șiruri de numere naturale, cu n, respectiv m elemente, ordonate crescător. Să se determine al treilea șir, care să conţină, în ordine crescătoare, elementele din primele două şiruri.
| Problema | InterclasNoMemory1 | Operații I/O |
file.in/file.out
|
|---|---|---|---|
| Limita timp | 0.25 secunde | Limita memorie |
Total: 0.1 MB
/
Stivă 0.1 MB
|
| Id soluție | #51665489 | Utilizator | |
| Fișier | interclasnomemory1.cpp | Dimensiune | 943 B |
| Data încărcării | 30 Iulie 2024, 17:50 | Scor/rezultat | Eroare de compilare |
interclasnomemory1.cpp:7:1: error: 'vector' does not name a type vector<long long int> v; ^ interclasnomemory1.cpp:8:20: error: 'vector' has not been declared void citire(int n, vector<long long int*> v){ ^ interclasnomemory1.cpp:8:26: error: expected ',' or '...' before '<' token void citire(int n, vector<long long int*> v){ ^ interclasnomemory1.cpp: In function 'void citire(int, int)': interclasnomemory1.cpp:10:14: error: 'v' was not declared in this scope fin>>v[i]; ^ interclasnomemory1.cpp: At global scope: interclasnomemory1.cpp:13:22: error: 'vector' has not been declared void tiparire(int n, vector<long long int*> v){ ^ interclasnomemory1.cpp:13:28: error: expected ',' or '...' before '<' token void tiparire(int n, vector<long long int*> v){ ^ interclasnomemory1.cpp: In function 'void tiparire(int, int)': interclasnomemory1.cpp:15:15: error: 'v' was not declared in this scope fout<<v[i]<<" "; ^ interclasnomemory1.cpp: At global scope: interclasnomemory1.cpp:19:56: error: 'vector' has not been declared void interclasare(int a, int *x, int b, int* y, int n, vector<long long int*> v){ ^ interclasnomemory1.cpp:19:62: error: expected ',' or '...' before '<' token void interclasare(int a, int *x, int b, int* y, int n, vector<long long int*> v){ ^ interclasnomemory1.cpp: In function 'void interclasare(int, int*, int, int*, int, int)': interclasnomemory1.cpp:23:13: error: 'v' was not declared in this scope v[i]=y[k]; ^ interclasnomemory1.cpp:26:13: error: 'v' was not declared in this scope v[i]=x[j]; ^ interclasnomemory1.cpp:29:13: error: 'v' was not declared in this scope v[i]=x[j]; ^ interclasnomemory1.cpp:32:13: error: 'v' was not declared in this scope v[i]=y[k]; ^ interclasnomemory1.cpp: In function 'int main()': interclasnomemory1.cpp:40:16: error: invalid conversion from 'int*' to 'int' [-fpermissive] citire(a, x); ^ interclasnomemory1.cpp:8:6: error: initializing argument 2 of 'void citire(int, int)' [-fpermissive] void citire(int n, vector<long long int*> v){ ^ interclasnomemory1.cpp:41:16: error: invalid conversion from 'int*' to 'int' [-fpermissive] citire(b, y); ^ interclasnomemory1.cpp:8:6: error: initializing argument 2 of 'void citire(int, int)' [-fpermissive] void citire(int n, vector<long long int*> v){ ^ interclasnomemory1.cpp:42:30: error: 'n' was not declared in this scope interclasare(a, x, b, y, n, v); ^ interclasnomemory1.cpp:42:33: error: 'v' was not declared in this scope interclasare(a, x, b, y, n, v); ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema InterclasNoMemory1 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ă.