Borderou de evaluare (job #2877791)
Utilizator | Data | 25 martie 2022 12:45:19 | |
---|---|---|---|
Problema | Kinder | Status | done |
Runda | ultimulblog | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:16:3: error: 'Short' does not name a type; did you mean 'short'?
16 | Short cnt;
| ^~~~~
| short
main.cpp: In constructor 'trie::trie()':
main.cpp:19:5: error: 'cnt' was not declared in this scope; did you mean 'int'?
19 | cnt = 0;
| ^~~
| int
main.cpp: In function 'void Insert(trie*, int, int)':
main.cpp:32:8: error: 'struct trie' has no member named 'cnt'
32 | p->cnt += q;
| ^~~
main.cpp: In function 'int Count(trie*, int)':
main.cpp:46:13: error: 'struct trie' has no member named 'cnt'
46 | return p->cnt;
| ^~~
main.cpp: In function 'int smaller(trie*, int)':
main.cpp:57:27: error: 'struct trie' has no member named 'cnt'
57 | s += p->sons[!bit]->cnt;
| ^~~
main.cpp:62:17: error: 'struct trie' has no member named 'cnt'
62 | return s + p->cnt;
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !