Borderou de evaluare (job #1479228)

Utilizator cojocarugabiReality cojocarugabi Data 30 august 2015 20:03:59
Problema Barbar Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 50

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:116:9: warning: unused variable ‘h’ [-Wunused-variable] int h = n * m; ^ user.cpp:79:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("barbar.in","r",stdin); ^ user.cpp:81:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d\n%d\n",&n,&m); ^ user.cpp:83:23: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(c[i] + 1); ^ user.cpp:133:27: warning: ‘finish’ may be used uninitialized in this function [-Wmaybe-uninitialized] return fo << dp[finish] << '\n',0; ^ In file included from /usr/include/stdio.h:934:0, from /usr/include/c++/4.8/cstdio:42, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:46, from user.cpp:1: In function ‘char* gets(char*)’, inlined from ‘int main()’ at user.cpp:83:23: /usr/include/i386-linux-gnu/bits/stdio2.h:230:28: warning: call to ‘__gets_warn’ declared with attribute warning: please use fgets or getline instead, gets can't specify buffer size [enabled by default] return __gets_warn (__str); ^ /tmp/ccrF6uqt.o: In function `main': user.cpp:(.text.startup+0x9c): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
116ms12800kbOk!10
216ms12772kbOk!10
320ms12808kbOk!10
420ms12868kbOk!10
560ms13692kbOk!10
652ms13692kbWrong answer!0
7Depăşit18120kbTime limit exceeded.0
8Depăşit25984kbTime limit exceeded.0
9Depăşit55232kbTime limit exceeded.0
1024ms13588kbWrong answer!0
Punctaj total50

Ceva nu functioneaza?