Borderou de evaluare (job #1427225)

Utilizator din99danyMatei Daniel din99dany Data 1 mai 2015 18:57:43
Problema Produs4 Status done
Runda Arhiva ICPC Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int sort_vlr(int*, int, int)’: user.cpp:29:1: warning: no return statement in function returning non-void [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:44:100: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘int’ [-Wformat=] if( v[1] * v[2] * v[n] > v[n] * v[n-1] * v[n-2] ) fprintf(out,"%lld",v[1] * v[2] * v[n]); ^ user.cpp:45:59: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘int’ [-Wformat=] else fprintf(out,"%lld",v[n] * v[n-1] * v[n-2]); ^ user.cpp:47:51: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘int’ [-Wformat=] else fprintf(out,"%lld",v[n]*v[n-1]*v[n-2]); ^ user.cpp:34:21: warning: unused variable ‘p’ [-Wunused-variable] long long i, j, p, ok, k; ^ user.cpp:34:24: warning: unused variable ‘ok’ [-Wunused-variable] long long i, j, p, ok, k; ^ user.cpp:37:25: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in,"%lld",&k); ^ user.cpp:39:27: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(in,"%d",&n); ^ user.cpp:40:56: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for( i = 1; i <= n; ++i ) fscanf(in,"%d",&v[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
1128ms380kbIncorect0
Punctaj total0

Ceva nu functioneaza?