Borderou de evaluare (job #2405235)

Utilizator annecojocaruAnne-Marie-Zoe Cojocaru annecojocaru Data 14 aprilie 2019 10:51:22
Problema Abx Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 80

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:55:33: warning: format '%d' expects argument of type 'int', but argument 2 has type '__gnu_cxx::__alloc_traits<std::allocator<long long int> >::value_type {aka long long int}' [-Wformat=] printf("%d\n", nr[y]); ^ main.cpp:57:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] else if(y == nr.size()) ~~^~~~~~~~~~~~ main.cpp:59:37: warning: format '%d' expects argument of type 'int', but argument 2 has type '__gnu_cxx::__alloc_traits<std::allocator<long long int> >::value_type {aka long long int}' [-Wformat=] printf("%d\n", nr[y - 1]); ^ main.cpp:65:41: warning: format '%d' expects argument of type 'int', but argument 2 has type '__gnu_cxx::__alloc_traits<std::allocator<long long int> >::value_type {aka long long int}' [-Wformat=] printf("%d\n", nr[y - 1]); ^ main.cpp:69:37: warning: format '%d' expects argument of type 'int', but argument 2 has type '__gnu_cxx::__alloc_traits<std::allocator<long long int> >::value_type {aka long long int}' [-Wformat=] printf("%d\n", nr[y]); ^ main.cpp:34:34: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("abx.in", "r", stdin); ^ main.cpp:35:36: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("abx.out", "w", stdout); ^ main.cpp:36:29: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d %lld", &n, &m); ^ main.cpp:51:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &x); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
12ms131kbOK5
22ms131kbOK5
32ms131kbOK5
42ms131kbOK5
52ms131kbOK5
63ms131kbOK5
73ms131kbOK5
86ms131kbOK5
96ms131kbOK5
106ms131kbOK5
116ms131kbOK5
126ms131kbOK5
137ms131kbOK5
1415ms782kbOK5
1515ms782kbOK5
1615ms782kbOK5
171021ms176381kbTime limit exceeded0
181005ms196173kbTime limit exceeded0
191000ms208232kbTime limit exceeded0
201012ms220684kbTime limit exceeded0
Punctaj total80

Ceva nu functioneaza?