Pagini recente » Borderou de evaluare (job #504980) | Borderou de evaluare (job #250408) | Borderou de evaluare (job #2154316) | Borderou de evaluare (job #1468292) | Borderou de evaluare (job #1120679)
Borderou de evaluare (job #1120679)
Raport evaluator
Compilare:
user.cpp: In function ‘void Calc()’:
user.cpp:11:15: warning: array subscript has type ‘char’ [-Wchar-subscripts]
{c[top]=s[i]; top++;
^
user.cpp:15:26: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(s[i]=='(') {c[top]='\\'; top++;}
^
user.cpp:17:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
{strcpy(a[z],c);z++;
^
user.cpp:25:29: warning: array subscript has type ‘char’ [-Wchar-subscripts]
else {strcpy(a[z],c); z++;
^
user.cpp:23:8: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if(s[i]==')')
^
user.cpp: In function ‘int main()’:
user.cpp:42:18: warning: format ‘%s’ expects argument of type ‘char*’, but argument 3 has type ‘char (*)[1601]’ [-Wformat=]
fscanf(f,"%s",&s);
^
user.cpp:46:25: warning: array subscript has type ‘char’ [-Wchar-subscripts]
{fprintf(g,"%s", a[z]);
^
user.cpp: In function ‘void Calc()’:
user.cpp:24:45: warning: array subscript is below array bounds [-Warray-bounds]
if(s[i-1]=='(') {strcpy(c-1,"");top--;}
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 232kb | Incorect | 0 |
| 2 | 0ms | 236kb | Incorect | 0 |
| 3 | 0ms | 232kb | Incorect | 0 |
| 4 | 4ms | 236kb | Incorect | 0 |
| 5 | 4ms | 236kb | Incorect | 0 |
| 6 | 4ms | 232kb | Incorect | 0 |
| 7 | 4ms | 232kb | Incorect | 0 |
| 8 | 4ms | 236kb | Incorect | 0 |
| 9 | 4ms | 236kb | Incorect | 0 |
| 10 | 0ms | 232kb | Incorect | 0 |
| Punctaj total | 0 |