#675
BiFrunze
Se dă un arbore binar care conține valori numere naturale. Să se afișeze frunzele acestui arbore.
Problema | BiFrunze | Operații I/O |
bifrunze.in /bifrunze.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #49771597 | Utilizator | |
Fișier | bifrunze.cpp | Dimensiune | 3.15 KB |
Data încărcării | 14 Martie 2024, 13:46 | Scor / rezultat | Eroare de compilare |
bifrunze.cpp:82:17: warning: missing terminating " character [enabled by default] find<<a+b<< "grasu d int a,b; ^ bifrunze.cpp:82:5: error: missing terminating " character find<<a+b<< "grasu d int a,b; ^ bifrunze.cpp:114:31: warning: missing terminating " character [enabled by default] find<<a+b<< "grasu drq";rq" int a,b; ^ bifrunze.cpp:114:5: error: missing terminating " character find<<a+b<< "grasu drq";rq" int a,b; ^ bifrunze.cpp:11:5: error: 'c' does not name a type c int a,b; ^ bifrunze.cpp:12:5: error: 'cout' does not name a type cout<<a<<b; ^ bifrunze.cpp:13:5: error: 'cin' does not name a type cin>>a; ^ bifrunze.cpp:14:5: error: 'cin' does not name a type cin>>b; ^ bifrunze.cpp:15:5: error: 'find' does not name a type find<<a+b<< "grasu drq";out<<a<<b; ^ bifrunze.cpp:15:29: error: 'out' does not name a type find<<a+b<< "grasu drq";out<<a<<b; ^ bifrunze.cpp:16:5: error: 'ci' does not name a type ci int a,b; ^ bifrunze.cpp:17:5: error: 'cout' does not name a type cout<<a<<b; ^ bifrunze.cpp:18:5: error: 'cin' does not name a type cin>>a; ^ bifrunze.cpp:19:5: error: 'c' does not name a type c int a,b; ^ bifrunze.cpp:20:5: error: 'c' does not name a type c int a,b; ^ bifrunze.cpp:21:5: error: 'cout' does not name a type cout int a,b; ^ bifrunze.cpp:22:5: error: 'cout' does not name a type cout<<a<<b; ^ bifrunze.cpp:23:5: error: 'cin' does not name a type cin>>a; ^ bifrunze.cpp:24:5: error: 'cin' does not name a type cin>>b; ^ bifrunze.cpp:25:5: error: 'find' does not name a type find<<a+b<< "grasu drq";<<a<<b; ^ bifrunze.cpp:25:29: error: expected unqualified-id before '<<' token find<<a+b<< "grasu drq";<<a<<b; ^ bifrunze.cpp:26:5: error: 'cin' does not name a type cin> int a,b; ^ bifrunze.cpp:27:5: error: 'cout' does not name a type cout<<a<<b; ^ bifrunze.cpp:28:5: error: 'cin' does not name a type cin>>a; ^ bifrunze.cpp:29:5: error: 'cin' does not name a type cin>>b; ^ bifrunze.cpp:30:5: error: 'find' does not name a type find<<a+b<< "grasu drq";>a; ^ bifrunze.cpp:30:29: error: expected unqualified-id before '>' token find<<a+b<< "grasu drq";>a; ^ bifrunze.cpp:31:5: error: 'cin' does not name a type cin>>b; ^ bifrunze.cpp:32:5: error: 'find' does not name a type find<<a+b<< "grasu drq";out<<a<<b; ^ bifrunze.cpp:32:29: error: 'out' does not name a type find<<a+b<< "grasu drq";out<<a<<b; ^ bifrunze.cpp:33:5: error: 'cin' does not name a type cin> int a,b; ^ bifrunze.cpp:34:5: error: 'cout' does not name a type cout<<a<<b; ^ bifrunze.cpp:35:5: error: 'cin' does not name a type cin>>a; ^ bifrunze.cpp:36:5: error: 'cin' does not name a type cin>>b; ^ bifrunze.cpp:37:5: error: 'find' does not name a type find<<a+b<< "grasu drq";>a; ^ bifrunze.cpp:37:29: error: expected unqualified-id before '>' token find<<a+b<< "grasu drq";>a; ^ bifrunze.cpp:38:5: error: 'c' does not name a type c int a,b; ^ bifrunze.cpp:39:5: error: 'cout' does not name a type cout<<a<<b; ^ bifrunze.cpp:40:5: error: 'cin' does not name a type cin>>a; ^ bifrunze.cpp:41:5: error: 'cin' does not name a type cin>>b; ^ bifrunze.cpp:42:5: error: 'find' does not name a type find<<a+b<< "grasu drq";in int a,b; ^ bifrunze.cpp:42:29: error: 'in' does not name a type find<<a+b<< "grasu drq";in int a,b; ^ bifrunze.cpp:43:5: error: 'cout' does not name a type cout<<a<<b; ^ bifrunze.cpp:44:5: error: 'cin' does not name a type cin>>a; ^ bifrunze.cpp:45:5: error: 'cin' does not name a type cin>>b; ^ bifrunze.cpp:46:5: error: 'find' does not name a type find<<a+b<< "grasu drq";>>b; ^ bifrunze.cpp:46:29: error: expected unqualified-id before '>>' token find<<a+b<< "grasu drq";>>b; ^ bifrunze.cpp:47:5: error: 'find' does not name a type find<<a+b<< "grasu drq";in>>b; ^ bifrunze.cpp:47:29: error: 'in' does not name a type find<<a+b<< "grasu drq";in>>b; ^ bifrunze.cpp:48:5: error: 'find' does not name a type find<<a+b<< "grasu drq";n> int a,b; ^ bifrunze.cpp:48:29: error: 'n' does not name a type find<<a+b<< "grasu drq";n> int a,b; ^ bifrunze.cpp:49:5: error: 'cout' does not name a type cout<<a<<b; ^ bifrunze.cpp:50:5: error: 'cin' does not name a type cin>>a; ^ bifrunze.cpp:51:5: error: 'cin' does not name a type cin>>b; ^ bifrunze.cpp:52:5: error: 'find' does not name a type find int a,b; ^ bifrunze.cpp:53:5: error: 'cout' does not name a type cout<<a<<b; ^ bifrunze.cpp:54:5: error: 'c' does not name a type c int a,b; ^ bifrunze.cpp:55:5: error: 'cout' does not name a type cout<<a<<b; ^ bifrunze.cpp:56:5: error: 'cin' does not name a type cin>>a; ^ bifrunze.cpp:57:5: error: 'cin' does not name a type cin>>b; ^ bifrunze.cpp:58:5: error: 'find' does not name a type find<<a+b<< "grasu drq";in>>a; ^ bifrunze.cpp:58:29: error: 'in' does not name a type find<<a+b<< "grasu drq";in>>a; ^ bifrunze.cpp:59:5: error: 'cin' does not name a type cin>>b; ^ bifrunze.cpp:60:5: error: 'find' does not name a type find<<a+b<< "grasu drq";<<a+b<< "grasu drq";>a; ^ bifrunze.cpp:60:29: error: expected unqualified-id before '<<' token find<<a+b<< "grasu drq";<<a+b<< "grasu drq";>a; ^ bifrunze.cpp:60:49: error: expected unqualified-id before '>' token find<<a+b<< "grasu drq";<<a+b<< "grasu drq";>a; ^ bifrunze.cpp:61:5: error: 'cin' does not name a type cin>>b; ^ bifrunze.cpp:62:5: error: 'find' does not name a type find<<a int a,b; ^ bifrunze.cpp:63:5: error: 'cout' does not name a type cout<<a<<b; ^ bifrunze.cpp:64:5: error: 'cin' does not name a type cin>>a; ^ bifrunze.cpp:65:5: error: 'cin' does not name a type cin>>b; ^ bifrunze.cpp:66:5: error: 'find' does not name a type find<<a+b<< "grasu drq";+ int a,b; ^ bifrunze.cpp:66:29: error: expected unqualified-id before '+' token find<<a+b<< "grasu drq";+ int a,b; ^ bifrunze.cpp:67:5: error: 'cout' does not name a type cout<<a<<b; ^ bifrunze.cpp:68:5: error: 'cin' does not name a type cin>>a; ^ bifrunze.cpp:69:5: error: 'cin' does not name a type cin>>b; ^ bifrunze.cpp:70:5: error: 'find' does not name a type find<<a+b<< "grasu drq";b int a,b; ^ bifrunze.cpp:70:29: error: 'b' does not name a type find<<a+b<< "grasu drq";b int a,b; ^ bifrunze.cpp:71:5: error: 'cout' does not name a type cout<<a<<b; ^ bifrunze.cpp:72:5: error: 'cin' does not name a type cin>>a; ^ bifrunze.cpp:73:5: error: 'cin' does not name a type cin>>b; ^ bifrunze.cpp:74:5: error: 'find' does not name a type find<<a+b<< "grasu drq";< int a,b; ^ bifrunze.cpp:74:29: error: expected unqualified-id before '<' token find<<a+b<< "grasu drq";< int a,b; ^ bifrunze.cpp:75:5: error: 'cout' does not name a type cout<<a<<b; ^ bifrunze.cpp:76:5: error: 'cin' does not name a type cin>>a; ^ bifrunze.cpp:77:5: error: 'cin' does not name a type cin>>b; ^ bifrunze.cpp:78:5: error: 'find' does not name a type find<<a+b<< "grasu drq";< int a,b; ^ bifrunze.cpp:78:29: error: expected unqualified-id before '<' token find<<a+b<< "grasu drq";< int a,b; ^ bifrunze.cpp:79:5: error: 'cout' does not name a type cout<<a<<b; ^ bifrunze.cpp:80:5: error: 'cin' does not name a type cin>>a; ^ bifrunze.cpp:81:5: error: 'cin' does not name a type cin>>b; ^ bifrunze.cpp:82:5: error: 'find' does not name a type find<<a+b<< "grasu d int a,b; ^ bifrunze.cpp:84:5: error: 'cin' does not name a type cin> int a,b; ^ bifrunze.cpp:85:5: error: 'cout' does not name a type cout<<a<<b; ^ bifrunze.cpp:86:10: error: redefinition of 'int a' int a,b; ^ bifrunze.cpp:10:9: error: 'int a' previously declared here int a,b; ^ bifrunze.cpp:86:12: error: redefinition of 'int b' int a,b; ^ bifrunze.cpp:10:11: error: 'int b' previously declared here int a,b; ^ bifrunze.cpp:87:12: error: redefinition of 'int a' int a,b; ^ bifrunze.cpp:10:9: error: 'int a' previously declared here int a,b; ^ bifrunze.cpp:87:14: error: redefinition of 'int b' int a,b; ^ bifrunze.cpp:10:11: error: 'int b' previously declared here int a,b; ^ bifrunze.cpp:88:5: error: 'cout' does not name a type cout<<a<<b; ^ bifrunze.cpp:89:5: error: 'cin' does not name a type cin>>a; ^ bifrunze.cpp:90:5: error: 'cin' does not name a type cin>>b; ^ bifrunze.cpp:91:5: error: 'find' does not name a type find<<a+b<< "grasu drq"; cout<<a<<b; ^ bifrunze.cpp:91:30: error: 'cout' does not name a type find<<a+b<< "grasu drq"; cout<<a<<b; ^ bifrunze.cpp:92:5: error: 'cin' does not name a type cin>>a; ^ bifrunze.cpp:93:5: error: 'cin' does not name a type cin>>b; ^ bifrunze.cpp:94:5: error: 'find' does not name a type find<<a+b<< "grasu drq"; cin>>a; ^ bifrunze.cpp:94:32: error: 'cin' does not name a type find<<a+b<< "grasu drq"; cin>>a; ^ bifrunze.cpp:95:5: error: 'cin' does not name a type cin>>b; ^ bifrunze.cpp:96:5: error: 'find' does not name a type find<<a+b<< "grasu drq";>a; int a,b; ^ bifrunze.cpp:96:29: error: expected unqualified-id before '>' token find<<a+b<< "grasu drq";>a; int a,b; ^ bifrunze.cpp:96:40: error: redefinition of 'int a' find<<a+b<< "grasu drq";>a; int a,b; ^ bifrunze.cpp:10:9: error: 'int a' previously declared here int a,b; ^ bifrunze.cpp:96:42: error: redefinition of 'int b' find<<a+b<< "grasu drq";>a; int a,b; ^ bifrunze.cpp:10:11: error: 'int b' previously declared here int a,b; ^ bifrunze.cpp:97:5: error: 'cout' does not name a type cout<<a<<b; ^ bifrunze.cpp:98:9: error: redefinition of 'int a' int a,b; ^ bifrunze.cpp:10:9: error: 'int a' previously declared here int a,b; ^ bifrunze.cpp:98:11: error: redefinition of 'int b' int a,b; ^ bifrunze.cpp:10:11: error: 'int b' previously declared here int a,b; ^ bifrunze.cpp:99:5: error: 'cout' does not name a type cout<<a<<b; ^ bifrunze.cpp:100:5: error: 'cin' does not name a type cin>>a; ^ bifrunze.cpp:101:5: error: 'cin' does not name a type cin>>b; ^ bifrunze.cpp:102:5: error: 'find' does not name a type find<<a+b<< "grasu drq"; cin>>a; int a,b; ^ bifrunze.cpp:102:33: error: 'cin' does not name a type find<<a+b<< "grasu drq"; cin>>a; int a,b; ^ bifrunze.cpp:102:48: error: redefinition of 'int a' find<<a+b<< "grasu drq"; cin>>a; int a,b; ^ bifrunze.cpp:10:9: error: 'int a' previously declared here int a,b; ^ bifrunze.cpp:102:50: error: redefinition of 'int b' find<<a+b<< "grasu drq"; cin>>a; int a,b; ^ bifrunze.cpp:10:11: error: 'int b' previously declared here int a,b; ^ bifrunze.cpp:103:5: error: 'cout' does not name a type cout<<a<<b; ^ bifrunze.cpp:104:5: error: 'cin' does not name a type cin>>a; ^ bifrunze.cpp:105:5: error: 'cin' does not name a type cin>>b; ^ bifrunze.cpp:106:5: error: 'find' does not name a type find<<a+b<< "grasu drq"; ^ bifrunze.cpp:107:5: error: 'cin' does not name a type cin>>b; ^ bifrunze.cpp:108:5: error: 'find' does not name a type find<<a+ int a,b; ^ bifrunze.cpp:109:5: error: 'cout' does not name a type cout<<a<<b; ^ bifrunze.cpp:110:5: error: 'cin' does not name a type cin>>a; ^ bifrunze.cpp:111:5: error: 'cin' does not name a type cin>>b; ^ bifrunze.cpp:112:5: error: 'find' does not name a type find<<a+b<< "grasu drq";b<< "grasu drq"; ^ bifrunze.cpp:112:29: error: 'b' does not name a type find<<a+b<< "grasu drq";b<< "grasu drq"; ^ bifrunze.cpp:113:5: error: 'cin' does not name a type cin>>b; ^ bifrunze.cpp:114:5: error: 'find' does not name a type find<<a+b<< "grasu drq";rq" int a,b; ^ bifrunze.cpp:114:29: error: 'rq' does not name a type find<<a+b<< "grasu drq";rq" int a,b; ^ bifrunze.cpp:116:5: error: 'cout' does not name a type cout<<a<<b; ^ bifrunze.cpp:117:5: error: 'cin' does not name a type cin>>a; ^ bifrunze.cpp:118:5: error: 'cin' does not name a type cin>>b; ^ bifrunze.cpp:119:5: error: 'find' does not name a type find<<a+b<< "grasu drq";b; int a,b; ^ bifrunze.cpp:119:29: error: 'b' does not name a type find<<a+b<< "grasu drq";b; int a,b; ^ bifrunze.cpp:119:39: error: redefinition of 'int a' find<<a+b<< "grasu drq";b; int a,b; ^ bifrunze.cpp:10:9: error: 'int a' previously declared here int a,b; ^ bifrunze.cpp:119:41: error: redefinition of 'int b' find<<a+b<< "grasu drq";b; int a,b; ^ bifrunze.cpp:10:11: error: 'int b' previously declared here int a,b; ^ bifrunze.cpp:120:5: error: 'cout' does not name a type cout<<a<<b; ^ bifrunze.cpp:121:5: error: 'cin' does not name a type cin>>a; int a,b; ^ bifrunze.cpp:121:20: error: redefinition of 'int a' cin>>a; int a,b; ^ bifrunze.cpp:10:9: error: 'int a' previously declared here int a,b; ^ bifrunze.cpp:121:22: error: redefinition of 'int b' cin>>a; int a,b; ^ bifrunze.cpp:10:11: error: 'int b' previously declared here int a,b; ^ bifrunze.cpp:122:5: error: 'cout' does not name a type cout<<a<<b; ^ bifrunze.cpp:123:5: error: 'cin' does not name a type cin>>a; ^ bifrunze.cpp:124:5: error: 'cin' does not name a type cin>>b; ^ bifrunze.cpp:125:5: error: 'find' does not name a type find<<a+b<< "grasu drq"; ^ bifrunze.cpp:126:5: error: 'cin' does not name a type cin>>b; int a,b; ^ bifrunze.cpp:126:20: error: redefinition of 'int a' cin>>b; int a,b; ^ bifrunze.cpp:10:9: error: 'int a' previously declared here int a,b; ^ bifrunze.cpp:126:22: error: redefinition of 'int b' cin>>b; int a,b; ^ bifrunze.cpp:10:11: error: 'int b' previously declared here int a,b; ^ bifrunze.cpp:127:5: error: 'cout' does not name a type cout<<a<<b; ^ bifrunze.cpp:128:13: error: redefinition of 'int a' int a,b; ^ bifrunze.cpp:10:9: error: 'int a' previously declared here int a,b; ^ bifrunze.cpp:128:15: error: redefinition of 'int b' int a,b; ^ bifrunze.cpp:10:11: error: 'int b' previously declared here int a,b; ^ bifrunze.cpp:129:5: error: 'cout' does not name a type cout<<a<<b; ^ bifrunze.cpp:130:5: error: 'cin' does not name a type cin>>a; ^ bifrunze.cpp:131:5: error: 'cin' does not name a type cin>>b; ^ bifrunze.cpp:132:5: error: 'find' does not name a type find<<a+b<< "grasu drq";cin>>a; ^ bifrunze.cpp:132:29: error: 'cin' does not name a type find<<a+b<< "grasu drq";cin>>a; ^ bifrunze.cpp:133:5: error: 'cin' does not name a type cin>>b; ^ bifrunze.cpp:134:5: error: 'find' does not name a type find<<a+b<< "grasu drq"; ^ bifrunze.cpp:135:5: error: 'find' does not name a type find<<a+b<< "grasu drq"; ^ bifrunze.cpp:136:5: error: 'cin' does not name a type cin>>a; ^ bifrunze.cpp:137:5: error: 'cin' does not name a type cin>>b; ^ bifrunze.cpp:138:5: error: 'find' does not name a type find<<a+b<< "grasu drq";; i int a,b; ^ bifrunze.cpp:138:35: error: 'i' does not name a type find<<a+b<< "grasu drq";; i int a,b; ^ bifrunze.cpp:139:5: error: 'cout' does not name a type cout<<a<<b; ^ bifrunze.cpp:140:5: error: 'cin' does not name a type cin>>a; ^ bifrunze.cpp:141:5: error: 'cin' does not name a type cin>> int a,b; ^ bifrunze.cpp:142:5: error: 'cout' does not name a type cout<<a<<b; ^ bifrunze.cpp:143:5: error: 'cin' does not name a type cin>>a; ^ bifrunze.cpp:144:5: error: 'cin' does not name a type cin>>b; ^ bifrunze.cpp:145:5: error: 'find' does not name a type find<<a+b<< "grasu drq";b; ^ bifrunze.cpp:145:29: error: 'b' does not name a type find<<a+b<< "grasu drq";b; ^ bifrunze.cpp:146:5: error: 'find' does not name a type find<<a+b<< "grasu drq";nt a,b; ^ bifrunze.cpp:146:29: error: 'nt' does not name a type find<<a+b<< "grasu drq";nt a,b; ^ bifrunze.cpp:147:5: error: 'cout' does not name a type cout<< int a,b; ^ bifrunze.cpp:148:5: error: 'cout' does not name a type cout<<a<<b; ^ bifrunze.cpp:149:5: error: 'cin' does not name a type cin>>a; ^ bifrunze.cpp:150:5: error: 'cin' does not name a type cin>>b; int a,b; ^ bifrunze.cpp:150:20: error: redefinition of 'int a' cin>>b; int a,b; ^ bifrunze.cpp:10:9: error: 'int a' previously declared here int a,b; ^ bifrunze.cpp:150:22: error: redefinition of 'int b' cin>>b; int a,b; ^ bifrunze.cpp:10:11: error: 'int b' previously declared here int a,b; ^ bifrunze.cpp:151:5: error: 'cout' does not name a type cout<<a<<b; ^ bifrunze.cpp:152:5: error: 'cin' does not name a type cin>>a; ^ bifrunze.cpp:153:5: error: 'cin' does not name a type cin>>b; ^ bifrunze.cpp:154:5: error: 'find' does not name a type find<<a+b<< "grasu drq"; ^ bifrunze.cpp:155:5: error: 'find' does not name a type find<<a+b<< "grasu drq";a<<b; ^ bifrunze.cpp:155:29: error: 'a' does not name a type find<<a+b<< "grasu drq";a<<b; ^ bifrunze.cpp:156:5: error: 'cin' does not name a type cin>>a; ^ bifrunze.cpp:157:5: error: 'cin' does not name a type cin>>b; ^ bifrunze.cpp:158:5: error: 'find' does not name a type find<<a+b<< "grasu drq";"grasu drq" ^ bifrunze.cpp:158:29: error: expected unqualified-id before string constant find<<a+b<< "grasu drq";"grasu drq" ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema BiFrunze 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ă.