Pagini recente » Borderou de evaluare (job #2257498) | Borderou de evaluare (job #2562645) | Borderou de evaluare (job #1755543) | Borderou de evaluare (job #2831523) | Borderou de evaluare (job #2316426)
Borderou de evaluare (job #2316426)
Raport evaluator
Compilare:
main.cpp: In function 'int main()':
main.cpp:18:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(i=l+1;i<=n;i++)
^~~
main.cpp:20:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
if(u>=2*l)u=2*l-1;
^~
main.cpp:10:31: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("secv3.in","r",stdin);
^
main.cpp:11:33: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("secv3.out","w",stdout);
^
main.cpp:12:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d",&n,&l,&u);
^
main.cpp:13:40: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(i=1;i<=n;i++)scanf("%lf",&c[i]);
^
main.cpp:14:41: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(i=1;i<=n;i++){scanf("%lf",&t[i]);d[i]=c[i]/t[i];c[i]+=c[i-1];t[i]+=t[i-1];}
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 2ms | 131kb | OK! | 10 |
2 | 3ms | 131kb | OK! | 10 |
3 | 3ms | 131kb | OK! | 10 |
4 | 9ms | 262kb | OK! | 10 |
5 | 28ms | 262kb | OK! | 10 |
6 | 93ms | 393kb | OK! | 10 |
7 | 190ms | 524kb | OK! | 10 |
8 | 178ms | 786kb | OK! | 10 |
9 | 26ms | 786kb | OK! | 10 |
10 | 30ms | 917kb | OK! | 10 |
Punctaj total | 100 |