Borderou de evaluare (job #1239213)

Utilizator YoChinezuWeng Mihai Alexandru YoChinezu Data 8 octombrie 2014 16:20:00
Problema Next Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.cpp: In member function ‘long long int& huge::operator%(long long int)’: user.cpp:38:19: warning: reference to local variable ‘r’ returned [-Wreturn-local-addr] long long r=0; ^ user.cpp: In function ‘int main()’: user.cpp:74:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("next.in","r",stdin); ^ user.cpp:75:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("next.out","w",stdout); ^ user.cpp:81:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld",&d); ^ user.cpp: In member function ‘void huge::read()’: user.cpp:25:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ user.cpp: In function ‘int main()’: user.cpp:84:5: warning: ‘r’ is used uninitialized in this function [-Wuninitialized] if(r){ ^ /tmp/ccaQy1lF.o: In function `main': user.cpp:(.text.startup+0x74): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms4188kbIncorect0
24ms4188kbIncorect0
34ms4184kbOK10
44ms4196kbOK10
58ms4216kbIncorect0
620ms4288kbIncorect0
748ms4444kbIncorect0
8108ms4840kbIncorect0
9148ms5064kbIncorect0
10168ms5156kbIncorect0
Punctaj total20

Ceva nu functioneaza?