Pagini recente » Borderou de evaluare (job #775973) | Borderou de evaluare (job #636836) | Borderou de evaluare (job #406625) | Borderou de evaluare (job #1528952) | Borderou de evaluare (job #1872844)
Borderou de evaluare (job #1872844)
Raport evaluator
Compilare:
user.cpp: In function ‘void Insert(Trie*, int, int)’:
user.cpp:22:26: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(nod->son[v[lvl]]==0)
^
user.cpp:23:25: warning: array subscript has type ‘char’ [-Wchar-subscripts]
nod->son[v[lvl]]=new Trie;
^
user.cpp:24:30: warning: array subscript has type ‘char’ [-Wchar-subscripts]
Insert(nod->son[v[lvl]],lvl+1,sz);
^
user.cpp: In function ‘int Find(Trie*, int, int)’:
user.cpp:32:26: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(nod->son[v[lvl]]==0)
^
user.cpp:34:35: warning: array subscript has type ‘char’ [-Wchar-subscripts]
return Find(nod->son[v[lvl]],lvl+1,sz);
^
user.cpp: In function ‘int main()’:
user.cpp:45:33: warning: format ‘%s’ expects argument of type ‘char*’, but argument 3 has type ‘char (*)[31]’ [-Wformat=]
fscanf(fi,"%s " ,&A[j]);
^
user.cpp:53:30: warning: format ‘%s’ expects argument of type ‘char*’, but argument 3 has type ‘char (*)[31]’ [-Wformat=]
fscanf(fi,"%s " ,&A[i]);
^
user.cpp:42:49: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fi,"%d %d %d %d %d " ,&n,&k,&m,&p,&q);
^
user.cpp:45:34: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fi,"%s " ,&A[j]);
^
user.cpp:53:31: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fi,"%s " ,&A[i]);
^
user.cpp:56:28: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fi,"%d " ,&x);
^
user.cpp:58:35: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fi,"%d " ,&poz[i]);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 12ms | 4304kb | OK | 10 |
2 | 4ms | 1256kb | OK | 10 |
3 | 8ms | 2400kb | OK | 10 |
4 | 108ms | 27324kb | OK | 10 |
5 | 236ms | 53204kb | OK | 10 |
6 | 496ms | 110132kb | OK | 10 |
7 | 800ms | 185452kb | OK | 10 |
8 | 860ms | 164428kb | OK | 10 |
9 | 912ms | 172508kb | OK | 10 |
10 | 908ms | 172516kb | OK | 10 |
Punctaj total | 100 |