Borderou de evaluare (job #1744298)

Utilizator ionanghelinaIonut Anghelina ionanghelina Data 19 august 2016 16:15:08
Problema Cub2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 92

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:9:18: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d",&p); ^ user.cpp:10:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d%d",&n,&v); ^ user.cpp:10:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] user.cpp:121:51: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d %d %d\n",linie,coloana,inaltime); ^ user.cpp:121:51: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] user.cpp:121:51: warning: format ‘%d’ expects argument of type ‘int’, but argument 4 has type ‘long int’ [-Wformat=] user.cpp:156:19: warning: suggest parentheses around ‘+’ inside ‘<<’ [-Wparentheses] y=n<<1+(n-2)<<1; ^ user.cpp:7:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cub2.in","r",stdin); ^ user.cpp:8:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cub2.out","w",stdout); ^ user.cpp:9:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&p); ^ user.cpp:10:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&n,&v); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms276kbCorect2
20ms272kbCorect2
30ms296kbCorect2
40ms320kbCorect2
50ms348kbCorect2
60ms356kbCorect2
70ms400kbCorect2
80ms412kbCorect2
90ms424kbCorect2
100ms424kbCorect2
110ms272kbCorect8
120ms280kbCorect8
130ms332kbCorect8
140ms444kbCorect8
154ms716kbCorect8
1648ms2316kbCorect8
17136ms3504kbCorect8
18252ms5072kbCorect8
19324ms6068kbCorect8
20Depăşit8052kbTime limit exceeded.0
Punctaj total92

Ceva nu functioneaza?