Borderou de evaluare (job #1368351)

Utilizator atatomirTatomir Alex atatomir Data 2 martie 2015 16:27:47
Problema Sir4 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:125:50: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%ld %ld %ld %ld %ld\n",&x0,&a,&b,&m,&q); ^ user.cpp:125:50: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:125:50: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:125:50: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 5 has type ‘long long int*’ [-Wformat=] user.cpp:125:50: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 6 has type ‘long long int*’ [-Wformat=] user.cpp:152:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=0;i<qq.size();i++){ ^ user.cpp:122:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sir4.in","r",stdin); ^ user.cpp:123:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sir4.out","w",stdout); ^ user.cpp:125:51: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld %ld %ld %ld %ld\n",&x0,&a,&b,&m,&q); ^ user.cpp: In member function ‘void bNumber::getFile()’: user.cpp:32:22: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s+1); ^ /tmp/cchI2uC7.o: In function `main': user.cpp:(.text.startup+0x14b): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms556kbOK10
20ms548kbOK10
30ms552kbOK10
468ms548kbOK10
572ms548kbOK10
640ms560kbOK10
748ms568kbOK10
8352ms564kbOK10
9516ms568kbOK10
10600ms568kbOK10
Punctaj total100

Ceva nu functioneaza?