Borderou de evaluare (job #1720758)

Utilizator SburlyAndrei Florin Sburly Data 23 iunie 2016 14:15:53
Problema Trapez Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:35:39: warning: format ‘%lu’ expects argument of type ‘long unsigned int*’, but argument 2 has type ‘__gnu_cxx::__alloc_traits<std::allocator<double> >::value_type* {aka double*}’ [-Wformat=] scanf("%lu %lu\n", &x[i],&y[i]); ^ user.cpp:35:39: warning: format ‘%lu’ expects argument of type ‘long unsigned int*’, but argument 3 has type ‘__gnu_cxx::__alloc_traits<std::allocator<double> >::value_type* {aka double*}’ [-Wformat=] user.cpp:28:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("trapez.in","r",stdin); ^ user.cpp:29:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("trapez.out","w",stdout); ^ user.cpp:31:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%u\n",&n); ^ user.cpp:35:40: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lu %lu\n", &x[i],&y[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
18ms7920kbOk!10
2288ms7920kbOk!10
312ms7920kbOk!10
4280ms7920kbOk!10
512ms7920kbOk!10
612ms7920kbOk!10
7280ms7920kbOk!10
876ms7920kbOk!10
9280ms7920kbOk!10
10272ms7920kbOk!10
Punctaj total100

Ceva nu functioneaza?