Borderou de evaluare (job #1880533)

Utilizator marius.onescuMarius marius.onescu Data 15 februarie 2017 20:13:29
Problema Galagie Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:8:27: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%ld%ld", &n, &a[1]); ^ user.cpp:8:27: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:10:21: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%ld", &a[i]); ^ user.cpp:17:21: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%ld", dp[n]); ^ user.cpp:6:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("galagie.in", "r", stdin); ^ user.cpp:7:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("galagie.out", "w", stdout); ^ user.cpp:8:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld%ld", &n, &a[1]); ^ user.cpp:10:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld", &a[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms444kbOK10
20ms460kbIncorect0
34ms460kbIncorect0
4Depăşit484kbTime limit exceeded.0
5Depăşit480kbTime limit exceeded.0
6Depăşit484kbTime limit exceeded.0
7Depăşit488kbTime limit exceeded.0
8Depăşit492kbTime limit exceeded.0
9Depăşit480kbTime limit exceeded.0
10Depăşit492kbTime limit exceeded.0
Punctaj total10

Ceva nu functioneaza?