Borderou de evaluare (job #2297228)

Utilizator CerganRaduCergan Radu Mihai CerganRadu Data 5 decembrie 2018 16:33:00
Problema Bursa Status done
Runda Arhiva Monthly Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: In file included from main.cpp:2:0: main.cpp: In function 'int main()': main.cpp:14:16: warning: comparison of constant '100000' with boolean expression is always true [-Wbool-compare] assert(1<=n<=100000); ~~~~^~~ main.cpp:14:13: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] assert(1<=n<=100000); ~^~~ main.cpp:15:16: warning: comparison of constant '10000000000l' with boolean expression is always true [-Wbool-compare] assert(1<=s<=10000000000); ~~~~^~~ main.cpp:15:13: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] assert(1<=s<=10000000000); ~^~~ main.cpp:17:19: warning: comparison of constant '500000' with boolean expression is always true [-Wbool-compare] assert(1<=p[1]<=500000); ~~~~~~~^~~ main.cpp:17:13: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] assert(1<=p[1]<=500000); ~^~~~~~ main.cpp:21:20: warning: comparison of constant '500000' with boolean expression is always true [-Wbool-compare] assert(1<=p[i]<=500000); ~~~~~~~^~~ main.cpp:21:14: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses] assert(1<=p[i]<=500000); ~^~~~~~ main.cpp:24:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] } if(k==n){ ~^~~ main.cpp:13:30: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d %lld",&n,&s); ^ main.cpp:16:27: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%lld",&p[1]); ^ main.cpp:20:28: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%lld",&p[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
12ms131kbOK100
22ms131kbOK10
32ms131kbOK10
42ms131kbOK10
52ms131kbOK10
65ms131kbOK10
75ms262kbOK10
835ms917kbIncorect0
928ms917kbOK10
1027ms917kbOK10
Punctaj total0

Ceva nu functioneaza?