Borderou de evaluare (job #2088274)

Utilizator bodea.georgianaBodea Georgiana bodea.georgiana Data 14 decembrie 2017 21:45:09
Problema Caps Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 25

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:13:22: warning: format ‘%s’ expects argument of type ‘char*’, but argument 3 has type ‘char (*)[100002]’ [-Wformat=] fscanf(f,"%s",&c1); ^ user.cpp:18:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(strlen(fi)<x) ^ user.cpp:20:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] while(strlen(fi)<x) ^ user.cpp:22:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j=0;j<strlen(c1);j++) ^ user.cpp:37:23: warning: array subscript has type ‘char’ [-Wchar-subscripts] fr[fi[j++]]++; ^ user.cpp:39:36: warning: array subscript has type ‘char’ [-Wchar-subscripts] fprintf(g,"%d\n",fr[fi[x-1]]); ^ user.cpp:9:16: warning: unused variable ‘n’ [-Wunused-variable] int lg,q,x,n,i,j,k; ^ user.cpp:9:22: warning: unused variable ‘k’ [-Wunused-variable] int lg,q,x,n,i,j,k; ^ user.cpp:12:29: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d %d",&lg,&q); ^ user.cpp:13:23: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%s",&c1); ^ user.cpp:17:26: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&x); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms280kbCorect10
20ms272kbCorect5
34ms280kbCorect5
44ms292kbCorect5
5584ms664kbKilled by signal 6(SIGABRT).0
6Depăşit436kbTime limit exceeded.0
7Depăşit428kbTime limit exceeded.0
8Depăşit492kbTime limit exceeded.0
9376ms600kbKilled by signal 6(SIGABRT).0
10Depăşit576kbTime limit exceeded.0
11304ms576kbKilled by signal 6(SIGABRT).0
12680ms652kbKilled by signal 6(SIGABRT).0
13Depăşit432kbTime limit exceeded.0
14424ms620kbKilled by signal 6(SIGABRT).0
15Depăşit428kbTime limit exceeded.0
16Depăşit444kbTime limit exceeded.0
17Depăşit456kbTime limit exceeded.0
18Depăşit468kbTime limit exceeded.0
19Depăşit468kbTime limit exceeded.0
Punctaj total25

Ceva nu functioneaza?