Pagini recente » Borderou de evaluare (job #1193417) | Borderou de evaluare (job #1325750) | Borderou de evaluare (job #1557818) | Borderou de evaluare (job #3208808) | Borderou de evaluare (job #1208332)
Borderou de evaluare (job #1208332)
Raport evaluator
Compilare:
user.cpp: In function ‘void update(trie*, char*)’:
user.cpp:23:13: warning: NULL used in arithmetic [-Wpointer-arith]
{if (l[0]==NULL) {p->rel+=newrel;
^
user.cpp: In function ‘void query(trie*, char*)’:
user.cpp:33:12: warning: NULL used in arithmetic [-Wpointer-arith]
{if (l[0]==NULL) {int i,maxim=0,q=0;
^
user.cpp: In function ‘void rez()’:
user.cpp:56:28: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null]
for (j=0;j<=32;j++) t->s[j]=NULL;
^
user.cpp:61:31: warning: format ‘%s’ expects argument of type ‘char*’, but argument 3 has type ‘char (*)[33]’ [-Wformat=]
fscanf(f,"%s",&k);
^
user.cpp:64:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (i<strlen(k)) {int q;
^
user.cpp:70:86: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null]
for (j=0;j<=32;j++) p1->s[j]=NULL;
^
user.cpp:85:32: warning: format ‘%s’ expects argument of type ‘char*’, but argument 3 has type ‘char (*)[33]’ [-Wformat=]
fscanf(f,"%s ",&k);
^
user.cpp:102:42: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null]
for (j=0;j<=32;j++) t->s[j]=NULL;
^
user.cpp: In function ‘int main()’:
user.cpp:108:6: warning: unused variable ‘i’ [-Wunused-variable]
{int i,j;
^
user.cpp:108:8: warning: unused variable ‘j’ [-Wunused-variable]
{int i,j;
^
user.cpp:109:21: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d",&test);
^
user.cpp: In function ‘void rez()’:
user.cpp:59:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d %d",&n,&m);
^
user.cpp:61:32: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%s",&k);
^
user.cpp:83:37: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
while (m!=0) {fscanf(f,"\n%c ",&chr);
^
user.cpp:85:33: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%s ",&k);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 248kb | Killed by signal 11(SIGSEGV). | 0 |
Punctaj total | 0 |