#3010
bst
Un arbore binar de căutare (BST – Binary Search Tree) este un arbore binar cu proprietatea că valoarea memorată într-un nod este mai mare decât valoarea memorată în orice nod din subarborele său stâng și este mai mică sau egală decât valoarea memorată în orice nod din subarborele său drept. Dându-se un șir de n
numere naturale, să se ordoneze crescător utilizând un BST.
Folclorul informatic
Problema | bst | Operații I/O |
bst.in /bst.out
|
---|---|---|---|
Limita timp | 1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #22812752 | Utilizator | |
Fișier | bst.cpp | Dimensiune | 1.75 KB |
Data încărcării | 06 Mai 2020, 23:53 | Scor / rezultat | Eroare de compilare |
bst.cpp:9:1: error: stray '\302' in program int info; ^ bst.cpp:9:1: error: stray '\240' in program bst.cpp:9:1: error: stray '\302' in program bst.cpp:9:1: error: stray '\240' in program bst.cpp:9:1: error: stray '\302' in program bst.cpp:9:1: error: stray '\240' in program bst.cpp:10:1: error: stray '\302' in program nod* st, *dr; ^ bst.cpp:10:1: error: stray '\240' in program bst.cpp:10:1: error: stray '\302' in program bst.cpp:10:1: error: stray '\240' in program bst.cpp:10:1: error: stray '\302' in program bst.cpp:10:1: error: stray '\240' in program bst.cpp:16:1: error: stray '\302' in program nod *p = new nod; ^ bst.cpp:16:1: error: stray '\240' in program bst.cpp:16:1: error: stray '\302' in program bst.cpp:16:1: error: stray '\240' in program bst.cpp:16:1: error: stray '\302' in program bst.cpp:16:1: error: stray '\240' in program bst.cpp:17:1: error: stray '\302' in program p->info = x; ^ bst.cpp:17:1: error: stray '\240' in program bst.cpp:17:1: error: stray '\302' in program bst.cpp:17:1: error: stray '\240' in program bst.cpp:17:1: error: stray '\302' in program bst.cpp:17:1: error: stray '\240' in program bst.cpp:18:1: error: stray '\302' in program p->st = p->dr = NULL; ^ bst.cpp:18:1: error: stray '\240' in program bst.cpp:18:1: error: stray '\302' in program bst.cpp:18:1: error: stray '\240' in program bst.cpp:18:1: error: stray '\302' in program bst.cpp:18:1: error: stray '\240' in program bst.cpp:20:1: error: stray '\302' in program return p; ^ bst.cpp:20:1: error: stray '\240' in program bst.cpp:20:1: error: stray '\302' in program bst.cpp:20:1: error: stray '\240' in program bst.cpp:20:1: error: stray '\302' in program bst.cpp:20:1: error: stray '\240' in program bst.cpp:25:1: error: stray '\302' in program nod *p, *q; ^ bst.cpp:25:1: error: stray '\240' in program bst.cpp:25:1: error: stray '\302' in program bst.cpp:25:1: error: stray '\240' in program bst.cpp:25:1: error: stray '\302' in program bst.cpp:25:1: error: stray '\240' in program bst.cpp:27:1: error: stray '\302' in program p = q = r; ^ bst.cpp:27:1: error: stray '\240' in program bst.cpp:27:1: error: stray '\302' in program bst.cpp:27:1: error: stray '\240' in program bst.cpp:27:1: error: stray '\302' in program bst.cpp:27:1: error: stray '\240' in program bst.cpp:29:1: error: stray '\302' in program while (p) ^ bst.cpp:29:1: error: stray '\240' in program bst.cpp:29:1: error: stray '\302' in program bst.cpp:29:1: error: stray '\240' in program bst.cpp:29:1: error: stray '\302' in program bst.cpp:29:1: error: stray '\240' in program bst.cpp:30:1: error: stray '\302' in program { ^ bst.cpp:30:1: error: stray '\240' in program bst.cpp:30:1: error: stray '\302' in program bst.cpp:30:1: error: stray '\240' in program bst.cpp:30:1: error: stray '\302' in program bst.cpp:30:1: error: stray '\240' in program bst.cpp:31:1: error: stray '\302' in program if (p->info == x) ^ bst.cpp:31:1: error: stray '\240' in program bst.cpp:31:1: error: stray '\302' in program bst.cpp:31:1: error: stray '\240' in program bst.cpp:31:1: error: stray '\302' in program bst.cpp:31:1: error: stray '\240' in program bst.cpp:31:1: error: stray '\302' in program bst.cpp:31:1: error: stray '\240' in program bst.cpp:31:1: error: stray '\302' in program bst.cpp:31:1: error: stray '\240' in program bst.cpp:31:1: error: stray '\302' in program bst.cpp:31:1: error: stray '\240' in program bst.cpp:31:1: error: stray '\302' in program bst.cpp:31:1: error: stray '\240' in program bst.cpp:32:1: error: stray '\302' in program return ; ^ bst.cpp:32:1: error: stray '\240' in program bst.cpp:32:1: error: stray '\302' in program bst.cpp:32:1: error: stray '\240' in program bst.cpp:32:1: error: stray '\302' in program bst.cpp:32:1: error: stray '\240' in program bst.cpp:32:1: error: stray '\302' in program bst.cpp:32:1: error: stray '\240' in program bst.cpp:32:1: error: stray '\302' in program bst.cpp:32:1: error: stray '\240' in program bst.cpp:32:1: error: stray '\302' in program bst.cpp:32:1: error: stray '\240' in program bst.cpp:32:1: error: stray '\302' in program bst.cpp:32:1: error: stray '\240' in program bst.cpp:32:1: error: stray '\302' in program bst.cpp:32:1: error: stray '\240' in program bst.cpp:32:1: error: stray '\302' in program bst.cpp:32:1: error: stray '\240' in program bst.cpp:32:1: error: stray '\302' in program bst.cpp:32:1: error: stray '\240' in program bst.cpp:32:1: error: stray '\302' in program bst.cpp:32:1: error: stray '\240' in program bst.cpp:33:1: error: stray '\302' in program q = p; ^ bst.cpp:33:1: error: stray '\240' in program bst.cpp:33:1: error: stray '\302' in program bst.cpp:33:1: error: stray '\240' in program bst.cpp:33:1: error: stray '\302' in program bst.cpp:33:1: error: stray '\240' in program bst.cpp:33:1: error: stray '\302' in program bst.cpp:33:1: error: stray '\240' in program bst.cpp:33:1: error: stray '\302' in program bst.cpp:33:1: error: stray '\240' in program bst.cpp:33:1: error: stray '\302' in program bst.cpp:33:1: error: stray '\240' in program bst.cpp:33:1: error: stray '\302' in program bst.cpp:33:1: error: stray '\240' in program bst.cpp:34:1: error: stray '\302' in program if(p->info > x) ^ bst.cpp:34:1: error: stray '\240' in program bst.cpp:34:1: error: stray '\302' in program bst.cpp:34:1: error: stray '\240' in program bst.cpp:34:1: error: stray '\302' in program bst.cpp:34:1: error: stray '\240' in program bst.cpp:34:1: error: stray '\302' in program bst.cpp:34:1: error: stray '\240' in program bst.cpp:34:1: error: stray '\302' in program bst.cpp:34:1: error: stray '\240' in program bst.cpp:34:1: error: stray '\302' in program bst.cpp:34:1: error: stray '\240' in program bst.cpp:34:1: error: stray '\302' in program bst.cpp:34:1: error: stray '\240' in program bst.cpp:35:1: error: stray '\302' in program p = p->st; ^ bst.cpp:35:1: error: stray '\240' in program bst.cpp:35:1: error: stray '\302' in program bst.cpp:35:1: error: stray '\240' in program bst.cpp:35:1: error: stray '\302' in program bst.cpp:35:1: error: stray '\240' in program bst.cpp:35:1: error: stray '\302' in program bst.cpp:35:1: error: stray '\240' in program bst.cpp:35:1: error: stray '\302' in program bst.cpp:35:1: error: stray '\240' in program bst.cpp:35:1: error: stray '\302' in program bst.cpp:35:1: error: stray '\240' in program bst.cpp:35:1: error: stray '\302' in program bst.cpp:35:1: error: stray '\240' in program bst.cpp:35:1: error: stray '\302' in program bst.cpp:35:1: error: stray '\240' in program bst.cpp:35:1: error: stray '\302' in program bst.cpp:35:1: error: stray '\240' in program bst.cpp:35:1: error: stray '\302' in program bst.cpp:35:1: error: stray '\240' in program bst.cpp:35:1: error: stray '\302' in program bst.cpp:35:1: error: stray '\240' in program bst.cpp:36:1: error: stray '\302' in program else ^ bst.cpp:36:1: error: stray '\240' in program bst.cpp:36:1: error: stray '\302' in program bst.cpp:36:1: error: stray '\240' in program bst.cpp:36:1: error: stray '\302' in program bst.cpp:36:1: error: stray '\240' in program bst.cpp:36:1: error: stray '\302' in program bst.cpp:36:1: error: stray '\240' in program bst.cpp:36:1: error: stray '\302' in program bst.cpp:36:1: error: stray '\240' in program bst.cpp:36:1: error: stray '\302' in program bst.cpp:36:1: error: stray '\240' in program bst.cpp:36:1: error: stray '\302' in program bst.cpp:36:1: error: stray '\240' in program bst.cpp:37:1: error: stray '\302' in program p = p->dr; ^ bst.cpp:37:1: error: stray '\240' in program bst.cpp:37:1: error: stray '\302' in program bst.cpp:37:1: error: stray '\240' in program bst.cpp:37:1: error: stray '\302' in program bst.cpp:37:1: error: stray '\240' in program bst.cpp:37:1: error: stray '\302' in program bst.cpp:37:1: error: stray '\240' in program bst.cpp:37:1: error: stray '\302' in program bst.cpp:37:1: error: stray '\240' in program bst.cpp:37:1: error: stray '\302' in program bst.cpp:37:1: error: stray '\240' in program bst.cpp:37:1: error: stray '\302' in program bst.cpp:37:1: error: stray '\240' in program bst.cpp:37:1: error: stray '\302' in program bst.cpp:37:1: error: stray '\240' in program bst.cpp:37:1: error: stray '\302' in program bst.cpp:37:1: error: stray '\240' in program bst.cpp:37:1: error: stray '\302' in program bst.cpp:37:1: error: stray '\240' in program bst.cpp:37:1: error: stray '\302' in program bst.cpp:37:1: error: stray '\240' in program bst.cpp:38:1: error: stray '\302' in program } ^ bst.cpp:38:1: error: stray '\240' in program bst.cpp:38:1: error: stray '\302' in program bst.cpp:38:1: error: stray '\240' in program bst.cpp:38:1: error: stray '\302' in program bst.cpp:38:1: error: stray '\240' in program bst.cpp:40:1: error: stray '\302' in program p = nodNou(x); ^ bst.cpp:40:1: error: stray '\240' in program bst.cpp:40:1: error: stray '\302' in program bst.cpp:40:1: error: stray '\240' in program bst.cpp:40:1: error: stray '\302' in program bst.cpp:40:1: error: stray '\240' in program bst.cpp:40:1: error: stray '\302' in program bst.cpp:40:1: error: stray '\240' in program bst.cpp:40:1: error: stray '\302' in program bst.cpp:40:1: error: stray '\240' in program bst.cpp:40:1: error: stray '\302' in program bst.cpp:40:1: error: stray '\240' in program bst.cpp:40:1: error: stray '\302' in program bst.cpp:40:1: error: stray '\240' in program bst.cpp:41:1: error: stray '\302' in program if(q == NULL) ^ bst.cpp:41:1: error: stray '\240' in program bst.cpp:41:1: error: stray '\302' in program bst.cpp:41:1: error: stray '\240' in program bst.cpp:41:1: error: stray '\302' in program bst.cpp:41:1: error: stray '\240' in program bst.cpp:41:1: error: stray '\302' in program bst.cpp:41:1: error: stray '\240' in program bst.cpp:41:1: error: stray '\302' in program bst.cpp:41:1: error: stray '\240' in program bst.cpp:41:1: error: stray '\302' in program bst.cpp:41:1: error: stray '\240' in program bst.cpp:41:1: error: stray '\302' in program bst.cpp:41:1: error: stray '\240' in program bst.cpp:41:1: error: stray '\302' in program bst.cpp:41:1: error: stray '\240' in program bst.cpp:42:1: error: stray '\302' in program r = p; ^ bst.cpp:42:1: error: stray '\240' in program bst.cpp:42:1: error: stray '\302' in program bst.cpp:42:1: error: stray '\240' in program bst.cpp:42:1: error: stray '\302' in program bst.cpp:42:1: error: stray '\240' in program bst.cpp:42:1: error: stray '\302' in program bst.cpp:42:1: error: stray '\240' in program bst.cpp:42:1: error: stray '\302' in program bst.cpp:42:1: error: stray '\240' in program bst.cpp:42:1: error: stray '\302' in program bst.cpp:42:1: error: stray '\240' in program bst.cpp:42:1: error: stray '\302' in program bst.cpp:42:1: error: stray '\240' in program bst.cpp:43:1: error: stray '\302' in program else ^ bst.cpp:43:1: error: stray '\240' in program bst.cpp:43:1: error: stray '\302' in program bst.cpp:43:1: error: stray '\240' in program bst.cpp:43:1: error: stray '\302' in program bst.cpp:43:1: error: stray '\240' in program bst.cpp:44:1: error: stray '\302' in program if(q->info < x) ^ bst.cpp:44:1: error: stray '\240' in program bst.cpp:44:1: error: stray '\302' in program bst.cpp:44:1: error: stray '\240' in program bst.cpp:44:1: error: stray '\302' in program bst.cpp:44:1: error: stray '\240' in program bst.cpp:44:1: error: stray '\302' in program bst.cpp:44:1: error: stray '\240' in program bst.cpp:44:1: error: stray '\302' in program bst.cpp:44:1: error: stray '\240' in program bst.cpp:44:1: error: stray '\302' in program bst.cpp:44:1: error: stray '\240' in program bst.cpp:44:1: error: stray '\302' in program bst.cpp:44:1: error: stray '\240' in program bst.cpp:45:1: error: stray '\302' in program q->dr = p; ^ bst.cpp:45:1: error: stray '\240' in program bst.cpp:45:1: error: stray '\302' in program bst.cpp:45:1: error: stray '\240' in program bst.cpp:45:1: error: stray '\302' in program bst.cpp:45:1: error: stray '\240' in program bst.cpp:45:1: error: stray '\302' in program bst.cpp:45:1: error: stray '\240' in program bst.cpp:45:1: error: stray '\302' in program bst.cpp:45:1: error: stray '\240' in program bst.cpp:45:1: error: stray '\302' in program bst.cpp:45:1: error: stray '\240' in program bst.cpp:45:1: error: stray '\302' in program bst.cpp:45:1: error: stray '\240' in program bst.cpp:45:1: error: stray '\302' in program bst.cpp:45:1: error: stray '\240' in program bst.cpp:45:1: error: stray '\302' in program bst.cpp:45:1: error: stray '\240' in program bst.cpp:45:1: error: stray '\302' in program bst.cpp:45:1: error: stray '\240' in program bst.cpp:45:1: error: stray '\302' in program bst.cpp:45:1: error: stray '\240' in program bst.cpp:46:1: error: stray '\302' in program else ^ bst.cpp:46:1: error: stray '\240' in program bst.cpp:46:1: error: stray '\302' in program bst.cpp:46:1: error: stray '\240' in program bst.cpp:46:1: error: stray '\302' in program bst.cpp:46:1: error: stray '\240' in program bst.cpp:46:1: error: stray '\302' in program bst.cpp:46:1: error: stray '\240' in program bst.cpp:46:1: error: stray '\302' in program bst.cpp:46:1: error: stray '\240' in program bst.cpp:46:1: error: stray '\302' in program bst.cpp:46:1: error: stray '\240' in program bst.cpp:46:1: error: stray '\302' in program bst.cpp:46:1: error: stray '\240' in program bst.cpp:47:1: error: stray '\302' in program q->st = p; ^ bst.cpp:47:1: error: stray '\240' in program bst.cpp:47:1: error: stray '\302' in program bst.cpp:47:1: error: stray '\240' in program bst.cpp:47:1: error: stray '\302' in program bst.cpp:47:1: error: stray '\240' in program bst.cpp:47:1: error: stray '\302' in program bst.cpp:47:1: error: stray '\240' in program bst.cpp:47:1: error: stray '\302' in program bst.cpp:47:1: error: stray '\240' in program bst.cpp:47:1: error: stray '\302' in program bst.cpp:47:1: error: stray '\240' in program bst.cpp:47:1: error: stray '\302' in program bst.cpp:47:1: error: stray '\240' in program bst.cpp:47:1: error: stray '\302' in program bst.cpp:47:1: error: stray '\240' in program bst.cpp:47:1: error: stray '\302' in program bst.cpp:47:1: error: stray '\240' in program bst.cpp:47:1: error: stray '\302' in program bst.cpp:47:1: error: stray '\240' in program bst.cpp:47:1: error: stray '\302' in program bst.cpp:47:1: error: stray '\240' in program bst.cpp:53:1: error: stray '\302' in program if (!p) ^ bst.cpp:53:1: error: stray '\240' in program bst.cpp:53:1: error: stray '\302' in program bst.cpp:53:1: error: stray '\240' in program bst.cpp:53:1: error: stray '\302' in program bst.cpp:53:1: error: stray '\240' in program bst.cpp:53:1: error: stray '\302' in program bst.cpp:53:1: error: stray '\240' in program bst.cpp:53:1: error: stray '\302' in program bst.cpp:53:1: error: stray '\240' in program bst.cpp:53:1: error: stray '\302' in program bst.cpp:53:1: error: stray '\240' in program bst.cpp:53:1: error: stray '\302' in program bst.cpp:53:1: error: stray '\240' in program bst.cpp:53:1: error: stray '\302' in program bst.cpp:53:1: error: stray '\240' in program bst.cpp:53:1: error: stray '\302' in program bst.cpp:53:1: error: stray '\240' in program bst.cpp:54:1: error: stray '\302' in program return nodNou(x); ^ bst.cpp:54:1: error: stray '\240' in program bst.cpp:54:1: error: stray '\302' in program bst.cpp:54:1: error: stray '\240' in program bst.cpp:54:1: error: stray '\302' in program bst.cpp:54:1: error: stray '\240' in program bst.cpp:54:1: error: stray '\302' in program bst.cpp:54:1: error: stray '\240' in program bst.cpp:54:1: error: stray '\302' in program bst.cpp:54:1: error: stray '\240' in program bst.cpp:54:1: error: stray '\302' in program bst.cpp:54:1: error: stray '\240' in program bst.cpp:54:1: error: stray '\302' in program bst.cpp:54:1: error: stray '\240' in program bst.cpp:56:1: error: stray '\302' in program if (p->info < x) ^ bst.cpp:56:1: error: stray '\240' in program bst.cpp:56:1: error: stray '\302' in program bst.cpp:56:1: error: stray '\240' in program bst.cpp:56:1: error: stray '\302' in program bst.cpp:56:1: error: stray '\240' in program bst.cpp:57:1: error: stray '\302' in program p->dr = inserareRecursiv(p->dr, x); ^ bst.cpp:57:1: error: stray '\240' in program bst.cpp:57:1: error: stray '\302' in program bst.cpp:57:1: error: stray '\240' in program bst.cpp:57:1: error: stray '\302' in program bst.cpp:57:1: error: stray '\240' in program bst.cpp:57:1: error: stray '\302' in program bst.cpp:57:1: error: stray '\240' in program bst.cpp:57:1: error: stray '\302' in program bst.cpp:57:1: error: stray '\240' in program bst.cpp:57:1: error: stray '\302' in program bst.cpp:57:1: error: stray '\240' in program bst.cpp:57:1: error: stray '\302' in program bst.cpp:57:1: error: stray '\240' in program bst.cpp:58:1: error: stray '\302' in program else ^ bst.cpp:58:1: error: stray '\240' in program bst.cpp:58:1: error: stray '\302' in program bst.cpp:58:1: error: stray '\240' in program bst.cpp:58:1: error: stray '\302' in program bst.cpp:58:1: error: stray '\240' in program bst.cpp:59:1: error: stray '\302' in program p->st = inserareRecursiv(p->st, x); ^ bst.cpp:59:1: error: stray '\240' in program bst.cpp:59:1: error: stray '\302' in program bst.cpp:59:1: error: stray '\240' in program bst.cpp:59:1: error: stray '\302' in program bst.cpp:59:1: error: stray '\240' in program bst.cpp:59:1: error: stray '\302' in program bst.cpp:59:1: error: stray '\240' in program bst.cpp:59:1: error: stray '\302' in program bst.cpp:59:1: error: stray '\240' in program bst.cpp:59:1: error: stray '\302' in program bst.cpp:59:1: error: stray '\240' in program bst.cpp:59:1: error: stray '\302' in program bst.cpp:59:1: error: stray '\240' in program bst.cpp:61:1: error: stray '\302' in program return p; ^ bst.cpp:61:1: error: stray '\240' in program bst.cpp:61:1: error: stray '\302' in program bst.cpp:61:1: error: stray '\240' in program bst.cpp:61:1: error: stray '\302' in program bst.cpp:61:1: error: stray '\240' in program bst.cpp:66:1: error: stray '\302' in program int n, x; ^ bst.cpp:66:1: error: stray '\240' in program bst.cpp:66:1: error: stray '\302' in program bst.cpp:66:1: error: stray '\240' in program bst.cpp:66:1: error: stray '\302' in program bst.cpp:66:1: error: stray '\240' in program bst.cpp:68:1: error: stray '\302' in program cin>>n; ^ bst.cpp:68:1: error: stray '\240' in program bst.cpp:68:1: error: stray '\302' in program bst.cpp:68:1: error: stray '\240' in program bst.cpp:68:1: error: stray '\302' in program bst.cpp:68:1: error: stray '\240' in program bst.cpp:69:1: error: stray '\302' in program for (int i = 1; i <= n; i++) ^ bst.cpp:69:1: error: stray '\240' in program bst.cpp:69:1: error: stray '\302' in program bst.cpp:69:1: error: stray '\240' in program bst.cpp:69:1: error: stray '\302' in program bst.cpp:69:1: error: stray '\240' in program bst.cpp:70:1: error: stray '\302' in program { ^ bst.cpp:70:1: error: stray '\240' in program bst.cpp:70:1: error: stray '\302' in program bst.cpp:70:1: error: stray '\240' in program bst.cpp:70:1: error: stray '\302' in program bst.cpp:70:1: error: stray '\240' in program bst.cpp:71:1: error: stray '\302' in program cin>>x; ^ bst.cpp:71:1: error: stray '\240' in program bst.cpp:71:1: error: stray '\302' in program bst.cpp:71:1: error: stray '\240' in program bst.cpp:71:1: error: stray '\302' in program bst.cpp:71:1: error: stray '\240' in program bst.cpp:71:1: error: stray '\302' in program bst.cpp:71:1: error: stray '\240' in program bst.cpp:71:1: error: stray '\302' in program bst.cpp:71:1: error: stray '\240' in program bst.cpp:71:1: error: stray '\302' in program bst.cpp:71:1: error: stray '\240' in program bst.cpp:71:1: error: stray '\302' in program bst.cpp:71:1: error: stray '\240' in program bst.cpp:72:1: error: stray '\302' in program r = inserareRecursiv(r, x); ^ bst.cpp:72:1: error: stray '\240' in program bst.cpp:72:1: error: stray '\302' in program bst.cpp:72:1: error: stray '\240' in program bst.cpp:72:1: error: stray '\302' in program bst.cpp:72:1: error: stray '\240' in program bst.cpp:72:1: error: stray '\302' in program bst.cpp:72:1: error: stray '\240' in program bst.cpp:72:1: error: stray '\302' in program bst.cpp:72:1: error: stray '\240' in program bst.cpp:72:1: error: stray '\302' in program bst.cpp:72:1: error: stray '\240' in program bst.cpp:72:1: error: stray '\302' in program bst.cpp:72:1: error: stray '\240' in program bst.cpp:73:1: error: stray '\302' in program } ^ bst.cpp:73:1: error: stray '\240' in program bst.cpp:73:1: error: stray '\302' in program bst.cpp:73:1: error: stray '\240' in program bst.cpp:73:1: error: stray '\302' in program bst.cpp:73:1: error: stray '\240' in program bst.cpp:78:1: error: stray '\302' in program if (p) //if(p != NULL) ^ bst.cpp:78:1: error: stray '\240' in program bst.cpp:78:1: error: stray '\302' in program bst.cpp:78:1: error: stray '\240' in program bst.cpp:78:1: error: stray '\302' in program bst.cpp:78:1: error: stray '\240' in program bst.cpp:78:1: error: stray '\302' in program bst.cpp:78:1: error: stray '\240' in program bst.cpp:78:1: error: stray '\302' in program bst.cpp:78:1: error: stray '\240' in program bst.cpp:78:1: error: stray '\302' in program bst.cpp:78:1: error: stray '\240' in program bst.cpp:78:1: error: stray '\302' in program bst.cpp:78:1: error: stray '\240' in program bst.cpp:78:1: error: stray '\302' in program bst.cpp:78:1: error: stray '\240' in program bst.cpp:79:1: error: stray '\302' in program { ^ bst.cpp:79:1: error: stray '\240' in program bst.cpp:79:1: error: stray '\302' in program bst.cpp:79:1: error: stray '\240' in program bst.cpp:79:1: error: stray '\302' in program bst.cpp:79:1: error: stray '\240' in program bst.cpp:80:1: error: stray '\302' in program srd(p->st); ^ bst.cpp:80:1: error: stray '\240' in program bst.cpp:80:1: error: stray '\302' in program bst.cpp:80:1: error: stray '\240' in program bst.cpp:80:1: error: stray '\302' in program bst.cpp:80:1: error: stray '\240' in program bst.cpp:80:1: error: stray '\302' in program bst.cpp:80:1: error: stray '\240' in program bst.cpp:80:1: error: stray '\302' in program bst.cpp:80:1: error: stray '\240' in program bst.cpp:80:1: error: stray '\302' in program bst.cpp:80:1: error: stray '\240' in program bst.cpp:80:1: error: stray '\302' in program bst.cpp:80:1: error: stray '\240' in program bst.cpp:81:1: error: stray '\302' in program cout<<p->info<<" "; ^ bst.cpp:81:1: error: stray '\240' in program bst.cpp:81:1: error: stray '\302' in program bst.cpp:81:1: error: stray '\240' in program bst.cpp:81:1: error: stray '\302' in program bst.cpp:81:1: error: stray '\240' in program bst.cpp:81:1: error: stray '\302' in program bst.cpp:81:1: error: stray '\240' in program bst.cpp:81:1: error: stray '\302' in program bst.cpp:81:1: error: stray '\240' in program bst.cpp:81:1: error: stray '\302' in program bst.cpp:81:1: error: stray '\240' in program bst.cpp:81:1: error: stray '\302' in program bst.cpp:81:1: error: stray '\240' in program bst.cpp:82:1: error: stray '\302' in program srd(p->dr); ^ bst.cpp:82:1: error: stray '\240' in program bst.cpp:82:1: error: stray '\302' in program bst.cpp:82:1: error: stray '\240' in program bst.cpp:82:1: error: stray '\302' in program bst.cpp:82:1: error: stray '\240' in program bst.cpp:82:1: error: stray '\302' in program bst.cpp:82:1: error: stray '\240' in program bst.cpp:82:1: error: stray '\302' in program bst.cpp:82:1: error: stray '\240' in program bst.cpp:82:1: error: stray '\302' in program bst.cpp:82:1: error: stray '\240' in program bst.cpp:82:1: error: stray '\302' in program bst.cpp:82:1: error: stray '\240' in program bst.cpp:83:1: error: stray '\302' in program } ^ bst.cpp:83:1: error: stray '\240' in program bst.cpp:83:1: error: stray '\302' in program bst.cpp:83:1: error: stray '\240' in program bst.cpp:83:1: error: stray '\302' in program bst.cpp:83:1: error: stray '\240' in program bst.cpp:88:1: error: stray '\302' in program if(p == NULL || p->info == x) ^ bst.cpp:88:1: error: stray '\240' in program bst.cpp:88:1: error: stray '\302' in program bst.cpp:88:1: error: stray '\240' in program bst.cpp:88:1: error: stray '\302' in program bst.cpp:88:1: error: stray '\240' in program bst.cpp:89:1: error: stray '\302' in program return p; ^ bst.cpp:89:1: error: stray '\240' in program bst.cpp:89:1: error: stray '\302' in program bst.cpp:89:1: error: stray '\240' in program bst.cpp:89:1: error: stray '\302' in program bst.cpp:89:1: error: stray '\240' in program bst.cpp:89:1: error: stray '\302' in program bst.cpp:89:1: error: stray '\240' in program bst.cpp:89:1: error: stray '\302' in program bst.cpp:89:1: error: stray '\240' in program bst.cpp:89:1: error: stray '\302' in program bst.cpp:89:1: error: stray '\240' in program bst.cpp:89:1: error: stray '\302' in program bst.cpp:89:1: error: stray '\240' in program bst.cpp:91:1: error: stray '\302' in program if(p->info < x) ^ bst.cpp:91:1: error: stray '\240' in program bst.cpp:91:1: error: stray '\302' in program bst.cpp:91:1: error: stray '\240' in program bst.cpp:91:1: error: stray '\302' in program bst.cpp:91:1: error: stray '\240' in program bst.cpp:92:1: error: stray '\302' in program return cautare(p->dr, x); ^ bst.cpp:92:1: error: stray '\240' in program bst.cpp:92:1: error: stray '\302' in program bst.cpp:92:1: error: stray '\240' in program bst.cpp:92:1: error: stray '\302' in program bst.cpp:92:1: error: stray '\240' in program bst.cpp:92:1: error: stray '\302' in program bst.cpp:92:1: error: stray '\240' in program bst.cpp:92:1: error: stray '\302' in program bst.cpp:92:1: error: stray '\240' in program bst.cpp:92:1: error: stray '\302' in program bst.cpp:92:1: error: stray '\240' in program bst.cpp:92:1: error: stray '\302' in program bst.cpp:92:1: error: stray '\240' in program bst.cpp:93:1: error: stray '\302' in program else ^ bst.cpp:93:1: error: stray '\240' in program bst.cpp:93:1: error: stray '\302' in program bst.cpp:93:1: error: stray '\240' in program bst.cpp:93:1: error: stray '\302' in program bst.cpp:93:1: error: stray '\240' in program bst.cpp:94:1: error: stray '\302' in program return cautare(p->st, x); ^ bst.cpp:94:1: error: stray '\240' in program bst.cpp:94:1: error: stray '\302' in program bst.cpp:94:1: error: stray '\240' in program bst.cpp:94:1: error: stray '\302' in program bst.cpp:94:1: error: stray '\240' in program bst.cpp:94:1: error: stray '\302' in program bst.cpp:94:1: error: stray '\240' in program bst.cpp:94:1: error: stray '\302' in program bst.cpp:94:1: error: stray '\240' in program bst.cpp:94:1: error: stray '\302' in program bst.cpp:94:1: error: stray '\240' in program bst.cpp:94:1: error: stray '\302' in program bst.cpp:94:1: error: stray '\240' in program bst.cpp:99:1: error: stray '\302' in program creare(); ^ bst.cpp:99:1: error: stray '\240' in program bst.cpp:99:1: error: stray '\302' in program bst.cpp:99:1: error: stray '\240' in program bst.cpp:99:1: error: stray '\302' in program bst.cpp:99:1: error: stray '\240' in program bst.cpp:100:1: error: stray '\302' in program srd(r); ^ bst.cpp:100:1: error: stray '\240' in program bst.cpp:100:1: error: stray '\302' in program bst.cpp:100:1: error: stray '\240' in program bst.cpp:100:1: error: stray '\302' in program bst.cpp:100:1: error: stray '\240' in program bst.cpp:101:1: error: stray '\302' in program cout<<"\n"; ^ bst.cpp:101:1: error: stray '\240' in program bst.cpp:101:1: error: stray '\302' in program bst.cpp:101:1: error: stray '\240' in program bst.cpp:101:1: error: stray '\302' in program bst.cpp:101:1: error: stray '\240' in program bst.cpp:103:1: error: stray '\302' in program return 0; ^ bst.cpp:103:1: error: stray '\240' in program bst.cpp:103:1: error: stray '\302' in program bst.cpp:103:1: error: stray '\240' in program bst.cpp:103:1: error: stray '\302' in program bst.cpp:103:1: error: stray '\240' in program
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema bst 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ă.