Borderou de evaluare (job #2965921)

Utilizator iraresmihaiiordache rares mihai iraresmihai Data 16 ianuarie 2023 16:22:15
Problema A+B Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:21:11: error: 'MAXN' was not declared in this scope 21 | node tree[MAXN]; | ^~~~ main.cpp: In function 'void readWord()': main.cpp:31:11: error: 'tree' was not declared in this scope; did you mean 'free'? 31 | if ( !tree[posInTree].nextLetterId[ch - 'a'] ) { | ^~~~ | free main.cpp:32:58: error: 's' was not declared in this scope 32 | posInTree = tree[posInTree].nextLetterId[ch - 'a'];s | ^ main.cpp:39:3: error: 'tree' was not declared in this scope; did you mean 'free'? 39 | tree[posInTree].isImportant = true; | ^~~~ | free main.cpp: In function 'void dfs(int, int, int)': main.cpp:43:8: error: 'tree' was not declared in this scope; did you mean 'free'? 43 | if ( tree[pos].isImportant ) { | ^~~~ | free main.cpp:50:9: error: 'i' was not declared in this scope 50 | for ( i = 0; i < NR_LETTERS; i++ ) { | ^ main.cpp:51:10: error: 'tree' was not declared in this scope; did you mean 'free'? 51 | if ( tree[pos].nextLetterId[i] ) { | ^~~~ | free main.cpp: In function 'int main()': main.cpp:62:8: warning: unused variable 'ch' [-Wunused-variable] 62 | char ch; | ^~ Non zero exit status: 1

Ceva nu functioneaza?