Borderou de evaluare (job #1965329)

Utilizator DanielRusuDaniel Rusu DanielRusu Data 14 aprilie 2017 12:05:38
Problema Invsc Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 70

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:12:21: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d\n", &N); ^ user.cpp:15:28: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d\n", &V[i]); ^ user.cpp:25:53: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d\n", (Ad[V[i]] + Ad[V[i] - 1]) / 2); ^ user.cpp:9:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("invsc.in","r",stdin); ^ user.cpp:10:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("invsc.out","w",stdout); ^ user.cpp:12:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &N); ^ user.cpp:15:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n", &V[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms256kbTine-o tot asa!10
20ms260kbTine-o tot asa!10
30ms256kbTine-o tot asa!10
40ms264kbTine-o tot asa!10
50ms276kbTine-o tot asa!10
64ms412kbRaspuns gresit0
712ms728kbTine-o tot asa!10
840ms1664kbRaspuns gresit0
960ms2448kbRaspuns gresit0
10104ms3376kbTine-o tot asa!10
Punctaj total70

Ceva nu functioneaza?