Borderou de evaluare (job #1331249)

Utilizator andrei.arnautuAndi Arnautu andrei.arnautu Data 31 ianuarie 2015 14:30:18
Problema Vila Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 80

Raport evaluator

Compilare: user.cpp: In function ‘void Read()’: user.cpp:14:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] scanf("%d %d ", &m, &n); ^ user.cpp:14:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] user.cpp: In function ‘void Compute_Area(int, int)’: user.cpp:43:12: warning: unused variable ‘j’ [-Wunused-variable] int i, j, p = 0; ^ user.cpp:43:15: warning: unused variable ‘p’ [-Wunused-variable] int i, j, p = 0; ^ user.cpp: In function ‘void Read()’: user.cpp:14:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d ", &m, &n); ^ user.cpp:17:16: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(s); ^ /tmp/cc5wx1ez.o: In function `Read()': user.cpp:(.text+0x5c): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms272kbOK10
20ms276kbIncorect0
30ms680kbOK10
40ms640kbOK10
50ms552kbOK10
60ms316kbOK10
70ms528kbIncorect0
80ms304kbOK10
90ms324kbOK10
100ms732kbOK10
Punctaj total80

Ceva nu functioneaza?