Borderou de evaluare (job #1247121)

Utilizator dragos_vecerdeaVecerdea Dragos dragos_vecerdea Data 22 octombrie 2014 09:41:20
Problema Cautare binara Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:8:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(fin ,"%d" ,&n); ^ user.cpp:11:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(fin ,"%d" ,&v[i]); ^ user.cpp:18:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf (fin , "%d" ,&m); ^ user.cpp:21:30: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf (fin ,"%d" ,&q); ^ user.cpp:24:35: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf (fin ,"%d" , &x); ^ user.cpp:36:55: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] if(v[i+1]!=x)fprintf(fout ,"%d" ,(i+1)); ^ user.cpp:42:34: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(fin ,"%d" , &x); ^ user.cpp:51:34: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] fprintf(fout ,"%d" ,i); ^ user.cpp:63:36: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] fprintf(fout ,"%d" ,i+1); ^ user.cpp:8:26: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin ,"%d" ,&n); ^ user.cpp:11:33: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin ,"%d" ,&v[i]); ^ user.cpp:18:28: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf (fin , "%d" ,&m); ^ user.cpp:21:31: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf (fin ,"%d" ,&q); ^ user.cpp:24:36: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf (fin ,"%d" , &x); ^ user.cpp:42:35: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin ,"%d" , &x); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms260kbIncorect00
20ms256kbIncorect00
30ms264kbIncorect00
44ms268kbIncorect00
528ms340kbIncorect00
684ms652kbIncorect0
732msDepăşitMemory limit exceeded.00
828msDepăşitMemory limit exceeded.0
932msDepăşitMemory limit exceeded.0
1032msDepăşitMemory limit exceeded.0
Punctaj total0

Ceva nu functioneaza?