Borderou de evaluare (job #2105106)

Utilizator NashikAndrei Feodorov Nashik Data 12 ianuarie 2018 17:42:12
Problema Arc Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 85

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:25:21: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d%d",&p,&n); ^ user.cpp:25:21: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:28:20: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d", &nr); ^ user.cpp:48:20: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d",tot); ^ user.cpp:80:25: 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",v[i]); ^ user.cpp:22:30: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("arc.in","r",stdin); ^ user.cpp:23:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("arc.out","w",stdout); ^ user.cpp:25:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&p,&n); ^ user.cpp:28:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &nr); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms408kbOK5
20ms400kbOK5
34ms408kbOK5
40ms284kbOK5
50ms276kbOK5
60ms276kbOK5
70ms280kbOK5
80ms276kbOK5
90ms280kbOK5
100ms300kbOK5
1112ms404kbOK5
1228ms368kbKilled by signal 11(SIGSEGV).0
1312ms384kbKilled by signal 11(SIGSEGV).0
1412ms400kbOK5
1564ms404kbOK5
160ms296kbOK5
1712ms404kbOK5
184ms464kbKilled by signal 11(SIGSEGV).0
190ms272kbOK5
200ms288kbOK5
Punctaj total85

Ceva nu functioneaza?