Borderou de evaluare (job #2231711)

Utilizator gavrisraulRaul Gavris gavrisraul Data 15 august 2018 17:46:51
Problema Potrivirea sirurilor Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:7:8: error: ‘NMax’ was not declared in this scope char A[NMax], B[NMax]; ^~~~ user.cpp:7:17: error: ‘NMax’ was not declared in this scope char A[NMax], B[NMax]; ^~~~ user.cpp:8:8: error: ‘NMax’ was not declared in this scope int pi[NMax], pos[1024]; ^~~~ user.cpp: In function ‘void make_prefix()’: user.cpp:12:10: error: ‘pi’ was not declared in this scope for(i=2,pi[1]=0;i<=M;++i){ ^~ user.cpp:13:13: error: ‘A’ was not declared in this scope while(q&&A[q+1]!=A[i]) ^ user.cpp:15:8: error: ‘A’ was not declared in this scope if(A[q+1]==A[i]) ^ user.cpp: In function ‘int main()’: user.cpp:23:3: error: ‘fin’ was not declared in this scope fin.getline(A,maxn); ^~~ user.cpp:23:15: error: ‘A’ was not declared in this scope fin.getline(A,maxn); ^ user.cpp:24:14: error: ‘B’ was not declared in this scope fin.getline(B,maxn); ^ user.cpp:27:3: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] for(i=M;i;--i)A[i]=A[i-1];A[0]=' '; ^~~ user.cpp:27:29: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’ for(i=M;i;--i)A[i]=A[i-1];A[0]=' '; ^ user.cpp:28:3: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] for(i=N;i;--i)B[i]=B[i-1];B[0]=' '; ^~~ user.cpp:28:29: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘for’ for(i=N;i;--i)B[i]=B[i-1];B[0]=' '; ^ user.cpp:32:8: error: ‘pi’ was not declared in this scope q=pi[q]; ^~ user.cpp:36:8: error: ‘pi’ was not declared in this scope q=pi[M]; ^~ user.cpp:42:3: error: ‘fout’ was not declared in this scope fout<<n<<'\n' ^~~~

Ceva nu functioneaza?