Borderou de evaluare (job #2136797)

Utilizator bodea.georgianaBodea Georgiana bodea.georgiana Data 20 februarie 2018 11:15:58
Problema Caps Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:53: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:42:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:50: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:51: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:52: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:56: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:51: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:52: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
10ms816kbFisier de iesire corupt0
2Depăşit820kbTime limit exceeded.0
3Depăşit812kbTime limit exceeded.0
4Depăşit868kbTime limit exceeded.0
5Depăşit820kbTime limit exceeded.0
6Depăşit876kbTime limit exceeded.0
7Depăşit824kbTime limit exceeded.0
8Depăşit820kbTime limit exceeded.0
90ms860kbKilled by signal 11(SIGSEGV).0
100ms936kbKilled by signal 11(SIGSEGV).0
110ms816kbKilled by signal 11(SIGSEGV).0
120ms876kbKilled by signal 11(SIGSEGV).0
130ms832kbKilled by signal 11(SIGSEGV).0
140ms852kbKilled by signal 11(SIGSEGV).0
150ms884kbKilled by signal 11(SIGSEGV).0
160ms896kbKilled by signal 11(SIGSEGV).0
170ms936kbKilled by signal 11(SIGSEGV).0
180ms908kbKilled by signal 11(SIGSEGV).0
190ms908kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?