Borderou de evaluare (job #2565940)
Utilizator | Data | 2 martie 2020 17:59:55 | |
---|---|---|---|
Problema | Charlie | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:13:11: error: 'gets' was not declared in this scope
gets(s);
^
main.cpp:17:34: warning: array subscript has type 'char' [-Wchar-subscripts]
for (;vf>=3 && s[st[vf-2]]>s[st[vf-1]] && s[st[vf-1]]<s[st[vf]];vf--) {
^
main.cpp:17:46: warning: array subscript has type 'char' [-Wchar-subscripts]
for (;vf>=3 && s[st[vf-2]]>s[st[vf-1]] && s[st[vf-1]]<s[st[vf]];vf--) {
^
main.cpp:17:61: warning: array subscript has type 'char' [-Wchar-subscripts]
for (;vf>=3 && s[st[vf-2]]>s[st[vf-1]] && s[st[vf-1]]<s[st[vf]];vf--) {
^
main.cpp:17:71: warning: array subscript has type 'char' [-Wchar-subscripts]
for (;vf>=3 && s[st[vf-2]]>s[st[vf-1]] && s[st[vf-1]]<s[st[vf]];vf--) {
^
main.cpp:18:32: warning: array subscript has type 'char' [-Wchar-subscripts]
sol+=max(s[st[vf-2]]-'a'+1,s[ st[vf]]-'a'+1);
^
main.cpp:18:49: warning: array subscript has type 'char' [-Wchar-subscripts]
sol+=max(s[st[vf-2]]-'a'+1,s[ st[vf]]-'a'+1);
^
main.cpp:24:29: warning: array subscript has type 'char' [-Wchar-subscripts]
printf("%c", s[st[i]]);
^
main.cpp:9:9: warning: unused variable 'n' [-Wunused-variable]
int n,m,a,b,c,vf=0,sol=0,n2,i;
^
main.cpp:9:13: warning: unused variable 'a' [-Wunused-variable]
int n,m,a,b,c,vf=0,sol=0,n2,i;
^
main.cpp:9:15: warning: unused variable 'b' [-Wunused-variable]
int n,m,a,b,c,vf=0,sol=0,n2,i;
^
main.cpp:9:17: warning: unused variable 'c' [-Wunused-variable]
int n,m,a,b,c,vf=0,sol=0,n2,i;
^
main.cpp:10:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("charlie.in","r",stdin);
^
main.cpp:11:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("charlie.out","w",stdout);
^
main.cpp:12:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n", &m);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !