Borderou de evaluare (job #1965328)

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

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
10ms256kbRaspuns gresit0
20ms264kbRaspuns gresit0
30ms264kbRaspuns gresit0
40ms260kbRaspuns gresit0
50ms276kbRaspuns gresit0
64ms420kbRaspuns gresit0
716ms732kbRaspuns gresit0
844ms1668kbRaspuns gresit0
964ms2448kbRaspuns gresit0
10112ms3376kbRaspuns gresit0
Punctaj total0

Ceva nu functioneaza?