Borderou de evaluare (job #1025857)
Utilizator | Data | 10 noiembrie 2013 17:25:17 | |
---|---|---|---|
Problema | Bifo | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void aduna(char*, char*, char*)’:
user.cpp:30:22: warning: argument to ‘sizeof’ in ‘void* memset(void*, int, size_t)’ call is the same expression as the destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess]
memset(c,0,sizeof(c));
^
user.cpp:42:17: warning: array subscript has type ‘char’ [-Wchar-subscripts]
c[++c[0]] = t;
^
user.cpp: In function ‘void scadere(char*, char*, char*)’:
user.cpp:53:22: warning: argument to ‘sizeof’ in ‘void* memset(void*, int, size_t)’ call is the same expression as the destination; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess]
memset(c,0,sizeof(c));
^
user.cpp:71:16: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (c[c[0]] == 0) c[0]--;
^
user.cpp: In function ‘int findString()’:
user.cpp:79:17: warning: array subscript has type ‘char’ [-Wchar-subscripts]
a[++a[0]] = n % 10;
^
user.cpp:89:17: warning: array subscript has type ‘char’ [-Wchar-subscripts]
b[++b[0]] = n % 10;
^
user.cpp:94:9: warning: unused variable ‘op’ [-Wunused-variable]
int op;
^
user.cpp: In function ‘void calc(int)’:
user.cpp:124:17: warning: array subscript has type ‘char’ [-Wchar-subscripts]
a[++a[0]] = n % 10;
^
user.cpp:134:17: warning: array subscript has type ‘char’ [-Wchar-subscripts]
b[++b[0]] = n % 10;
^
user.cpp: In function ‘void change(char*)’:
user.cpp:170:13: error: ‘strrev’ was not declared in this scope
strrev(m);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !