Borderou de evaluare (job #2229104)
Utilizator | Data | 5 august 2018 21:21:16 | |
---|---|---|---|
Problema | String Repair | Status | done |
Runda | Arhiva Monthly | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:8:12: warning: array subscript has type ‘char’ [-Wchar-subscripts]
s[i]=s[i-1];
^
user.cpp:10:12: warning: array subscript has type ‘char’ [-Wchar-subscripts]
t[i]=t[i-1];
^
user.cpp:11:9: error: ‘l’ was not declared in this scope
for(l=j=i=1;i<=m;i++) {
^
user.cpp:12:18: warning: array subscript has type ‘char’ [-Wchar-subscripts]
while(t[i]!=s[j]&&j<=n)
^
user.cpp:12:24: warning: array subscript has type ‘char’ [-Wchar-subscripts]
while(t[i]!=s[j]&&j<=n)
^
user.cpp:5:60: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sr.in","r",stdin),freopen("sr.out","w",stdout);
^
user.cpp:5:60: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
user.cpp:6:56: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",s),scanf("%s",t),n=strlen(s),m=strlen(t);
^
user.cpp:6:56: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !