Borderou de evaluare (job #1805824)
Utilizator | Data | 14 noiembrie 2016 14:46:39 | |
---|---|---|---|
Problema | Potrivirea sirurilor | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void kmp_pref(char*, int*)’:
user.cpp:15:19: error: ‘strlen’ was not declared in this scope
int l = strlen(w);
^
user.cpp: In function ‘int main()’:
user.cpp:35:19: error: ‘strlen’ was not declared in this scope
int l = strlen(A);
^
user.cpp:49:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < k; ++ i)
^
user.cpp:31: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);
^
user.cpp:32: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);
^
user.cpp:34:10: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(A);
^
user.cpp:37:18: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(A + l + 1);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !