Borderou de evaluare (job #1521694)

Utilizator ipus1Stefan Enescu ipus1 Data 10 noiembrie 2015 19:31:35
Problema SETI Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 50

Raport evaluator

Compilare: user.cpp: In function ‘void insert(trie*, char*)’: user.cpp:15:13: warning: NULL used in arithmetic [-Wpointer-arith] {if(*s==NULL) ^ user.cpp: In function ‘int count(trie*, char*)’: user.cpp:25:13: warning: NULL used in arithmetic [-Wpointer-arith] {if(*s==NULL) ^ user.cpp: In function ‘int main()’: user.cpp:39:18: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[135000]’ [-Wformat=] scanf("%s",&v); ^ user.cpp:42:21: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[17]’ [-Wformat=] {scanf("%s",&vec); ^ user.cpp:43:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(strlen(vec)>maxim) ^ user.cpp:67:21: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[17]’ [-Wformat=] {scanf("%s",&vec); ^ user.cpp: In function ‘int count(trie*, char*)’: user.cpp:31:5: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:33:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] {freopen ("seti.in","r",stdin); ^ user.cpp:34:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("seti.out","w",stdout); ^ user.cpp:37:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%c",&n,&a); ^ user.cpp:39:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s",&v); ^ user.cpp:40:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%c",&m,&a); ^ user.cpp:42:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] {scanf("%s",&vec); ^ user.cpp:46:30: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("seti.in","r",stdin); ^ user.cpp:47:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%c",&n,&a); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
112ms380kbOK10
24ms308kbOK10
34ms884kbOK10
432ms6088kbOK10
5108msDepăşitMemory limit exceeded.0
6108msDepăşitMemory limit exceeded.0
7108msDepăşitMemory limit exceeded.0
8116msDepăşitMemory limit exceeded.0
9116msDepăşitMemory limit exceeded.0
10100ms15572kbOK10
Punctaj total50

Ceva nu functioneaza?