Borderou de evaluare (job #1749533)

Utilizator DenisONIcBanu Denis Andrei DenisONIc Data 28 august 2016 14:18: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:38: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:38: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
10ms408kbIncorect00
20ms408kbIncorect0
312ms408kbIncorect00
412ms404kbIncorect0
58ms408kbIncorect0
6Depăşit408kbTime limit exceeded.00
7Depăşit404kbTime limit exceeded.0
8Depăşit404kbTime limit exceeded.0
90ms412kbIncorect0
100ms408kbIncorect0
11Depăşit404kbTime limit exceeded.00
12Depăşit388kbTime limit exceeded.0
13Depăşit400kbTime limit exceeded.0
14Depăşit408kbTime limit exceeded.0
15Depăşit404kbTime limit exceeded.0
16Depăşit400kbTime limit exceeded.00
17Depăşit400kbTime limit exceeded.0
18Depăşit404kbTime limit exceeded.0
19Depăşit404kbTime limit exceeded.0
20Depăşit400kbTime limit exceeded.0
Punctaj total0

Ceva nu functioneaza?