Borderou de evaluare (job #2137538)

Utilizator bodea.georgianaBodea Georgiana bodea.georgiana Data 20 februarie 2018 21:08:27
Problema Caps Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 4

Raport evaluator

Compilare: user.cpp: In function ‘void frecventa()’: user.cpp:16:24: warning: array subscript has type ‘char’ [-Wchar-subscripts] ++frsir[0][c[i]]; ^ user.cpp: In function ‘int main()’: user.cpp:122:12: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null] c[lg+1]=NULL; ^ user.cpp:144:50: warning: pointer to a function used in arithmetic [-Wpointer-arith] fprintf(g," %d\n",frtot[ascii]+sp[poz]); ^ user.cpp:144:50: warning: pointer to a function used in arithmetic [-Wpointer-arith] user.cpp:144:51: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘void (*)(char)’ [-Wformat=] fprintf(g," %d\n",frtot[ascii]+sp[poz]); ^ user.cpp:115:19: warning: unused variable ‘p’ [-Wunused-variable] long long poz,p; ^ user.cpp: In function ‘long long int rez(long long int)’: user.cpp:110:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:119: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:120: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:121: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:128: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:120: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:121: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
10ms876kbPartial corect4
20ms844kbIncorect0
30ms848kbIncorect0
40ms844kbIncorect0
5200ms864kbIncorect0
6344ms860kbIncorect0
7472ms936kbIncorect0
8620ms932kbIncorect0
94ms852kbIncorect0
108ms860kbIncorect0
114ms852kbIncorect0
128ms856kbIncorect0
13Depăşit940kbTime limit exceeded.0
14Depăşit1016kbTime limit exceeded.0
15Depăşit1180kbTime limit exceeded.0
16Depăşit1260kbTime limit exceeded.0
17Depăşit1284kbTime limit exceeded.0
18Depăşit1300kbTime limit exceeded.0
19Depăşit1320kbTime limit exceeded.0
Punctaj total4

Ceva nu functioneaza?