Borderou de evaluare (job #1238812)

Utilizator YoChinezuWeng Mihai Alexandru YoChinezu Data 7 octombrie 2014 19:34:26
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:80:21: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%I64d",&d); ^ user.cpp:73: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:74: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:80:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%I64d",&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:83:5: warning: ‘r’ is used uninitialized in this function [-Wuninitialized] if(r){ ^ /tmp/ccNY4VR1.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
14ms4196kbIncorect0
24ms4192kbIncorect0
34ms4196kbOK10
44ms4208kbOK10
58ms4228kbIncorect0
620ms4296kbIncorect0
748ms4452kbIncorect0
8112ms4844kbIncorect0
9152ms5076kbIncorect0
10164ms5164kbIncorect0
Punctaj total20

Ceva nu functioneaza?