Borderou de evaluare (job #944909)

Utilizator predatorGigi Valoare predator Data 29 aprilie 2013 23:15:39
Problema Puteri2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:48:27: warning: argument to ‘sizeof’ in ‘void* memcpy(void*, const void*, size_t)’ call is the same expression as the source; did you mean to dereference it? [-Wsizeof-pointer-memaccess] memcpy(st+1,sol+1,sizeof(sol+1)); ^ user.cpp:59:27: warning: argument to ‘sizeof’ in ‘void* memcpy(void*, const void*, size_t)’ call is the same expression as the source; did you mean to dereference it? [-Wsizeof-pointer-memaccess] memcpy(dr+1,sol+1,sizeof(sol+1)); ^ user.cpp:67:38: warning: argument to ‘sizeof’ in ‘void* memcpy(void*, const void*, size_t)’ call is the same pointer type ‘long long int*’ as the destination; expected ‘long long int’ or an explicit length [-Wsizeof-pointer-memaccess] memcpy(mid+1,mij+1,sizeof(mij+1)); ^ user.cpp:71:38: warning: argument to ‘sizeof’ in ‘void* memcpy(void*, const void*, size_t)’ call is the same pointer type ‘long long int*’ as the destination; expected ‘long long int’ or an explicit length [-Wsizeof-pointer-memaccess] memcpy(mij+1,mid+1,sizeof(mid+1)); ^ user.cpp:76:54: warning: argument to ‘sizeof’ in ‘void* memcpy(void*, const void*, size_t)’ call is the same expression as the source; did you mean to dereference it? [-Wsizeof-pointer-memaccess] dr[0]=mij[0],memcpy(dr+1,mij+1,sizeof(mij+1)); ^ user.cpp:81:41: warning: argument to ‘sizeof’ in ‘void* memcpy(void*, const void*, size_t)’ call is the same expression as the source; did you mean to dereference it? [-Wsizeof-pointer-memaccess] memcpy(st+1,mij+1,sizeof(mij+1)); ^ user.cpp: In function ‘int check()’: user.cpp:172:1: warning: control reaches end of non-void function [-Wreturn-type] } ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
1Depăşit388kbTime limit exceeded.00
2Depăşit392kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?