Borderou de evaluare (job #1193386)
Utilizator | Data | 31 mai 2014 17:27:41 | |
---|---|---|---|
Problema | Litere2 | Status | done |
Runda | Arhiva Monthly | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:20:7: error: size of array ‘a’ is too large
a[lmax];
^
user.cpp: In function ‘int main()’:
user.cpp:39:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (i<strlen(s))
^
user.cpp:41:50: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (s[i]<'a' || s[i]>'z' && i<strlen(s))
^
user.cpp:41:37: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
while (s[i]<'a' || s[i]>'z' && i<strlen(s))
^
user.cpp:52:52: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (s[i]>='a' && s[i]<='z' && i<strlen(s))
^
user.cpp:60:14: error: ‘a’ was not declared in this scope
a[nr].lit[nrr]=s[i];
^
user.cpp:69:11: error: ‘a’ was not declared in this scope
a[nr].l=nrr;
^
user.cpp:73:15: error: ‘a’ was not declared in this scope
a[nr].val=a[nr].val+v[j]*p2;
^
user.cpp:79:11: error: ‘a’ was not declared in this scope
sort(a+1,a+nr+1,comp);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !