Borderou de evaluare (job #2170589)

Utilizator CronosClausCarare Claudiu CronosClaus Data 15 martie 2018 08:46:00
Problema Range minimum query Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:19:28: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%ld %ld", &n, &m); ^ user.cpp:19:28: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:21:29: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%ld", &v[ i ]); ^ user.cpp:34:32: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%ld %ld", &x, &y); ^ user.cpp:34:32: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:38:63: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%ld\n", min(rmq[ l ][ x ], rmq[ l ][ x + sh ])); ^ user.cpp:17:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("rmq.in", "r", stdin); ^ user.cpp:18:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("rmq.out", "w", stdout); ^ user.cpp:19:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld %ld", &n, &m); ^ user.cpp:21:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld", &v[ i ]); ^ user.cpp:34:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld %ld", &x, &y); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
14ms7052kbOK1010
24ms8964kbOK1010
312ms13324kbOK1010
4100ms16172kbOK1010
5120ms16224kbOK1020
6692ms16088kbOK10
7708ms18576kbOK1010
8856ms18888kbOK1010
9956ms18848kbOK1010
101052ms18848kbOK1010
Punctaj total100

Ceva nu functioneaza?