#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 | #53085415 | Utilizator | |
Fișier | baza_de_date.cpp | Dimensiune | 3.87 KB |
Data încărcării | 17 Octombrie 2024, 10:50 | Scor / rezultat | Eroare de compilare |
baza_de_date.cpp: In function 'void ordonare3()': baza_de_date.cpp:14:20: error: 'n' was not declared in this scope for(i=1;i<=n;i++) ^ baza_de_date.cpp:15:16: error: 'v' was not declared in this scope if(v[i].salariu>v[i+1].salariu) ^ baza_de_date.cpp:17:16: error: expected unqualified-id before '=' token aux=v[i]; ^ baza_de_date.cpp:19:23: error: expected primary-expression before ';' token v[i+1]=aux; ^ baza_de_date.cpp:23:5: error: expected ';' before 'else' else ^ baza_de_date.cpp:27:20: error: 'n' was not declared in this scope for(i=1;i<=n;i++) ^ baza_de_date.cpp:28:16: error: 'v' was not declared in this scope if(v[i].salariu<v[i+1].salariu) ^ baza_de_date.cpp:30:16: error: expected unqualified-id before '=' token aux=v[i]; ^ baza_de_date.cpp:32:23: error: expected primary-expression before ';' token v[i+1]=aux; ^ baza_de_date.cpp:36:27: error: expected ')' before ';' token }while(gata==false;) ^ baza_de_date.cpp:36:28: error: expected primary-expression before ')' token }while(gata==false;) ^ baza_de_date.cpp:36:28: error: expected ';' before ')' token baza_de_date.cpp: In function 'void ordonare4()': baza_de_date.cpp:47:20: error: 'n' was not declared in this scope for(i=1;i<=n;i++) ^ baza_de_date.cpp:48:16: error: 'v' was not declared in this scope if(v[i].varsta>v[i+1].varsta) ^ baza_de_date.cpp:50:16: error: expected unqualified-id before '=' token aux=v[i]; ^ baza_de_date.cpp:52:23: error: expected primary-expression before ';' token v[i+1]=aux; ^ baza_de_date.cpp:56:5: error: expected ';' before 'else' else ^ baza_de_date.cpp:60:20: error: 'n' was not declared in this scope for(i=1;i<=n;i++) ^ baza_de_date.cpp:61:16: error: 'v' was not declared in this scope if(v[i].varsta<v[i+1].varsta) ^ baza_de_date.cpp:63:16: error: expected unqualified-id before '=' token aux=v[i]; ^ baza_de_date.cpp:65:23: error: expected primary-expression before ';' token v[i+1]=aux; ^ baza_de_date.cpp:69:27: error: expected ')' before ';' token }while(gata==false;) ^ baza_de_date.cpp:69:28: error: expected primary-expression before ')' token }while(gata==false;) ^ baza_de_date.cpp:69:28: error: expected ';' before ')' token baza_de_date.cpp: In function 'void citire()': baza_de_date.cpp:75:16: error: 'n' was not declared in this scope for(i=1;i<=n;i++) ^ baza_de_date.cpp:77:14: error: 'v' was not declared in this scope cin>>v[i].prenume; ^ baza_de_date.cpp: In function 'int main()': baza_de_date.cpp:97:15: error: 'ordonare1' was not declared in this scope ordonare1(); ^ baza_de_date.cpp:98:16: error: 'n' was not declared in this scope for(i=1;i<=n;i++) ^ baza_de_date.cpp:100:13: error: no match for 'operator>>' (operand types are 'std::ostream {aka std::basic_ostream<char>}' and 'char [255]') cout>>v[i].prenume<< " "; ^ baza_de_date.cpp:100:13: note: candidates are: In file included from /usr/include/c++/4.8/string:53:0, from /usr/include/c++/4.8/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from baza_de_date.cpp:1: /usr/include/c++/4.8/bits/basic_string.tcc:996:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::basic_string<_CharT, _Traits, _Alloc>&) operator>>(basic_istream<_CharT, _Traits>& __in, ^ /usr/include/c++/4.8/bits/basic_string.tcc:996:5: note: template argument deduction/substitution failed: baza_de_date.cpp:100:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>' cout>>v[i].prenume<< " "; ^ In file included from /usr/include/c++/4.8/istream:882:0, from /usr/include/c++/4.8/iostream:40, from baza_de_date.cpp:1: /usr/include/c++/4.8/bits/istream.tcc:955:5: note: template<class _CharT2, class _Traits2> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT2*) operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s) ^ /usr/include/c++/4.8/bits/istream.tcc:955:5: note: template argument deduction/substitution failed: baza_de_date.cpp:100:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>' cout>>v[i].prenume<< " "; ^ In file included from /usr/include/c++/4.8/istream:882:0, from /usr/include/c++/4.8/iostream:40, from baza_de_date.cpp:1: /usr/include/c++/4.8/bits/istream.tcc:923:5: note: template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT&) operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c) ^ /usr/include/c++/4.8/bits/istream.tcc:923:5: note: template argument deduction/substitution failed: baza_de_date.cpp:100:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>' cout>>v[i].prenume<< " "; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:727:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char&) operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c) ^ /usr/include/c++/4.8/istream:727:5: note: template argument deduction/substitution failed: baza_de_date.cpp:100:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>' cout>>v[i].prenume<< " "; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:732:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char&) operator>>(basic_istream<char, _Traits>& __in, signed char& __c) ^ /usr/include/c++/4.8/istream:732:5: note: template argument deduction/substitution failed: baza_de_date.cpp:100:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>' cout>>v[i].prenume<< " "; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:774:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char*) operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s) ^ /usr/include/c++/4.8/istream:774:5: note: template argument deduction/substitution failed: baza_de_date.cpp:100:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>' cout>>v[i].prenume<< " "; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:779:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char*) operator>>(basic_istream<char, _Traits>& __in, signed char* __s) ^ /usr/include/c++/4.8/istream:779:5: note: template argument deduction/substitution failed: baza_de_date.cpp:100:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>' cout>>v[i].prenume<< " "; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:872:5: note: template<class _CharT, class _Traits, class _Tp> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&&, _Tp&) operator>>(basic_istream<_CharT, _Traits>&& __is, _Tp& __x) ^ /usr/include/c++/4.8/istream:872:5: note: template argument deduction/substitution failed: baza_de_date.cpp:100:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>' cout>>v[i].prenume<< " "; ^ baza_de_date.cpp:101:13: error: no match for 'operator>>' (operand types are 'std::ostream {aka std::basic_ostream<char>}' and 'char [255]') cout>>v[i].nume<<" "; ^ baza_de_date.cpp:101:13: note: candidates are: In file included from /usr/include/c++/4.8/string:53:0, from /usr/include/c++/4.8/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from baza_de_date.cpp:1: /usr/include/c++/4.8/bits/basic_string.tcc:996:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::basic_string<_CharT, _Traits, _Alloc>&) operator>>(basic_istream<_CharT, _Traits>& __in, ^ /usr/include/c++/4.8/bits/basic_string.tcc:996:5: note: template argument deduction/substitution failed: baza_de_date.cpp:101:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>' cout>>v[i].nume<<" "; ^ In file included from /usr/include/c++/4.8/istream:882:0, from /usr/include/c++/4.8/iostream:40, from baza_de_date.cpp:1: /usr/include/c++/4.8/bits/istream.tcc:955:5: note: template<class _CharT2, class _Traits2> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT2*) operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s) ^ /usr/include/c++/4.8/bits/istream.tcc:955:5: note: template argument deduction/substitution failed: baza_de_date.cpp:101:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>' cout>>v[i].nume<<" "; ^ In file included from /usr/include/c++/4.8/istream:882:0, from /usr/include/c++/4.8/iostream:40, from baza_de_date.cpp:1: /usr/include/c++/4.8/bits/istream.tcc:923:5: note: template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT&) operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c) ^ /usr/include/c++/4.8/bits/istream.tcc:923:5: note: template argument deduction/substitution failed: baza_de_date.cpp:101:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>' cout>>v[i].nume<<" "; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:727:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char&) operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c) ^ /usr/include/c++/4.8/istream:727:5: note: template argument deduction/substitution failed: baza_de_date.cpp:101:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>' cout>>v[i].nume<<" "; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:732:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char&) operator>>(basic_istream<char, _Traits>& __in, signed char& __c) ^ /usr/include/c++/4.8/istream:732:5: note: template argument deduction/substitution failed: baza_de_date.cpp:101:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>' cout>>v[i].nume<<" "; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:774:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char*) operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s) ^ /usr/include/c++/4.8/istream:774:5: note: template argument deduction/substitution failed: baza_de_date.cpp:101:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>' cout>>v[i].nume<<" "; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:779:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char*) operator>>(basic_istream<char, _Traits>& __in, signed char* __s) ^ /usr/include/c++/4.8/istream:779:5: note: template argument deduction/substitution failed: baza_de_date.cpp:101:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>' cout>>v[i].nume<<" "; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:872:5: note: template<class _CharT, class _Traits, class _Tp> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&&, _Tp&) operator>>(basic_istream<_CharT, _Traits>&& __is, _Tp& __x) ^ /usr/include/c++/4.8/istream:872:5: note: template argument deduction/substitution failed: baza_de_date.cpp:101:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>' cout>>v[i].nume<<" "; ^ baza_de_date.cpp:102:13: error: no match for 'operator>>' (operand types are 'std::ostream {aka std::basic_ostream<char>}' and 'int') cout>>v[i].salariu<<" "; ^ baza_de_date.cpp:102:13: note: candidates are: In file included from /usr/include/c++/4.8/string:53:0, from /usr/include/c++/4.8/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from baza_de_date.cpp:1: /usr/include/c++/4.8/bits/basic_string.tcc:996:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::basic_string<_CharT, _Traits, _Alloc>&) operator>>(basic_istream<_CharT, _Traits>& __in, ^ /usr/include/c++/4.8/bits/basic_string.tcc:996:5: note: template argument deduction/substitution failed: baza_de_date.cpp:102:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>' cout>>v[i].salariu<<" "; ^ In file included from /usr/include/c++/4.8/istream:882:0, from /usr/include/c++/4.8/iostream:40, from baza_de_date.cpp:1: /usr/include/c++/4.8/bits/istream.tcc:955:5: note: template<class _CharT2, class _Traits2> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT2*) operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s) ^ /usr/include/c++/4.8/bits/istream.tcc:955:5: note: template argument deduction/substitution failed: baza_de_date.cpp:102:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>' cout>>v[i].salariu<<" "; ^ In file included from /usr/include/c++/4.8/istream:882:0, from /usr/include/c++/4.8/iostream:40, from baza_de_date.cpp:1: /usr/include/c++/4.8/bits/istream.tcc:923:5: note: template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT&) operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c) ^ /usr/include/c++/4.8/bits/istream.tcc:923:5: note: template argument deduction/substitution failed: baza_de_date.cpp:102:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>' cout>>v[i].salariu<<" "; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:727:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char&) operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c) ^ /usr/include/c++/4.8/istream:727:5: note: template argument deduction/substitution failed: baza_de_date.cpp:102:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>' cout>>v[i].salariu<<" "; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:732:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char&) operator>>(basic_istream<char, _Traits>& __in, signed char& __c) ^ /usr/include/c++/4.8/istream:732:5: note: template argument deduction/substitution failed: baza_de_date.cpp:102:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>' cout>>v[i].salariu<<" "; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:774:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char*) operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s) ^ /usr/include/c++/4.8/istream:774:5: note: template argument deduction/substitution failed: baza_de_date.cpp:102:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>' cout>>v[i].salariu<<" "; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:779:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char*) operator>>(basic_istream<char, _Traits>& __in, signed char* __s) ^ /usr/include/c++/4.8/istream:779:5: note: template argument deduction/substitution failed: baza_de_date.cpp:102:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>' cout>>v[i].salariu<<" "; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:872:5: note: template<class _CharT, class _Traits, class _Tp> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&&, _Tp&) operator>>(basic_istream<_CharT, _Traits>&& __is, _Tp& __x) ^ /usr/include/c++/4.8/istream:872:5: note: template argument deduction/substitution failed: baza_de_date.cpp:102:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>' cout>>v[i].salariu<<" "; ^ baza_de_date.cpp:103:13: error: no match for 'operator>>' (operand types are 'std::ostream {aka std::basic_ostream<char>}' and 'int') cout>>v[i].varsta<<" "; ^ baza_de_date.cpp:103:13: note: candidates are: In file included from /usr/include/c++/4.8/string:53:0, from /usr/include/c++/4.8/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from baza_de_date.cpp:1: /usr/include/c++/4.8/bits/basic_string.tcc:996:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::basic_string<_CharT, _Traits, _Alloc>&) operator>>(basic_istream<_CharT, _Traits>& __in, ^ /usr/include/c++/4.8/bits/basic_string.tcc:996:5: note: template argument deduction/substitution failed: baza_de_date.cpp:103:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>' cout>>v[i].varsta<<" "; ^ In file included from /usr/include/c++/4.8/istream:882:0, from /usr/include/c++/4.8/iostream:40, from baza_de_date.cpp:1: /usr/include/c++/4.8/bits/istream.tcc:955:5: note: template<class _CharT2, class _Traits2> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT2*) operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s) ^ /usr/include/c++/4.8/bits/istream.tcc:955:5: note: template argument deduction/substitution failed: baza_de_date.cpp:103:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>' cout>>v[i].varsta<<" "; ^ In file included from /usr/include/c++/4.8/istream:882:0, from /usr/include/c++/4.8/iostream:40, from baza_de_date.cpp:1: /usr/include/c++/4.8/bits/istream.tcc:923:5: note: template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT&) operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c) ^ /usr/include/c++/4.8/bits/istream.tcc:923:5: note: template argument deduction/substitution failed: baza_de_date.cpp:103:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>' cout>>v[i].varsta<<" "; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:727:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char&) operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c) ^ /usr/include/c++/4.8/istream:727:5: note: template argument deduction/substitution failed: baza_de_date.cpp:103:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>' cout>>v[i].varsta<<" "; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:732:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char&) operator>>(basic_istream<char, _Traits>& __in, signed char& __c) ^ /usr/include/c++/4.8/istream:732:5: note: template argument deduction/substitution failed: baza_de_date.cpp:103:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>' cout>>v[i].varsta<<" "; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:774:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char*) operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s) ^ /usr/include/c++/4.8/istream:774:5: note: template argument deduction/substitution failed: baza_de_date.cpp:103:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>' cout>>v[i].varsta<<" "; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:779:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char*) operator>>(basic_istream<char, _Traits>& __in, signed char* __s) ^ /usr/include/c++/4.8/istream:779:5: note: template argument deduction/substitution failed: baza_de_date.cpp:103:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>' cout>>v[i].varsta<<" "; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:872:5: note: template<class _CharT, class _Traits, class _Tp> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&&, _Tp&) operator>>(basic_istream<_CharT, _Traits>&& __is, _Tp& __x) ^ /usr/include/c++/4.8/istream:872:5: note: template argument deduction/substitution failed: baza_de_date.cpp:103:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>' cout>>v[i].varsta<<" "; ^ baza_de_date.cpp:104:13: error: no match for 'operator>>' (operand types are 'std::ostream {aka std::basic_ostream<char>}' and 'char [255]') cout>>v[i].functie<<" "; ^ baza_de_date.cpp:104:13: note: candidates are: In file included from /usr/include/c++/4.8/string:53:0, from /usr/include/c++/4.8/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from baza_de_date.cpp:1: /usr/include/c++/4.8/bits/basic_string.tcc:996:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::basic_string<_CharT, _Traits, _Alloc>&) operator>>(basic_istream<_CharT, _Traits>& __in, ^ /usr/include/c++/4.8/bits/basic_string.tcc:996:5: note: template argument deduction/substitution failed: baza_de_date.cpp:104:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>' cout>>v[i].functie<<" "; ^ In file included from /usr/include/c++/4.8/istream:882:0, from /usr/include/c++/4.8/iostream:40, from baza_de_date.cpp:1: /usr/include/c++/4.8/bits/istream.tcc:955:5: note: template<class _CharT2, class _Traits2> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT2*) operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s) ^ /usr/include/c++/4.8/bits/istream.tcc:955:5: note: template argument deduction/substitution failed: baza_de_date.cpp:104:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>' cout>>v[i].functie<<" "; ^ In file included from /usr/include/c++/4.8/istream:882:0, from /usr/include/c++/4.8/iostream:40, from baza_de_date.cpp:1: /usr/include/c++/4.8/bits/istream.tcc:923:5: note: template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT&) operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c) ^ /usr/include/c++/4.8/bits/istream.tcc:923:5: note: template argument deduction/substitution failed: baza_de_date.cpp:104:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>' cout>>v[i].functie<<" "; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:727:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char&) operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c) ^ /usr/include/c++/4.8/istream:727:5: note: template argument deduction/substitution failed: baza_de_date.cpp:104:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>' cout>>v[i].functie<<" "; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:732:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char&) operator>>(basic_istream<char, _Traits>& __in, signed char& __c) ^ /usr/include/c++/4.8/istream:732:5: note: template argument deduction/substitution failed: baza_de_date.cpp:104:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>' cout>>v[i].functie<<" "; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:774:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char*) operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s) ^ /usr/include/c++/4.8/istream:774:5: note: template argument deduction/substitution failed: baza_de_date.cpp:104:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>' cout>>v[i].functie<<" "; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:779:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char*) operator>>(basic_istream<char, _Traits>& __in, signed char* __s) ^ /usr/include/c++/4.8/istream:779:5: note: template argument deduction/substitution failed: baza_de_date.cpp:104:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>' cout>>v[i].functie<<" "; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:872:5: note: template<class _CharT, class _Traits, class _Tp> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&&, _Tp&) operator>>(basic_istream<_CharT, _Traits>&& __is, _Tp& __x) ^ /usr/include/c++/4.8/istream:872:5: note: template argument deduction/substitution failed: baza_de_date.cpp:104:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>' cout>>v[i].functie<<" "; ^ baza_de_date.cpp:105:13: error: no match for 'operator>>' (operand types are 'std::ostream {aka std::basic_ostream<char>}' and 'char [255]') cout>>v[i].nrtel<<" "; ^ baza_de_date.cpp:105:13: note: candidates are: In file included from /usr/include/c++/4.8/string:53:0, from /usr/include/c++/4.8/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from baza_de_date.cpp:1: /usr/include/c++/4.8/bits/basic_string.tcc:996:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::basic_string<_CharT, _Traits, _Alloc>&) operator>>(basic_istream<_CharT, _Traits>& __in, ^ /usr/include/c++/4.8/bits/basic_string.tcc:996:5: note: template argument deduction/substitution failed: baza_de_date.cpp:105:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>' cout>>v[i].nrtel<<" "; ^ In file included from /usr/include/c++/4.8/istream:882:0, from /usr/include/c++/4.8/iostream:40, from baza_de_date.cpp:1: /usr/include/c++/4.8/bits/istream.tcc:955:5: note: template<class _CharT2, class _Traits2> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT2*) operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s) ^ /usr/include/c++/4.8/bits/istream.tcc:955:5: note: template argument deduction/substitution failed: baza_de_date.cpp:105:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>' cout>>v[i].nrtel<<" "; ^ In file included from /usr/include/c++/4.8/istream:882:0, from /usr/include/c++/4.8/iostream:40, from baza_de_date.cpp:1: /usr/include/c++/4.8/bits/istream.tcc:923:5: note: template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT&) operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c) ^ /usr/include/c++/4.8/bits/istream.tcc:923:5: note: template argument deduction/substitution failed: baza_de_date.cpp:105:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>' cout>>v[i].nrtel<<" "; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:727:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char&) operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c) ^ /usr/include/c++/4.8/istream:727:5: note: template argument deduction/substitution failed: baza_de_date.cpp:105:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>' cout>>v[i].nrtel<<" "; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:732:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char&) operator>>(basic_istream<char, _Traits>& __in, signed char& __c) ^ /usr/include/c++/4.8/istream:732:5: note: template argument deduction/substitution failed: baza_de_date.cpp:105:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>' cout>>v[i].nrtel<<" "; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:774:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char*) operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s) ^ /usr/include/c++/4.8/istream:774:5: note: template argument deduction/substitution failed: baza_de_date.cpp:105:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>' cout>>v[i].nrtel<<" "; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:779:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char*) operator>>(basic_istream<char, _Traits>& __in, signed char* __s) ^ /usr/include/c++/4.8/istream:779:5: note: template argument deduction/substitution failed: baza_de_date.cpp:105:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>' cout>>v[i].nrtel<<" "; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:872:5: note: template<class _CharT, class _Traits, class _Tp> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&&, _Tp&) operator>>(basic_istream<_CharT, _Traits>&& __is, _Tp& __x) ^ /usr/include/c++/4.8/istream:872:5: note: template argument deduction/substitution failed: baza_de_date.cpp:105:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>' cout>>v[i].nrtel<<" "; ^ baza_de_date.cpp:106:13: error: no match for 'operator>>' (operand types are 'std::ostream {aka std::basic_ostream<char>}' and 'char [255]') cout>>v[i].email<<" " ; ^ baza_de_date.cpp:106:13: note: candidates are: In file included from /usr/include/c++/4.8/string:53:0, from /usr/include/c++/4.8/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from baza_de_date.cpp:1: /usr/include/c++/4.8/bits/basic_string.tcc:996:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::basic_string<_CharT, _Traits, _Alloc>&) operator>>(basic_istream<_CharT, _Traits>& __in, ^ /usr/include/c++/4.8/bits/basic_string.tcc:996:5: note: template argument deduction/substitution failed: baza_de_date.cpp:106:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>' cout>>v[i].email<<" " ; ^ In file included from /usr/include/c++/4.8/istream:882:0, from /usr/include/c++/4.8/iostream:40, from baza_de_date.cpp:1: /usr/include/c++/4.8/bits/istream.tcc:955:5: note: template<class _CharT2, class _Traits2> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT2*) operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s) ^ /usr/include/c++/4.8/bits/istream.tcc:955:5: note: template argument deduction/substitution failed: baza_de_date.cpp:106:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>' cout>>v[i].email<<" " ; ^ In file included from /usr/include/c++/4.8/istream:882:0, from /usr/include/c++/4.8/iostream:40, from baza_de_date.cpp:1: /usr/include/c++/4.8/bits/istream.tcc:923:5: note: template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT&) operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c) ^ /usr/include/c++/4.8/bits/istream.tcc:923:5: note: template argument deduction/substitution failed: baza_de_date.cpp:106:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>' cout>>v[i].email<<" " ; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:727:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char&) operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c) ^ /usr/include/c++/4.8/istream:727:5: note: template argument deduction/substitution failed: baza_de_date.cpp:106:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>' cout>>v[i].email<<" " ; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:732:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char&) operator>>(basic_istream<char, _Traits>& __in, signed char& __c) ^ /usr/include/c++/4.8/istream:732:5: note: template argument deduction/substitution failed: baza_de_date.cpp:106:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>' cout>>v[i].email<<" " ; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:774:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char*) operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s) ^ /usr/include/c++/4.8/istream:774:5: note: template argument deduction/substitution failed: baza_de_date.cpp:106:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>' cout>>v[i].email<<" " ; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:779:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char*) operator>>(basic_istream<char, _Traits>& __in, signed char* __s) ^ /usr/include/c++/4.8/istream:779:5: note: template argument deduction/substitution failed: baza_de_date.cpp:106:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>' cout>>v[i].email<<" " ; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:872:5: note: template<class _CharT, class _Traits, class _Tp> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&&, _Tp&) operator>>(basic_istream<_CharT, _Traits>&& __is, _Tp& __x) ^ /usr/include/c++/4.8/istream:872:5: note: template argument deduction/substitution failed: baza_de_date.cpp:106:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>' cout>>v[i].email<<" " ; ^ baza_de_date.cpp:112:15: error: 'ordonare2' was not declared in this scope ordonare2(); ^ baza_de_date.cpp:113:17: error: 'n' was not declared in this scope for(i=1;i<=n;i++) ^ baza_de_date.cpp:115:13: error: no match for 'operator>>' (operand types are 'std::ostream {aka std::basic_ostream<char>}' and 'char [255]') cout>>v[i].prenume<<" "; ^ baza_de_date.cpp:115:13: note: candidates are: In file included from /usr/include/c++/4.8/string:53:0, from /usr/include/c++/4.8/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from baza_de_date.cpp:1: /usr/include/c++/4.8/bits/basic_string.tcc:996:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::basic_string<_CharT, _Traits, _Alloc>&) operator>>(basic_istream<_CharT, _Traits>& __in, ^ /usr/include/c++/4.8/bits/basic_string.tcc:996:5: note: template argument deduction/substitution failed: baza_de_date.cpp:115:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>' cout>>v[i].prenume<<" "; ^ In file included from /usr/include/c++/4.8/istream:882:0, from /usr/include/c++/4.8/iostream:40, from baza_de_date.cpp:1: /usr/include/c++/4.8/bits/istream.tcc:955:5: note: template<class _CharT2, class _Traits2> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT2*) operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s) ^ /usr/include/c++/4.8/bits/istream.tcc:955:5: note: template argument deduction/substitution failed: baza_de_date.cpp:115:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>' cout>>v[i].prenume<<" "; ^ In file included from /usr/include/c++/4.8/istream:882:0, from /usr/include/c++/4.8/iostream:40, from baza_de_date.cpp:1: /usr/include/c++/4.8/bits/istream.tcc:923:5: note: template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT&) operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c) ^ /usr/include/c++/4.8/bits/istream.tcc:923:5: note: template argument deduction/substitution failed: baza_de_date.cpp:115:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>' cout>>v[i].prenume<<" "; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:727:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char&) operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c) ^ /usr/include/c++/4.8/istream:727:5: note: template argument deduction/substitution failed: baza_de_date.cpp:115:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>' cout>>v[i].prenume<<" "; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:732:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char&) operator>>(basic_istream<char, _Traits>& __in, signed char& __c) ^ /usr/include/c++/4.8/istream:732:5: note: template argument deduction/substitution failed: baza_de_date.cpp:115:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>' cout>>v[i].prenume<<" "; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:774:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char*) operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s) ^ /usr/include/c++/4.8/istream:774:5: note: template argument deduction/substitution failed: baza_de_date.cpp:115:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>' cout>>v[i].prenume<<" "; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:779:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char*) operator>>(basic_istream<char, _Traits>& __in, signed char* __s) ^ /usr/include/c++/4.8/istream:779:5: note: template argument deduction/substitution failed: baza_de_date.cpp:115:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>' cout>>v[i].prenume<<" "; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:872:5: note: template<class _CharT, class _Traits, class _Tp> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&&, _Tp&) operator>>(basic_istream<_CharT, _Traits>&& __is, _Tp& __x) ^ /usr/include/c++/4.8/istream:872:5: note: template argument deduction/substitution failed: baza_de_date.cpp:115:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>' cout>>v[i].prenume<<" "; ^ baza_de_date.cpp:116:13: error: no match for 'operator>>' (operand types are 'std::ostream {aka std::basic_ostream<char>}' and 'char [255]') cout>>v[i].nume<<" "; ^ baza_de_date.cpp:116:13: note: candidates are: In file included from /usr/include/c++/4.8/string:53:0, from /usr/include/c++/4.8/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from baza_de_date.cpp:1: /usr/include/c++/4.8/bits/basic_string.tcc:996:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::basic_string<_CharT, _Traits, _Alloc>&) operator>>(basic_istream<_CharT, _Traits>& __in, ^ /usr/include/c++/4.8/bits/basic_string.tcc:996:5: note: template argument deduction/substitution failed: baza_de_date.cpp:116:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>' cout>>v[i].nume<<" "; ^ In file included from /usr/include/c++/4.8/istream:882:0, from /usr/include/c++/4.8/iostream:40, from baza_de_date.cpp:1: /usr/include/c++/4.8/bits/istream.tcc:955:5: note: template<class _CharT2, class _Traits2> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT2*) operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s) ^ /usr/include/c++/4.8/bits/istream.tcc:955:5: note: template argument deduction/substitution failed: baza_de_date.cpp:116:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>' cout>>v[i].nume<<" "; ^ In file included from /usr/include/c++/4.8/istream:882:0, from /usr/include/c++/4.8/iostream:40, from baza_de_date.cpp:1: /usr/include/c++/4.8/bits/istream.tcc:923:5: note: template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT&) operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c) ^ /usr/include/c++/4.8/bits/istream.tcc:923:5: note: template argument deduction/substitution failed: baza_de_date.cpp:116:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>' cout>>v[i].nume<<" "; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:727:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char&) operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c) ^ /usr/include/c++/4.8/istream:727:5: note: template argument deduction/substitution failed: baza_de_date.cpp:116:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>' cout>>v[i].nume<<" "; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:732:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char&) operator>>(basic_istream<char, _Traits>& __in, signed char& __c) ^ /usr/include/c++/4.8/istream:732:5: note: template argument deduction/substitution failed: baza_de_date.cpp:116:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>' cout>>v[i].nume<<" "; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:774:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char*) operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s) ^ /usr/include/c++/4.8/istream:774:5: note: template argument deduction/substitution failed: baza_de_date.cpp:116:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>' cout>>v[i].nume<<" "; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:779:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char*) operator>>(basic_istream<char, _Traits>& __in, signed char* __s) ^ /usr/include/c++/4.8/istream:779:5: note: template argument deduction/substitution failed: baza_de_date.cpp:116:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>' cout>>v[i].nume<<" "; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:872:5: note: template<class _CharT, class _Traits, class _Tp> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&&, _Tp&) operator>>(basic_istream<_CharT, _Traits>&& __is, _Tp& __x) ^ /usr/include/c++/4.8/istream:872:5: note: template argument deduction/substitution failed: baza_de_date.cpp:116:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>' cout>>v[i].nume<<" "; ^ baza_de_date.cpp:117:13: error: no match for 'operator>>' (operand types are 'std::ostream {aka std::basic_ostream<char>}' and 'int') cout>>v[i].salariu<<" "; ^ baza_de_date.cpp:117:13: note: candidates are: In file included from /usr/include/c++/4.8/string:53:0, from /usr/include/c++/4.8/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from baza_de_date.cpp:1: /usr/include/c++/4.8/bits/basic_string.tcc:996:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::basic_string<_CharT, _Traits, _Alloc>&) operator>>(basic_istream<_CharT, _Traits>& __in, ^ /usr/include/c++/4.8/bits/basic_string.tcc:996:5: note: template argument deduction/substitution failed: baza_de_date.cpp:117:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>' cout>>v[i].salariu<<" "; ^ In file included from /usr/include/c++/4.8/istream:882:0, from /usr/include/c++/4.8/iostream:40, from baza_de_date.cpp:1: /usr/include/c++/4.8/bits/istream.tcc:955:5: note: template<class _CharT2, class _Traits2> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT2*) operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s) ^ /usr/include/c++/4.8/bits/istream.tcc:955:5: note: template argument deduction/substitution failed: baza_de_date.cpp:117:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>' cout>>v[i].salariu<<" "; ^ In file included from /usr/include/c++/4.8/istream:882:0, from /usr/include/c++/4.8/iostream:40, from baza_de_date.cpp:1: /usr/include/c++/4.8/bits/istream.tcc:923:5: note: template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT&) operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c) ^ /usr/include/c++/4.8/bits/istream.tcc:923:5: note: template argument deduction/substitution failed: baza_de_date.cpp:117:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>' cout>>v[i].salariu<<" "; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:727:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char&) operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c) ^ /usr/include/c++/4.8/istream:727:5: note: template argument deduction/substitution failed: baza_de_date.cpp:117:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>' cout>>v[i].salariu<<" "; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:732:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char&) operator>>(basic_istream<char, _Traits>& __in, signed char& __c) ^ /usr/include/c++/4.8/istream:732:5: note: template argument deduction/substitution failed: baza_de_date.cpp:117:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>' cout>>v[i].salariu<<" "; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:774:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char*) operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s) ^ /usr/include/c++/4.8/istream:774:5: note: template argument deduction/substitution failed: baza_de_date.cpp:117:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>' cout>>v[i].salariu<<" "; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:779:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char*) operator>>(basic_istream<char, _Traits>& __in, signed char* __s) ^ /usr/include/c++/4.8/istream:779:5: note: template argument deduction/substitution failed: baza_de_date.cpp:117:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>' cout>>v[i].salariu<<" "; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:872:5: note: template<class _CharT, class _Traits, class _Tp> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&&, _Tp&) operator>>(basic_istream<_CharT, _Traits>&& __is, _Tp& __x) ^ /usr/include/c++/4.8/istream:872:5: note: template argument deduction/substitution failed: baza_de_date.cpp:117:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>' cout>>v[i].salariu<<" "; ^ baza_de_date.cpp:118:13: error: no match for 'operator>>' (operand types are 'std::ostream {aka std::basic_ostream<char>}' and 'int') cout>>v[i].varsta<<" "; ^ baza_de_date.cpp:118:13: note: candidates are: In file included from /usr/include/c++/4.8/string:53:0, from /usr/include/c++/4.8/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from baza_de_date.cpp:1: /usr/include/c++/4.8/bits/basic_string.tcc:996:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::basic_string<_CharT, _Traits, _Alloc>&) operator>>(basic_istream<_CharT, _Traits>& __in, ^ /usr/include/c++/4.8/bits/basic_string.tcc:996:5: note: template argument deduction/substitution failed: baza_de_date.cpp:118:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>' cout>>v[i].varsta<<" "; ^ In file included from /usr/include/c++/4.8/istream:882:0, from /usr/include/c++/4.8/iostream:40, from baza_de_date.cpp:1: /usr/include/c++/4.8/bits/istream.tcc:955:5: note: template<class _CharT2, class _Traits2> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT2*) operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s) ^ /usr/include/c++/4.8/bits/istream.tcc:955:5: note: template argument deduction/substitution failed: baza_de_date.cpp:118:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>' cout>>v[i].varsta<<" "; ^ In file included from /usr/include/c++/4.8/istream:882:0, from /usr/include/c++/4.8/iostream:40, from baza_de_date.cpp:1: /usr/include/c++/4.8/bits/istream.tcc:923:5: note: template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT&) operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c) ^ /usr/include/c++/4.8/bits/istream.tcc:923:5: note: template argument deduction/substitution failed: baza_de_date.cpp:118:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<_CharT, _Traits>' cout>>v[i].varsta<<" "; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:727:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char&) operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c) ^ /usr/include/c++/4.8/istream:727:5: note: template argument deduction/substitution failed: baza_de_date.cpp:118:20: note: 'std::ostream {aka std::basic_ostream<char>}' is not derived from 'std::basic_istream<char, _Traits>' cout>>v[i].varsta<<" "; ^ In file included from /usr/include/c++/4.8/iostream:40:0, from baza_de_date.cpp:1: /usr/include/c++/4.8/istream:732:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char&) operator>>(basic_istream<char, _Traits>& __in, signed char& __c) ^ /usr/includ
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ă.