Borderou de evaluare (job #1351722)

Utilizator UAIC_ChiliGrozaVartolomeiC.G.V. UAIC_ChiliGrozaVartolomei Data 21 februarie 2015 11:27:11
Problema Por Costel si Azerah Status done
Runda ONIS 2015, Runda 1 Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:40:44: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%d\n", solve(2, nr_pare)%MOD - 1); ^ user.cpp:43:53: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%ld\n", solve(2, nr_impare - 1)%MOD - 1); ^ user.cpp:49:26: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=] printf("%ld\n", s%MOD); ^ user.cpp:26:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("azerah.in", "r", stdin); ^ user.cpp:27:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("azerah.out", "w", stdout); ^ user.cpp:28:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &T); ^ user.cpp:30:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); nr_impare = 0; nr_pare = 0; ^ user.cpp:32:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &nr); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
1240ms264kbOK100
Punctaj total100

Ceva nu functioneaza?