Borderou de evaluare (job #1421834)

Utilizator cojocarugabiReality cojocarugabi Data 19 aprilie 2015 12:53:03
Problema Prietenie3 Status done
Runda ONIS 2015, Runda 3 Compilator cpp
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:17:50: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] for (int i = 1;i <= n;++i) scanf("%d",a+i),mn = min(mn,a[i]); ^ user.cpp:18:50: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] for (int i = 1;i <= m;++i) scanf("%d",b+i),mx = max(mx,b[i]); ^ user.cpp:8:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("prietenie3.in","r",stdin); ^ user.cpp:11:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&t); ^ user.cpp:16:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&n,&m); ^ user.cpp:17:69: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for (int i = 1;i <= n;++i) scanf("%d",a+i),mn = min(mn,a[i]); ^ user.cpp:18:69: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for (int i = 1;i <= m;++i) scanf("%d",b+i),mx = max(mx,b[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
1360ms3572kbOK100
Punctaj total100

Ceva nu functioneaza?