Pagini recente » Borderou de evaluare (job #1296905) | Borderou de evaluare (job #1963423) | Borderou de evaluare (job #963468) | Borderou de evaluare (job #3246503) | Borderou de evaluare (job #2297228)
Borderou de evaluare (job #2297228)
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 |
1 | 2ms | 131kb | OK | 10 | 0 |
2 | 2ms | 131kb | OK | 10 |
3 | 2ms | 131kb | OK | 10 |
4 | 2ms | 131kb | OK | 10 |
5 | 2ms | 131kb | OK | 10 |
6 | 5ms | 131kb | OK | 10 |
7 | 5ms | 262kb | OK | 10 |
8 | 35ms | 917kb | Incorect | 0 |
9 | 28ms | 917kb | OK | 10 |
10 | 27ms | 917kb | OK | 10 |
Punctaj total | 0 |