Pagini recente » Borderou de evaluare (job #1494107) | Borderou de evaluare (job #110787) | Borderou de evaluare (job #2503298) | Borderou de evaluare (job #2614351) | Borderou de evaluare (job #1213238)
Borderou de evaluare (job #1213238)
Raport evaluator
Compilare:
user.cpp: In function ‘void Insert(std::string)’:
user.cpp:33:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (j=0;j<S.size();++j)
^
user.cpp: In function ‘bool Delete(int, Trie*)’:
user.cpp:46:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (step==str.size())
^
user.cpp: In function ‘int Query(std::string)’:
user.cpp:68:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (j=0;j<S.size();++j)
^
user.cpp:65:11: warning: unused variable ‘t’ [-Wunused-variable]
int j,t=0;
^
user.cpp: In function ‘int Prefix(Trie*, int, int)’:
user.cpp:81:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (step==str.size() || !node->son[str[step]-'a'])
^
user.cpp: In function ‘int main()’:
user.cpp:92:22: warning: format ‘%s’ expects argument of type ‘char*’, but argument 3 has type ‘char (*)[1000]’ [-Wformat=]
scanf("%d%s",&type,&S);
^
user.cpp:116:26: warning: format ‘%s’ expects argument of type ‘char*’, but argument 3 has type ‘char (*)[1000]’ [-Wformat=]
scanf("%d%s",&type,&S);
^
user.cpp:89:29: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("trie.in","r",stdin);
^
user.cpp:90:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("trie.out","w",stdout);
^
user.cpp:92:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%s",&type,&S);
^
user.cpp:116:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%s",&type,&S);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 296kb | OK | 5 | 5 |
2 | 0ms | 308kb | OK | 5 | 5 |
3 | 0ms | 308kb | OK | 5 | 5 |
4 | 0ms | 304kb | OK | 5 | 5 |
5 | 0ms | 308kb | OK | 5 | 5 |
6 | 4ms | 316kb | OK | 5 | 5 |
7 | 8ms | 328kb | OK | 5 | 5 |
8 | 12ms | 328kb | OK | 5 | 5 |
9 | 24ms | 464kb | Incorect | 0 | 0 |
10 | 36ms | 964kb | OK | 5 | 5 |
11 | 48ms | 364kb | OK | 5 | 5 |
12 | 72ms | 1664kb | Incorect | 0 | 0 |
13 | 88ms | 1412kb | Incorect | 0 | 0 |
14 | 100ms | 572kb | OK | 5 | 5 |
15 | 124ms | 540kb | OK | 5 | 0 |
16 | 176ms | 10132kb | Incorect | 0 |
17 | 148ms | 324kb | Incorect | 0 | 0 |
18 | 192ms | 7468kb | Incorect | 0 |
19 | 152ms | 332kb | OK | 5 | 0 |
20 | Depăşit | 13512kb | Time limit exceeded. | 0 |
Punctaj total | 55 |