Borderou de evaluare (job #1778182)

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

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/ccxWdjF7.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
18ms4196kbOK10
28ms4200kbOK10
38ms4204kbOK10
48ms4236kbOK10
516ms4332kbOK10
636ms4592kbOK10
784ms5224kbOK10
8208ms6808kbOK10
9284ms7724kbOK10
10308ms8108kbOK10
Punctaj total100

Ceva nu functioneaza?