Borderou de evaluare (job #2276051)

Utilizator Vlad_lsc2008Lungu Vlad Vlad_lsc2008 Data 4 noiembrie 2018 00:12:22
Problema Potrivirea sirurilor Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void prefix(char*, int*)': main.cpp:30:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation] for(int j=1;j<=n;j++) cout<<p[j]<<' '; cout<<'\n'; ^~~ main.cpp:30:48: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for' for(int j=1;j<=n;j++) cout<<p[j]<<' '; cout<<'\n'; ^~~~ main.cpp: In function 'int main()': main.cpp:65:13: error: 'gets' was not declared in this scope gets(a+1); ^ main.cpp:63:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("strmatch.in","r",stdin); ^ main.cpp:64:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("strmatch.out","w",stdout); ^ Non zero exit status: 1

Ceva nu functioneaza?