Borderou de evaluare (job #1598747)

Utilizator margikiMargeloiu Andrei margiki Data 13 februarie 2016 11:59:13
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: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:55:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (j=0; j<v[i].size(); ++j) { ^ user.cpp:62:34: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] scanf ("%d%d", &X, &times); ^ 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(int, long long int)’: user.cpp:35:54: warning: ‘aux1’ may be used uninitialized in this function [-Wmaybe-uninitialized] newTimes=S[T[X]][aux1] - (ajung)*(aux1+1) - (aux1-aux2); ^ user.cpp:35:54: warning: ‘aux2’ may be used uninitialized in this function [-Wmaybe-uninitialized]
Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms2776kbOK10
24ms2788kbIncorect0
324ms3096kbIncorect0
448ms3284kbIncorect0
5156ms4452kbIncorect0
6196ms4948kbIncorect0
7208ms5040kbIncorect0
8236ms5248kbIncorect0
9264ms5640kbIncorect0
10272ms5652kbIncorect0
Punctaj total10

Ceva nu functioneaza?