Borderou de evaluare (job #1428162)

Utilizator alex_bucevschiBucevschi Alexandru alex_bucevschi Data 3 mai 2015 19:53:17
Problema Permutari Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘void suma(int*, int*, int*)’: user.cpp:8:22: warning: argument to ‘sizeof’ in ‘void* memset(void*, int, size_t)’ call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess] memset(c,0,sizeof(c)); ^ user.cpp: In function ‘int* produs(int*, int)’: user.cpp:26:9: warning: address of local variable ‘c’ returned [-Wreturn-local-addr] int c[N]={0} , i; ^ user.cpp: In function ‘int main()’: user.cpp:55:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("permutari.in", "r", stdin); ^ user.cpp:56:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("permutari.out", "w", stdout); ^ user.cpp:70:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &n, &k); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
192msDepăşitMemory limit exceeded.0
292msDepăşitMemory limit exceeded.0
392msDepăşitMemory limit exceeded.0
492msDepăşitMemory limit exceeded.0
592msDepăşitMemory limit exceeded.0
692msDepăşitMemory limit exceeded.0
792msDepăşitMemory limit exceeded.0
892msDepăşitMemory limit exceeded.0
992msDepăşitMemory limit exceeded.0
1092msDepăşitMemory limit exceeded.0
Punctaj total0

Ceva nu functioneaza?