#2736
Baza De Date
Se citește numărul n
și apoi n
articole cu structura prenume nume salariu vârstă funcție număr_de_telefon email
. Fiecare articol este plasat pe câte o linie, câmpurile sale fiind separate prin câte un spațiu. Câmpurile salariu
și vârstă
conțin numere naturale, celelalte conțin șiruri de caractere.
Se citește apoi un număr natural p
cuprins între 1
și 7
și un caracter c
care poate fi +
sau -
.
Se cere ordonarea celor n
articole în funcție de p
și c
, astfel:
p=1
, ordonarea se face după prenume
; dacă p=2
, ordonarea se face după nume
; dacă p=3
, ordonarea se face după salariu
; dacă p=4
, ordonarea se face după vârstă
; dacă p=5
, ordonarea se face după funcție
; dacă p=6
, ordonarea se face după număr_de_telefon
; dacă p=7
, ordonarea se face după email
;c
are valoarea +
, ordonarea va fi crescătoare, iar dacă c
are valoarea -
, ordonarea va fi descrescătoare;Problema | Baza De Date | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.01 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #22597231 | Utilizator | |
Fișier | baza_de_date.cpp | Dimensiune | 8.30 KB |
Data încărcării | 25 Aprilie 2020, 09:35 | Scor / rezultat | Eroare de compilare |
baza_de_date.cpp:7:5: error: stray '\303' in program unsigned long long int salariu, vârstă,id; ^ baza_de_date.cpp:7:5: error: stray '\242' in program baza_de_date.cpp:7:5: error: stray '\304' in program baza_de_date.cpp:7:5: error: stray '\203' in program baza_de_date.cpp:14:5: error: stray '\303' in program {cin>>el[i].prenume>>el[i].nume>>el[i].salariu>>el[i].vârstă>>el[i].funcție>>el[i].număr_de_telefon>>el[i].email; ^ baza_de_date.cpp:14:5: error: stray '\242' in program baza_de_date.cpp:14:5: error: stray '\304' in program baza_de_date.cpp:14:5: error: stray '\203' in program baza_de_date.cpp:14:5: error: stray '\310' in program baza_de_date.cpp:14:5: error: stray '\233' in program baza_de_date.cpp:14:5: error: stray '\304' in program baza_de_date.cpp:14:5: error: stray '\203' in program baza_de_date.cpp:30:13: error: stray '\303' in program cout<<el[i].prenume<<" "<<el[i].nume<<" "<<el[i].salariu<<" "<<el[i].vârstă<<" "<<el[i].funcție<<" "<<el[i].număr_de_telefon<<" "<<el[i].email<<endl; ^ baza_de_date.cpp:30:13: error: stray '\242' in program baza_de_date.cpp:30:13: error: stray '\304' in program baza_de_date.cpp:30:13: error: stray '\203' in program baza_de_date.cpp:30:13: error: stray '\310' in program baza_de_date.cpp:30:13: error: stray '\233' in program baza_de_date.cpp:30:13: error: stray '\304' in program baza_de_date.cpp:30:13: error: stray '\203' in program baza_de_date.cpp:45:13: error: stray '\303' in program cout<<el[i].prenume<<" "<<el[i].nume<<" "<<el[i].salariu<<" "<<el[i].vârstă<<" "<<el[i].funcție<<" "<<el[i].număr_de_telefon<<" "<<el[i].email<<endl; ^ baza_de_date.cpp:45:13: error: stray '\242' in program baza_de_date.cpp:45:13: error: stray '\304' in program baza_de_date.cpp:45:13: error: stray '\203' in program baza_de_date.cpp:45:13: error: stray '\310' in program baza_de_date.cpp:45:13: error: stray '\233' in program baza_de_date.cpp:45:13: error: stray '\304' in program baza_de_date.cpp:45:13: error: stray '\203' in program baza_de_date.cpp:60:13: error: stray '\303' in program cout<<el[i].prenume<<" "<<el[i].nume<<" "<<el[i].salariu<<" "<<el[i].vârstă<<" "<<el[i].funcție<<" "<<el[i].număr_de_telefon<<" "<<el[i].email<<endl; ^ baza_de_date.cpp:60:13: error: stray '\242' in program baza_de_date.cpp:60:13: error: stray '\304' in program baza_de_date.cpp:60:13: error: stray '\203' in program baza_de_date.cpp:60:13: error: stray '\310' in program baza_de_date.cpp:60:13: error: stray '\233' in program baza_de_date.cpp:60:13: error: stray '\304' in program baza_de_date.cpp:60:13: error: stray '\203' in program baza_de_date.cpp:75:13: error: stray '\303' in program cout<<el[i].prenume<<" "<<el[i].nume<<" "<<el[i].salariu<<" "<<el[i].vârstă<<" "<<el[i].funcție<<" "<<el[i].număr_de_telefon<<" "<<el[i].email<<endl; ^ baza_de_date.cpp:75:13: error: stray '\242' in program baza_de_date.cpp:75:13: error: stray '\304' in program baza_de_date.cpp:75:13: error: stray '\203' in program baza_de_date.cpp:75:13: error: stray '\310' in program baza_de_date.cpp:75:13: error: stray '\233' in program baza_de_date.cpp:75:13: error: stray '\304' in program baza_de_date.cpp:75:13: error: stray '\203' in program baza_de_date.cpp:91:13: error: stray '\303' in program cout<<el[i].prenume<<" "<<el[i].nume<<" "<<el[i].salariu<<" "<<el[i].vârstă<<" "<<el[i].funcție<<" "<<el[i].număr_de_telefon<<" "<<el[i].email<<endl; ^ baza_de_date.cpp:91:13: error: stray '\242' in program baza_de_date.cpp:91:13: error: stray '\304' in program baza_de_date.cpp:91:13: error: stray '\203' in program baza_de_date.cpp:91:13: error: stray '\310' in program baza_de_date.cpp:91:13: error: stray '\233' in program baza_de_date.cpp:91:13: error: stray '\304' in program baza_de_date.cpp:91:13: error: stray '\203' in program baza_de_date.cpp:106:13: error: stray '\303' in program cout<<el[i].prenume<<" "<<el[i].nume<<" "<<el[i].salariu<<" "<<el[i].vârstă<<" "<<el[i].funcție<<" "<<el[i].număr_de_telefon<<" "<<el[i].email<<endl; ^ baza_de_date.cpp:106:13: error: stray '\242' in program baza_de_date.cpp:106:13: error: stray '\304' in program baza_de_date.cpp:106:13: error: stray '\203' in program baza_de_date.cpp:106:13: error: stray '\310' in program baza_de_date.cpp:106:13: error: stray '\233' in program baza_de_date.cpp:106:13: error: stray '\304' in program baza_de_date.cpp:106:13: error: stray '\203' in program baza_de_date.cpp:113:17: error: stray '\303' in program if(el[i].vârstă>el[j].vârstă) ^ baza_de_date.cpp:113:17: error: stray '\242' in program baza_de_date.cpp:113:17: error: stray '\304' in program baza_de_date.cpp:113:17: error: stray '\203' in program baza_de_date.cpp:113:17: error: stray '\303' in program baza_de_date.cpp:113:17: error: stray '\242' in program baza_de_date.cpp:113:17: error: stray '\304' in program baza_de_date.cpp:113:17: error: stray '\203' in program baza_de_date.cpp:117:17: error: stray '\303' in program if(el[i].vârstă==el[j].vârstă==0&&el[i].id>el[j].id) ^ baza_de_date.cpp:117:17: error: stray '\242' in program baza_de_date.cpp:117:17: error: stray '\304' in program baza_de_date.cpp:117:17: error: stray '\203' in program baza_de_date.cpp:117:17: error: stray '\303' in program baza_de_date.cpp:117:17: error: stray '\242' in program baza_de_date.cpp:117:17: error: stray '\304' in program baza_de_date.cpp:117:17: error: stray '\203' in program baza_de_date.cpp:120:13: error: stray '\303' in program cout<<el[i].prenume<<" "<<el[i].nume<<" "<<el[i].salariu<<" "<<el[i].vârstă<<" "<<el[i].funcție<<" "<<el[i].număr_de_telefon<<" "<<el[i].email<<endl; ^ baza_de_date.cpp:120:13: error: stray '\242' in program baza_de_date.cpp:120:13: error: stray '\304' in program baza_de_date.cpp:120:13: error: stray '\203' in program baza_de_date.cpp:120:13: error: stray '\310' in program baza_de_date.cpp:120:13: error: stray '\233' in program baza_de_date.cpp:120:13: error: stray '\304' in program baza_de_date.cpp:120:13: error: stray '\203' in program baza_de_date.cpp:128:17: error: stray '\303' in program if(el[i].vârstă<el[j].vârstă) ^ baza_de_date.cpp:128:17: error: stray '\242' in program baza_de_date.cpp:128:17: error: stray '\304' in program baza_de_date.cpp:128:17: error: stray '\203' in program baza_de_date.cpp:128:17: error: stray '\303' in program baza_de_date.cpp:128:17: error: stray '\242' in program baza_de_date.cpp:128:17: error: stray '\304' in program baza_de_date.cpp:128:17: error: stray '\203' in program baza_de_date.cpp:132:17: error: stray '\303' in program if(el[i].vârstă==el[j].vârstă==0&&el[i].id>el[j].id) ^ baza_de_date.cpp:132:17: error: stray '\242' in program baza_de_date.cpp:132:17: error: stray '\304' in program baza_de_date.cpp:132:17: error: stray '\203' in program baza_de_date.cpp:132:17: error: stray '\303' in program baza_de_date.cpp:132:17: error: stray '\242' in program baza_de_date.cpp:132:17: error: stray '\304' in program baza_de_date.cpp:132:17: error: stray '\203' in program baza_de_date.cpp:135:13: error: stray '\303' in program cout<<el[i].prenume<<" "<<el[i].nume<<" "<<el[i].salariu<<" "<<el[i].vârstă<<" "<<el[i].funcție<<" "<<el[i].număr_de_telefon<<" "<<el[i].email<<endl; ^ baza_de_date.cpp:135:13: error: stray '\242' in program baza_de_date.cpp:135:13: error: stray '\304' in program baza_de_date.cpp:135:13: error: stray '\203' in program baza_de_date.cpp:135:13: error: stray '\310' in program baza_de_date.cpp:135:13: error: stray '\233' in program baza_de_date.cpp:135:13: error: stray '\304' in program baza_de_date.cpp:135:13: error: stray '\203' in program baza_de_date.cpp:142:17: error: stray '\310' in program if(strcmp(el[i].funcție,el[j].funcție)>0) ^ baza_de_date.cpp:142:17: error: stray '\233' in program baza_de_date.cpp:142:17: error: stray '\310' in program baza_de_date.cpp:142:17: error: stray '\233' in program baza_de_date.cpp:145:17: error: stray '\310' in program if(strcmp(el[i].funcție,el[j].funcție)==0&&el[i].id>el[j].id) ^ baza_de_date.cpp:145:17: error: stray '\233' in program baza_de_date.cpp:145:17: error: stray '\310' in program baza_de_date.cpp:145:17: error: stray '\233' in program baza_de_date.cpp:148:13: error: stray '\303' in program cout<<el[i].prenume<<" "<<el[i].nume<<" "<<el[i].salariu<<" "<<el[i].vârstă<<" "<<el[i].funcție<<" "<<el[i].număr_de_telefon<<" "<<el[i].email<<endl; ^ baza_de_date.cpp:148:13: error: stray '\242' in program baza_de_date.cpp:148:13: error: stray '\304' in program baza_de_date.cpp:148:13: error: stray '\203' in program baza_de_date.cpp:148:13: error: stray '\310' in program baza_de_date.cpp:148:13: error: stray '\233' in program baza_de_date.cpp:148:13: error: stray '\304' in program baza_de_date.cpp:148:13: error: stray '\203' in program baza_de_date.cpp:157:17: error: stray '\310' in program if(strcmp(el[i].funcție,el[j].funcție)<0) ^ baza_de_date.cpp:157:17: error: stray '\233' in program baza_de_date.cpp:157:17: error: stray '\310' in program baza_de_date.cpp:157:17: error: stray '\233' in program baza_de_date.cpp:160:17: error: stray '\310' in program if(strcmp(el[i].funcție,el[j].funcție)==0&&el[i].id>el[j].id) ^ baza_de_date.cpp:160:17: error: stray '\233' in program baza_de_date.cpp:160:17: error: stray '\310' in program baza_de_date.cpp:160:17: error: stray '\233' in program baza_de_date.cpp:163:13: error: stray '\303' in program cout<<el[i].prenume<<" "<<el[i].nume<<" "<<el[i].salariu<<" "<<el[i].vârstă<<" "<<el[i].funcție<<" "<<el[i].număr_de_telefon<<" "<<el[i].email<<endl; ^ baza_de_date.cpp:163:13: error: stray '\242' in program baza_de_date.cpp:163:13: error: stray '\304' in program baza_de_date.cpp:163:13: error: stray '\203' in program baza_de_date.cpp:163:13: error: stray '\310' in program baza_de_date.cpp:163:13: error: stray '\233' in program baza_de_date.cpp:163:13: error: stray '\304' in program baza_de_date.cpp:163:13: error: stray '\203' in program baza_de_date.cpp:170:17: error: stray '\304' in program if(strcmp(el[i].număr_de_telefon,el[j].număr_de_telefon)>0) ^ baza_de_date.cpp:170:17: error: stray '\203' in program baza_de_date.cpp:170:17: error: stray '\304' in program baza_de_date.cpp:170:17: error: stray '\203' in program baza_de_date.cpp:174:17: error: stray '\304' in program if(strcmp(el[i].număr_de_telefon,el[j].număr_de_telefon)==0&&el[i].id>el[j].id) ^ baza_de_date.cpp:174:17: error: stray '\203' in program baza_de_date.cpp:174:17: error: stray '\304' in program baza_de_date.cpp:174:17: error: stray '\203' in program baza_de_date.cpp:177:13: error: stray '\303' in program cout<<el[i].prenume<<" "<<el[i].nume<<" "<<el[i].salariu<<" "<<el[i].vârstă<<" "<<el[i].funcție<<" "<<el[i].număr_de_telefon<<" "<<el[i].email<<endl; ^ baza_de_date.cpp:177:13: error: stray '\242' in program baza_de_date.cpp:177:13: error: stray '\304' in program baza_de_date.cpp:177:13: error: stray '\203' in program baza_de_date.cpp:177:13: error: stray '\310' in program baza_de_date.cpp:177:13: error: stray '\233' in program baza_de_date.cpp:177:13: error: stray '\304' in program baza_de_date.cpp:177:13: error: stray '\203' in program baza_de_date.cpp:185:17: error: stray '\304' in program if(strcmp(el[i].număr_de_telefon,el[j].număr_de_telefon)<0) ^ baza_de_date.cpp:185:17: error: stray '\203' in program baza_de_date.cpp:185:17: error: stray '\304' in program baza_de_date.cpp:185:17: error: stray '\203' in program baza_de_date.cpp:189:17: error: stray '\304' in program if(strcmp(el[i].număr_de_telefon,el[j].număr_de_telefon)==0&&el[i].id>el[j].id) ^ baza_de_date.cpp:189:17: error: stray '\203' in program baza_de_date.cpp:189:17: error: stray '\304' in program baza_de_date.cpp:189:17: error: stray '\203' in program baza_de_date.cpp:192:13: error: stray '\303' in program cout<<el[i].prenume<<" "<<el[i].nume<<" "<<el[i].salariu<<" "<<el[i].vârstă<<" "<<el[i].funcție<<" "<<el[i].număr_de_telefon<<" "<<el[i].email<<endl; ^ baza_de_date.cpp:192:13: error: stray '\242' in program baza_de_date.cpp:192:13: error: stray '\304' in program baza_de_date.cpp:192:13: error: stray '\203' in program baza_de_date.cpp:192:13: error: stray '\310' in program baza_de_date.cpp:192:13: error: stray '\233' in program baza_de_date.cpp:192:13: error: stray '\304' in program baza_de_date.cpp:192:13: error: stray '\203' in program baza_de_date.cpp:207:13: error: stray '\303' in program cout<<el[i].prenume<<" "<<el[i].nume<<" "<<el[i].salariu<<" "<<el[i].vârstă<<" "<<el[i].funcție<<" "<<el[i].număr_de_telefon<<" "<<el[i].email<<endl; ^ baza_de_date.cpp:207:13: error: stray '\242' in program baza_de_date.cpp:207:13: error: stray '\304' in program baza_de_date.cpp:207:13: error: stray '\203' in program baza_de_date.cpp:207:13: error: stray '\310' in program baza_de_date.cpp:207:13: error: stray '\233' in program baza_de_date.cpp:207:13: error: stray '\304' in program baza_de_date.cpp:207:13: error: stray '\203' in program baza_de_date.cpp:221:13: error: stray '\303' in program cout<<el[i].prenume<<" "<<el[i].nume<<" "<<el[i].salariu<<" "<<el[i].vârstă<<" "<<el[i].funcție<<" "<<el[i].număr_de_telefon<<" "<<el[i].email<<endl; ^ baza_de_date.cpp:221:13: error: stray '\242' in program baza_de_date.cpp:221:13: error: stray '\304' in program baza_de_date.cpp:221:13: error: stray '\203' in program baza_de_date.cpp:221:13: error: stray '\310' in program baza_de_date.cpp:221:13: error: stray '\233' in program baza_de_date.cpp:221:13: error: stray '\304' in program baza_de_date.cpp:221:13: error: stray '\203' in program baza_de_date.cpp:7:37: error: expected ';' at end of member declaration unsigned long long int salariu, vârstă,id; ^ baza_de_date.cpp:7:40: error: 'rst' does not name a type unsigned long long int salariu, vârstă,id; ^ baza_de_date.cpp: In function 'int main()': baza_de_date.cpp:14:62: error: expected ';' before 'rst' {cin>>el[i].prenume>>el[i].nume>>el[i].salariu>>el[i].vârstă>>el[i].funcție>>el[i].număr_de_telefon>>el[i].email; ^ baza_de_date.cpp:15:12: error: 'struct ang' has no member named 'id' el[i].id=i;} ^ baza_de_date.cpp:27:66: error: 'struct ang' has no member named 'id' if(strcmp(el[i].prenume,el[j].prenume)==0&&el[i].id>el[j].id) ^ baza_de_date.cpp:27:75: error: 'struct ang' has no member named 'id' if(strcmp(el[i].prenume,el[j].prenume)==0&&el[i].id>el[j].id) ^ baza_de_date.cpp:30:85: error: expected ';' before 'rst' cout<<el[i].prenume<<" "<<el[i].nume<<" "<<el[i].salariu<<" "<<el[i].vârstă<<" "<<el[i].funcție<<" "<<el[i].număr_de_telefon<<" "<<el[i].email<<endl; ^ baza_de_date.cpp:42:66: error: 'struct ang' has no member named 'id' if(strcmp(el[i].prenume,el[j].prenume)==0&&el[i].id>el[j].id) ^ baza_de_date.cpp:42:75: error: 'struct ang' has no member named 'id' if(strcmp(el[i].prenume,el[j].prenume)==0&&el[i].id>el[j].id) ^ baza_de_date.cpp:45:85: error: expected ';' before 'rst' cout<<el[i].prenume<<" "<<el[i].nume<<" "<<el[i].salariu<<" "<<el[i].vârstă<<" "<<el[i].funcție<<" "<<el[i].număr_de_telefon<<" "<<el[i].email<<endl; ^ baza_de_date.cpp:57:60: error: 'struct ang' has no member named 'id' if(strcmp(el[i].nume,el[j].nume)==0&&el[i].id>el[j].id) ^ baza_de_date.cpp:57:69: error: 'struct ang' has no member named 'id' if(strcmp(el[i].nume,el[j].nume)==0&&el[i].id>el[j].id) ^ baza_de_date.cpp:60:85: error: expected ';' before 'rst' cout<<el[i].prenume<<" "<<el[i].nume<<" "<<el[i].salariu<<" "<<el[i].vârstă<<" "<<el[i].funcție<<" "<<el[i].număr_de_telefon<<" "<<el[i].email<<endl; ^ baza_de_date.cpp:72:60: error: 'struct ang' has no member named 'id' if(strcmp(el[i].nume,el[j].nume)==0&&el[i].id>el[j].id) ^ baza_de_date.cpp:72:69: error: 'struct ang' has no member named 'id' if(strcmp(el[i].nume,el[j].nume)==0&&el[i].id>el[j].id) ^ baza_de_date.cpp:75:85: error: expected ';' before 'rst' cout<<el[i].prenume<<" "<<el[i].nume<<" "<<el[i].salariu<<" "<<el[i].vârstă<<" "<<el[i].funcție<<" "<<el[i].număr_de_telefon<<" "<<el[i].email<<endl; ^ baza_de_date.cpp:88:56: error: 'struct ang' has no member named 'id' if(el[i].salariu==el[j].salariu&&el[i].id>el[j].id) ^ baza_de_date.cpp:88:65: error: 'struct ang' has no member named 'id' if(el[i].salariu==el[j].salariu&&el[i].id>el[j].id) ^ baza_de_date.cpp:91:85: error: expected ';' before 'rst' cout<<el[i].prenume<<" "<<el[i].nume<<" "<<el[i].salariu<<" "<<el[i].vârstă<<" "<<el[i].funcție<<" "<<el[i].număr_de_telefon<<" "<<el[i].email<<endl; ^ baza_de_date.cpp:103:33: warning: suggest parentheses around comparison in operand of '==' [-Wparentheses] if(el[i].salariu==el[j].salariu==0&&el[i].id>el[j].id) ^ baza_de_date.cpp:103:59: error: 'struct ang' has no member named 'id' if(el[i].salariu==el[j].salariu==0&&el[i].id>el[j].id) ^ baza_de_date.cpp:103:68: error: 'struct ang' has no member named 'id' if(el[i].salariu==el[j].salariu==0&&el[i].id>el[j].id) ^ baza_de_date.cpp:106:85: error: expected ';' before 'rst' cout<<el[i].prenume<<" "<<el[i].nume<<" "<<el[i].salariu<<" "<<el[i].vârstă<<" "<<el[i].funcție<<" "<<el[i].număr_de_telefon<<" "<<el[i].email<<endl; ^ baza_de_date.cpp:113:29: error: expected ')' before 'rst' if(el[i].vârstă>el[j].vârstă) ^ baza_de_date.cpp:117:29: error: expected ')' before 'rst' if(el[i].vârstă==el[j].vârstă==0&&el[i].id>el[j].id) ^ baza_de_date.cpp:120:85: error: expected ';' before 'rst' cout<<el[i].prenume<<" "<<el[i].nume<<" "<<el[i].salariu<<" "<<el[i].vârstă<<" "<<el[i].funcție<<" "<<el[i].număr_de_telefon<<" "<<el[i].email<<endl; ^ baza_de_date.cpp:128:29: error: expected ')' before 'rst' if(el[i].vârstă<el[j].vârstă) ^ baza_de_date.cpp:132:29: error: expected ')' before 'rst' if(el[i].vârstă==el[j].vârstă==0&&el[i].id>el[j].id) ^ baza_de_date.cpp:135:85: error: expected ';' before 'rst' cout<<el[i].prenume<<" "<<el[i].nume<<" "<<el[i].salariu<<" "<<el[i].vârstă<<" "<<el[i].funcție<<" "<<el[i].număr_de_telefon<<" "<<el[i].email<<endl; ^ baza_de_date.cpp:142:33: error: 'struct ang' has no member named 'func' if(strcmp(el[i].funcție,el[j].funcție)>0) ^ baza_de_date.cpp:142:48: error: 'struct ang' has no member named 'func' if(strcmp(el[i].funcție,el[j].funcție)>0) ^ baza_de_date.cpp:145:33: error: 'struct ang' has no member named 'func' if(strcmp(el[i].funcție,el[j].funcție)==0&&el[i].id>el[j].id) ^ baza_de_date.cpp:145:48: error: 'struct ang' has no member named 'func' if(strcmp(el[i].funcție,el[j].funcție)==0&&el[i].id>el[j].id) ^ baza_de_date.cpp:145:68: error: 'struct ang' has no member named 'id' if(strcmp(el[i].funcție,el[j].funcție)==0&&el[i].id>el[j].id) ^ baza_de_date.cpp:145:77: error: 'struct ang' has no member named 'id' if(strcmp(el[i].funcție,el[j].funcție)==0&&el[i].id>el[j].id) ^ baza_de_date.cpp:148:85: error: expected ';' before 'rst' cout<<el[i].prenume<<" "<<el[i].nume<<" "<<el[i].salariu<<" "<<el[i].vârstă<<" "<<el[i].funcție<<" "<<el[i].număr_de_telefon<<" "<<el[i].email<<endl; ^ baza_de_date.cpp:157:33: error: 'struct ang' has no member named 'func' if(strcmp(el[i].funcție,el[j].funcție)<0) ^ baza_de_date.cpp:157:48: error: 'struct ang' has no member named 'func' if(strcmp(el[i].funcție,el[j].funcție)<0) ^ baza_de_date.cpp:160:33: error: 'struct ang' has no member named 'func' if(strcmp(el[i].funcție,el[j].funcție)==0&&el[i].id>el[j].id) ^ baza_de_date.cpp:160:48: error: 'struct ang' has no member named 'func' if(strcmp(el[i].funcție,el[j].funcție)==0&&el[i].id>el[j].id) ^ baza_de_date.cpp:160:68: error: 'struct ang' has no member named 'id' if(strcmp(el[i].funcție,el[j].funcție)==0&&el[i].id>el[j].id) ^ baza_de_date.cpp:160:77: error: 'struct ang' has no member named 'id' if(strcmp(el[i].funcție,el[j].funcție)==0&&el[i].id>el[j].id) ^ baza_de_date.cpp:163:85: error: expected ';' before 'rst' cout<<el[i].prenume<<" "<<el[i].nume<<" "<<el[i].salariu<<" "<<el[i].vârstă<<" "<<el[i].funcție<<" "<<el[i].număr_de_telefon<<" "<<el[i].email<<endl; ^ baza_de_date.cpp:170:33: error: 'struct ang' has no member named 'num' if(strcmp(el[i].număr_de_telefon,el[j].număr_de_telefon)>0) ^ baza_de_date.cpp:170:57: error: 'struct ang' has no member named 'num' if(strcmp(el[i].număr_de_telefon,el[j].număr_de_telefon)>0) ^ baza_de_date.cpp:174:33: error: 'struct ang' has no member named 'num' if(strcmp(el[i].număr_de_telefon,el[j].număr_de_telefon)==0&&el[i].id>el[j].id) ^ baza_de_date.cpp:174:57: error: 'struct ang' has no member named 'num' if(strcmp(el[i].număr_de_telefon,el[j].număr_de_telefon)==0&&el[i].id>el[j].id) ^ baza_de_date.cpp:174:86: error: 'struct ang' has no member named 'id' if(strcmp(el[i].număr_de_telefon,el[j].număr_de_telefon)==0&&el[i].id>el[j].id) ^ baza_de_date.cpp:174:95: error: 'struct ang' has no member named 'id' if(strcmp(el[i].număr_de_telefon,el[j].număr_de_telefon)==0&&el[i].id>el[j].id) ^ baza_de_date.cpp:177:85: error: expected ';' before 'rst' cout<<el[i].prenume<<" "<<el[i].nume<<" "<<el[i].salariu<<" "<<el[i].vârstă<<" "<<el[i].funcție<<" "<<el[i].număr_de_telefon<<" "<<el[i].email<<endl; ^ baza_de_date.cpp:185:33: error: 'struct ang' has no member named 'num' if(strcmp(el[i].număr_de_telefon,el[j].număr_de_telefon)<0) ^ baza_de_date.cpp:185:57: error: 'struct ang' has no member named 'num' if(strcmp(el[i].număr_de_telefon,el[j].număr_de_telefon)<0) ^ baza_de_date.cpp:189:33: error: 'struct ang' has no member named 'num' if(strcmp(el[i].număr_de_telefon,el[j].număr_de_telefon)==0&&el[i].id>el[j].id) ^ baza_de_date.cpp:189:57: error: 'struct ang' has no member named 'num' if(strcmp(el[i].număr_de_telefon,el[j].număr_de_telefon)==0&&el[i].id>el[j].id) ^ baza_de_date.cpp:189:86: error: 'struct ang' has no member named 'id' if(strcmp(el[i].număr_de_telefon,el[j].număr_de_telefon)==0&&el[i].id>el[j].id) ^ baza_de_date.cpp:189:95: error: 'struct ang' has no member named 'id' if(strcmp(el[i].număr_de_telefon,el[j].număr_de_telefon)==0&&el[i].id>el[j].id) ^ baza_de_date.cpp:192:85: error: expected ';' before 'rst' cout<<el[i].prenume<<" "<<el[i].nume<<" "<<el[i].salariu<<" "<<el[i].vârstă<<" "<<el[i].funcție<<" "<<el[i].număr_de_telefon<<" "<<el[i].email<<endl; ^ baza_de_date.cpp:204:62: error: 'struct ang' has no member named 'id' if(strcmp(el[i].email,el[j].email)==0&&el[i].id>el[j].id) ^ baza_de_date.cpp:204:71: error: 'struct ang' has no member named 'id' if(strcmp(el[i].email,el[j].email)==0&&el[i].id>el[j].id) ^ baza_de_date.cpp:207:85: error: expected ';' before 'rst' cout<<el[i].prenume<<" "<<el[i].nume<<" "<<el[i].salariu<<" "<<el[i].vârstă<<" "<<el[i].funcție<<" "<<el[i].număr_de_telefon<<" "<<el[i].email<<endl; ^ baza_de_date.cpp:219:62: error: 'struct ang' has no member named 'id' if(strcmp(el[i].email,el[j].email)==0&&el[i].id>el[j].id) ^ baza_de_date.cpp:219:71: error: 'struct ang' has no member named 'id' if(strcmp(el[i].email,el[j].email)==0&&el[i].id>el[j].id) ^ baza_de_date.cpp:221:85: error: expected ';' before 'rst' cout<<el[i].prenume<<" "<<el[i].nume<<" "<<el[i].salariu<<" "<<el[i].vârstă<<" "<<el[i].funcție<<" "<<el[i].număr_de_telefon<<" "<<el[i].email<<endl; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Baza De Date 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ă.