Borderou de evaluare (job #1749543)

Utilizator DenisONIcBanu Denis Andrei DenisONIc Data 28 august 2016 14:21:36
Problema Prea Simplu! Status done
Runda Junior Challenge 2016 Runda 2 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:26:19: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%ld",&t); ^ user.cpp:30:37: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%ld%ld%ld",&n,&k,&MOD); ^ user.cpp:30:37: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:30:37: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:40:47: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses] while (zeros(sav)*2==zeros(sav-zeros(sav)) && zeros(sav)!=0) ^ user.cpp:3:21: note: in definition of macro ‘zeros’ #define zeros(x) ( (x ^ (x - 1)) & x ) ^ user.cpp:40:47: warning: suggest parentheses around ‘-’ in operand of ‘&’ [-Wparentheses] while (zeros(sav)*2==zeros(sav-zeros(sav)) && zeros(sav)!=0) ^ user.cpp:3:36: note: in definition of macro ‘zeros’ #define zeros(x) ( (x ^ (x - 1)) & x ) ^ user.cpp:24:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("preasimplu.in","r",stdin); ^ user.cpp:26:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&t); ^ user.cpp:30:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld%ld%ld",&n,&k,&MOD); ^
Feedback Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
10ms424kbIncorect00
20ms420kbIncorect0
312ms420kbIncorect00
412ms416kbIncorect0
58ms416kbIncorect0
6Depăşit416kbTime limit exceeded.00
7Depăşit412kbTime limit exceeded.0
8Depăşit416kbTime limit exceeded.0
90ms420kbIncorect0
100ms420kbIncorect0
11Depăşit416kbTime limit exceeded.00
12Depăşit396kbTime limit exceeded.0
13Depăşit416kbTime limit exceeded.0
14Depăşit416kbTime limit exceeded.0
15Depăşit420kbTime limit exceeded.0
16Depăşit412kbTime limit exceeded.00
17Depăşit416kbTime limit exceeded.0
18Depăşit412kbTime limit exceeded.0
19Depăşit412kbTime limit exceeded.0
20Depăşit412kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?