Borderou de evaluare (job #1545534)
Utilizator | Data | 6 decembrie 2015 20:29:01 | |
---|---|---|---|
Problema | Infinite Pattern Matching | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int hash(char*)’:
user.cpp:32:33: error: ‘strlen’ was not declared in this scope
for (int i = 0; i < strlen(S); i ++) {
^
user.cpp: In function ‘int RabinKarp()’:
user.cpp:87:23: error: ‘strlen’ was not declared in this scope
Blength = strlen(B);
^
user.cpp: In function ‘void read()’:
user.cpp:16:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", B);
^
user.cpp: In function ‘int main(int, const char**)’:
user.cpp:112:54: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("infinitepatternmatching.in", "r", stdin);
^
user.cpp:113:56: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("infinitepatternmatching.out", "w", stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !