Borderou de evaluare (job #2643356)
Utilizator | Data | 19 august 2020 16:35:20 | |
---|---|---|---|
Problema | Trie | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void add_trie(TrieClass*, char*)':
main.cpp:30:37: error: invalid conversion from 'void*' to 'TrieClass*' [-fpermissive]
trieNode->next[nextIndex] = calloc(1, sizeof(TrieClass));
~~~~~~^~~~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:86:26: error: invalid conversion from 'void*' to 'TrieClass*' [-fpermissive]
TrieClass *trie = calloc(1, sizeof(TrieClass));
~~~~~~^~~~~~~~~~~~~~~~~~~~~~
main.cpp:95:37: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'short int*' [-Wformat=]
while (fscanf(f, "%d %s", &cer, &w) == 2) //fscanf returneaza nr de variabile citite cu succes
^
main.cpp:95:37: warning: format '%s' expects argument of type 'char*', but argument 4 has type 'char (*)[100]' [-Wformat=]
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !