Borderou de evaluare (job #1428165)

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

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:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("perm.in", "r", stdin); ^ user.cpp:56:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("perm.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
1Depăşit40080kbTime limit exceeded.0
2Depăşit40080kbTime limit exceeded.0
3Depăşit40084kbTime limit exceeded.0
4Depăşit40080kbTime limit exceeded.0
5Depăşit40084kbTime limit exceeded.0
644ms40108kbOk!10
7Depăşit40084kbTime limit exceeded.0
8Depăşit40084kbTime limit exceeded.0
9Depăşit40084kbTime limit exceeded.0
10Depăşit40084kbTime limit exceeded.0
Punctaj total10

Ceva nu functioneaza?