Borderou de evaluare (job #2136876)

Utilizator bodea.georgianaBodea Georgiana bodea.georgiana Data 20 februarie 2018 12:46:32
Problema Caps Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 14

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:54:12: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null] c[lg+1]=NULL; ^ user.cpp: In function ‘long long int rez(long long int, long long int)’: user.cpp:43:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:51: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:52:25: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fgets(c+1,1000012,f); ^ user.cpp:53:25: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fgets(c+1,1000012,f); ^ user.cpp:57: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:52:25: /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:53:25: /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
10ms936kbPartial corect4
20ms820kbPartial corect2
30ms820kbPartial corect2
40ms824kbPartial corect2
516ms828kbIncorect0
620ms824kbIncorect0
720ms824kbPartial corect2
824ms832kbPartial corect2
90ms860kbKilled by signal 11(SIGSEGV).0
100ms864kbKilled by signal 11(SIGSEGV).0
110ms864kbKilled by signal 11(SIGSEGV).0
120ms824kbKilled by signal 11(SIGSEGV).0
130ms840kbKilled by signal 11(SIGSEGV).0
140ms856kbKilled by signal 11(SIGSEGV).0
150ms888kbKilled by signal 11(SIGSEGV).0
160ms900kbKilled by signal 11(SIGSEGV).0
170ms900kbKilled by signal 11(SIGSEGV).0
180ms912kbKilled by signal 11(SIGSEGV).0
190ms920kbKilled by signal 11(SIGSEGV).0
Punctaj total14

Ceva nu functioneaza?