Borderou de evaluare (job #1598761)

Utilizator margikiMargeloiu Andrei margiki Data 13 februarie 2016 12:15:26
Problema Arb3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:43:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf ("%d%d", &n, &Q); ^ user.cpp:43:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:45:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf ("%d", &T[i]); ^ user.cpp:50:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf ("%d", &val[i]); ^ user.cpp:62:34: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf ("%d%d", &X, &times); ^ user.cpp:62:34: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:63:41: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf ("%d\n", solve (X, times)); ^ user.cpp:41:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("arb3.in", "r", stdin); ^ user.cpp:42:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("arb3.out", "w", stdout); ^ user.cpp:43:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d%d", &n, &Q); ^ user.cpp:45:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &T[i]); ^ user.cpp:50:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d", &val[i]); ^ user.cpp:62:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf ("%d%d", &X, &times); ^ user.cpp: In function ‘long long int solve(long long int, long long int)’: user.cpp:35:54: warning: ‘aux2’ may be used uninitialized in this function [-Wmaybe-uninitialized] newTimes=S[T[X]][aux1] - (ajung)*(aux1+1) - (aux1-aux2); ^ user.cpp:35:54: warning: ‘aux1’ may be used uninitialized in this function [-Wmaybe-uninitialized]
Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms2796kbOK10
24ms2808kbIncorect0
328ms3188kbIncorect0
460ms3444kbIncorect0
5192ms4992kbIncorect0
6240ms5552kbIncorect0
7264ms5784kbIncorect0
8296ms5968kbIncorect0
9324ms6468kbIncorect0
10328ms6484kbIncorect0
Punctaj total10

Ceva nu functioneaza?