Borderou de evaluare (job #2872482)
Utilizator | Data | 17 martie 2022 09:53:45 | |
---|---|---|---|
Problema | Trie | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:4:12: error: expected parameter name, found "*"
4 | #define CH(*s - 'a')
| ^
main.cpp: In function 'void ins(Trie*, char*)':
main.cpp:31:17: error: 'CH' was not declared in this scope
31 | if(nod->fiu[CH] == 0)
| ^~
main.cpp:37:18: error: 'CH' was not declared in this scope
37 | ins(nod->fiu[CH], s+1);
| ^~
main.cpp: In function 'int del(Trie*, char*)':
main.cpp:45:26: error: 'CH' was not declared in this scope
45 | else if(del(nod->fiu[CH], s+1) )
| ^~
main.cpp: In function 'int que(Trie*, char*)':
main.cpp:66:19: error: 'CH' was not declared in this scope
66 | if( nod->fiu[ CH ] )
| ^~
main.cpp: In function 'int pre(Trie*, char*, int)':
main.cpp:73:33: error: 'CH' was not declared in this scope
73 | if( *s == '\n' || nod->fiu[ CH ] == 0 )
| ^~
main.cpp:75:25: error: 'CH' was not declared in this scope
75 | return pre(nod->fiu[CH], s+1, k+1);
| ^~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !