Pagini recente » Borderou de evaluare (job #2267864) | Borderou de evaluare (job #2675600) | Borderou de evaluare (job #2519233) | Borderou de evaluare (job #2106505) | Borderou de evaluare (job #1027367)
Borderou de evaluare (job #1027367)
Raport evaluator
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 pointer type ‘char*’ as the destination; expected ‘char’ or an explicit length [-Wsizeof-pointer-memaccess]
memset(c,0,sizeof(a));
^
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 pointer type ‘char*’ as the destination; expected ‘char’ or an explicit length [-Wsizeof-pointer-memaccess]
memset(c,0,sizeof(a));
^
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:91:17: warning: array subscript has type ‘char’ [-Wchar-subscripts]
b[++b[0]] = n % 10;
^
user.cpp:96:9: warning: unused variable ‘op’ [-Wunused-variable]
int op;
^
user.cpp: In function ‘void calc(int)’:
user.cpp:132:17: warning: array subscript has type ‘char’ [-Wchar-subscripts]
a[++a[0]] = n % 10;
^
user.cpp:142:17: warning: array subscript has type ‘char’ [-Wchar-subscripts]
b[++b[0]] = n % 10;
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 396kb | Killed by signal 11(SIGSEGV). | 0 |
2 | 0ms | 396kb | Killed by signal 11(SIGSEGV). | 0 |
3 | 0ms | 404kb | Killed by signal 11(SIGSEGV). | 0 |
4 | 0ms | 400kb | Killed by signal 11(SIGSEGV). | 0 |
5 | 0ms | 396kb | Killed by signal 11(SIGSEGV). | 0 |
6 | 0ms | 404kb | Killed by signal 11(SIGSEGV). | 0 |
7 | 0ms | 404kb | Killed by signal 11(SIGSEGV). | 0 |
8 | 0ms | 400kb | Killed by signal 11(SIGSEGV). | 0 |
9 | 0ms | 400kb | Killed by signal 11(SIGSEGV). | 0 |
10 | 0ms | 400kb | Killed by signal 11(SIGSEGV). | 0 |
Punctaj total | 0 |