Pagini recente » Borderou de evaluare (job #3229523) | Borderou de evaluare (job #1610035) | Borderou de evaluare (job #2999356) | Borderou de evaluare (job #1921930) | Borderou de evaluare (job #1427225)
Borderou de evaluare (job #1427225)
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 |
1 | 128ms | 380kb | Incorect | 0 |
Punctaj total | 0 |