Borderou de evaluare (job #1511911)

Utilizator andrei.arnautuAndi Arnautu andrei.arnautu Data 27 octombrie 2015 12:31:57
Problema Desen Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:69:20: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] scanf("%d ", &n); ^ user.cpp:73:31: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘short int*’ [-Wformat=] scanf("%d %d ", &a, &b); ^ user.cpp:73:31: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘short int*’ [-Wformat=] user.cpp:85:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j = 0; j < candidates.size() && needed; ++j) ^ user.cpp:96:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j = 0; j < chosen.size(); ++j) ^ user.cpp:69:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d ", &n); ^ user.cpp:73:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d ", &a, &b); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms308kbOK!10
20ms320kbOK!10
30ms324kbOK!10
436ms336kbOK!10
5168ms364kbOK!10
6172ms356kbOK!10
7168ms364kbOK!10
8172ms356kbOK!10
9172ms360kbOK!10
10172ms360kbOK!10
Punctaj total100

Ceva nu functioneaza?