Borderou de evaluare (job #1990545)

Utilizator KeitaroAbderus Alastor Keitaro Data 12 iunie 2017 15:17:57
Problema Potrivirea sirurilor Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void RabinKarp(char*, char*)’: user.cpp:37:22: error: ‘strlen’ was not declared in this scope int nl = strlen(str1); ^ user.cpp: In function ‘int main()’: user.cpp:61:8: warning: unused variable ‘p1’ [-Wunused-variable] char *p1, *p2; ^ user.cpp:61:13: warning: unused variable ‘p2’ [-Wunused-variable] char *p1, *p2; ^ user.cpp:58:36: 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); ^ user.cpp:59:38: 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); ^ user.cpp:62:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s %s", str1, str2); ^

Ceva nu functioneaza?