Borderou de evaluare (job #1331250)

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

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/cczVplhg.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
20ms276kbOK10
30ms680kbOK10
40ms644kbOK10
50ms548kbOK10
60ms312kbOK10
70ms528kbOK10
80ms304kbOK10
90ms332kbOK10
100ms736kbOK10
Punctaj total100

Ceva nu functioneaza?