Borderou de evaluare (job #1407552)
Utilizator | Data | 29 martie 2015 19:03:05 | |
---|---|---|---|
Problema | Secv10 | Status | done |
Runda | ONIS 2015, Runda 2 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void KMPSearch(char*, char*)’:
user.cpp:15:20: error: ‘strlen’ was not declared in this scope
int M = strlen(pat);
^
user.cpp: In function ‘int main()’:
user.cpp:88:13: error: ‘strlen’ was not declared in this scope
s[strlen(s) - 1] = '\0';
^
user.cpp:97:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < suf.size(); i++){
^
user.cpp:98:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (j < pref.size() && pref[j] <= suf[i]){
^
user.cpp:91:7: warning: unused variable ‘x’ [-Wunused-variable]
int x = strlen(s);
^
user.cpp:80:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("secv10.in", "r", stdin);
^
user.cpp:81:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("secv10.out", "w", stdout);
^
user.cpp:82:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&t);
^
user.cpp:85:26: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fgets(s, 100001, stdin);
^
user.cpp:86:27: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fgets(st, 100001, stdin);
^
user.cpp:87:27: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fgets(dr, 100001, stdin);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !