Borderou de evaluare (job #2103235)

Utilizator mihai.alphamihai craciun mihai.alpha Data 9 ianuarie 2018 22:48:02
Problema Mcript Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:84:29: 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(v, 0, sizeof v); ^ user.cpp:95:33: 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(v, 0, sizeof v); ^ user.cpp: In function ‘bool check(nod*, char*)’: user.cpp:66:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:70:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("mcript.in", "r", stdin); ^ user.cpp:71:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("mcript.out", "w", stdout); ^ user.cpp:73:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] R("%d", &n); ^ user.cpp:79:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] R("%d", &m); ^ user.cpp:85:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s", v); ^ user.cpp:88:16: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] R("%d", &k); ^ user.cpp:91:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] R("%d", &nrcuv); ^ user.cpp:96:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s", v); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms440kbOK10
20ms476kbIncorect0
34ms884kbIncorect0
412ms2952kbIncorect0
536ms6676kbIncorect0
660ms10368kbIncorect0
7104ms18348kbIncorect0
8344ms50392kbIncorect0
9384msDepăşitMemory limit exceeded.0
10380msDepăşitMemory limit exceeded.0
Punctaj total10

Ceva nu functioneaza?