Borderou de evaluare (job #1200144)

Utilizator smaraldaSmaranda Dinu smaralda Data 21 iunie 2014 22:46:17
Problema Ratina Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.cpp: In function ‘TRIE* add(TRIE*, char*, int)’: user.cpp:39:19: warning: NULL used in arithmetic [-Wpointer-arith] if(word[0] == NULL) ^ user.cpp: In function ‘int main()’: user.cpp:104:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i = 0; i < srt.size(); i++) ^ user.cpp:114:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j = 1; (1<<j) <= tata.size(); j++) ^ user.cpp:88:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("ratina.in","r",stdin); ^ user.cpp:89:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("ratina.out","w",stdout); ^ user.cpp:94:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d\n",&nw,&nq); ^ user.cpp:98:19: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(cstr); ^ user.cpp:121:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&nw,&x); ^ user.cpp:124:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&x); ^ /tmp/cc5UEupU.o: In function `main': user.cpp:(.text.startup+0x174): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
1Depăşit1716kbTime limit exceeded.0
2Depăşit1716kbTime limit exceeded.0
388ms1572kbOK5
488ms1576kbOK5
584ms1484kbOK5
684ms1484kbOK5
7Depăşit5364kbTime limit exceeded.0
8Depăşit5516kbTime limit exceeded.0
9Depăşit5492kbTime limit exceeded.0
10Depăşit1720kbTime limit exceeded.0
11Depăşit1244kbTime limit exceeded.0
12Depăşit2256kbTime limit exceeded.0
13Depăşit1736kbTime limit exceeded.0
14Depăşit2256kbTime limit exceeded.0
15Depăşit1752kbTime limit exceeded.0
16Depăşit2860kbTime limit exceeded.0
17Depăşit3124kbTime limit exceeded.0
18Depăşit3220kbTime limit exceeded.0
19Depăşit2896kbTime limit exceeded.0
20Depăşit2876kbTime limit exceeded.0
Punctaj total20

Ceva nu functioneaza?