Borderou de evaluare (job #1778175)

Utilizator Sanduleac_VladSanduleac Vllad Alexandru Sanduleac_Vlad Data 13 octombrie 2016 16:26:38
Problema Next Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 80

Raport evaluator

Compilare: user.cpp: In member function ‘HugeN HugeN::operator*(int)’: user.cpp:134:12: warning: unused variable ‘j’ [-Wunused-variable] int i, j; ^ user.cpp: In member function ‘HugeN HugeN::operator*=(int)’: user.cpp:150:12: warning: unused variable ‘j’ [-Wunused-variable] int i, j; ^ user.cpp: In function ‘int main()’: user.cpp:198:9: warning: unused variable ‘i’ [-Wunused-variable] int i, j; ^ user.cpp:198:12: warning: unused variable ‘j’ [-Wunused-variable] int i, j; ^ user.cpp:199:35: 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:200:37: 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:202:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ user.cpp:205:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld\n", &D); ^ user.cpp: In member function ‘int HugeN::cmp(const HugeN&)’: user.cpp:76:11: warning: ‘i’ may be used uninitialized in this function [-Wmaybe-uninitialized] if(x[i] > other.x[i]) ^ user.cpp: In member function ‘bool HugeN::operator>(const HugeN&)’: user.cpp:76:11: warning: ‘i’ may be used uninitialized in this function [-Wmaybe-uninitialized] user.cpp:71:9: note: ‘i’ was declared here int i; ^ /tmp/ccbhAPwT.o: In function `main': user.cpp:(.text.startup+0x6e): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
18ms4192kbOK10
28ms4192kbOK10
38ms4196kbIncorect0
412ms4228kbIncorect0
516ms4320kbOK10
636ms4584kbOK10
792ms5216kbOK10
8204ms6796kbOK10
9280ms7712kbOK10
10304ms8096kbOK10
Punctaj total80

Ceva nu functioneaza?