Pagini recente » Borderou de evaluare (job #3276591) | Borderou de evaluare (job #3213379) | Borderou de evaluare (job #2999365) | Borderou de evaluare (job #1973557) | Borderou de evaluare (job #2605327)
Borderou de evaluare (job #2605327)
Raport evaluator
Compilare:
main.cpp:4:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main(){
^
main.cpp: In function 'int main()':
main.cpp:5:31: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("secv7.in","r",stdin);
^
main.cpp:6:33: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("secv7.out","w",stdout);
^
main.cpp:8:16: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
main.cpp:9:37: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for(i=1;i<=n;++i){scanf("%d",&v[i]);if(v[i]>v[pmax])pmax=i;}
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 2ms | 131kb | OK! | 10 | 30 |
2 | 2ms | 131kb | OK! | 10 |
3 | 2ms | 131kb | OK! | 10 |
4 | 2ms | 131kb | OK! | 10 | 10 |
5 | 4ms | 131kb | OK! | 10 | 10 |
6 | 6ms | 131kb | OK! | 10 | 10 |
7 | 7ms | 131kb | OK! | 10 | 10 |
8 | 9ms | 262kb | OK! | 10 | 10 |
9 | 11ms | 262kb | OK! | 10 | 10 |
10 | 13ms | 262kb | OK! | 10 | 10 |
Punctaj total | 100 |