Borderou de evaluare (job #2137421)

Utilizator bodea.georgianaBodea Georgiana bodea.georgiana Data 20 februarie 2018 19:45:06
Problema Caps Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 40

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:59:12: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null] c[lg+1]=NULL; ^ user.cpp:52:11: warning: unused variable ‘i’ [-Wunused-variable] int q,i,k; ^ user.cpp:53:19: warning: unused variable ‘p’ [-Wunused-variable] long long poz,p; ^ user.cpp: In function ‘long long int rez(long long int)’: user.cpp:48:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:56:31: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%lld %d",&lg,&q); ^ user.cpp:57:24: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fgets(c+1,100012,f); ^ user.cpp:58:24: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fgets(c+1,100012,f); ^ user.cpp:62:30: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%lld",&poz); ^ In file included from /usr/include/stdio.h:936:0, from user.cpp:1: In function ‘char* fgets(char*, int, FILE*)’, inlined from ‘int main()’ at user.cpp:57:24: /usr/include/x86_64-linux-gnu/bits/stdio2.h:261:58: warning: call to ‘__fgets_chk_warn’ declared with attribute warning: fgets called with bigger size than length of destination buffer return __fgets_chk_warn (__s, __bos (__s), __n, __stream); ^ In function ‘char* fgets(char*, int, FILE*)’, inlined from ‘int main()’ at user.cpp:58:24: /usr/include/x86_64-linux-gnu/bits/stdio2.h:261:58: warning: call to ‘__fgets_chk_warn’ declared with attribute warning: fgets called with bigger size than length of destination buffer return __fgets_chk_warn (__s, __bos (__s), __n, __stream); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms816kbPartial corect4
20ms820kbPartial corect2
30ms860kbPartial corect2
40ms864kbPartial corect2
516ms824kbPartial corect2
620ms936kbPartial corect2
720ms820kbPartial corect2
824ms824kbPartial corect2
90ms824kbPartial corect2
100ms856kbPartial corect2
110ms824kbPartial corect2
120ms860kbPartial corect2
1324ms868kbPartial corect2
1428ms856kbPartial corect2
1532ms888kbPartial corect2
1640ms900kbPartial corect2
1752ms908kbPartial corect2
1868ms912kbPartial corect2
1972ms916kbPartial corect2
Punctaj total40

Ceva nu functioneaza?