Borderou de evaluare (job #1744293)

Utilizator ionanghelinaIonut Anghelina ionanghelina Data 19 august 2016 16:11:00
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
10ms280kbCorect2
20ms272kbCorect2
30ms292kbCorect2
40ms316kbCorect2
50ms352kbCorect2
60ms364kbCorect2
70ms404kbCorect2
80ms412kbCorect2
90ms420kbCorect2
100ms424kbCorect2
110ms272kbCorect8
120ms272kbCorect8
130ms336kbCorect8
140ms448kbCorect8
154ms720kbCorect8
1652ms2320kbCorect8
17136ms3504kbCorect8
18252ms5076kbCorect8
19324ms6060kbCorect8
20Depăşit8052kbTime limit exceeded.0
Punctaj total92

Ceva nu functioneaza?