Borderou de evaluare (job #1407554)

Utilizator UTI_Gilca_Neculai_NutuUTI Gilca Neculai Nutu UTI_Gilca_Neculai_Nutu Data 29 martie 2015 19:03:19
Problema Mafia Status done
Runda ONIS 2015, Runda 2 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:24:23: warning: format ‘%lf’ expects argument of type ‘double’, but argument 2 has type ‘int’ [-Wformat=] printf("%.9lf\n", 1); ^ user.cpp:29:23: warning: format ‘%lf’ expects argument of type ‘double’, but argument 2 has type ‘int’ [-Wformat=] printf("%.9lf\n", 0); ^ user.cpp:11:9: warning: unused variable ‘prob’ [-Wunused-variable] double prob, ans; ^ user.cpp:11:15: warning: unused variable ‘ans’ [-Wunused-variable] double prob, ans; ^ user.cpp:7:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("mafia.in", "r", stdin); ^ user.cpp:8:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("mafia.out", "w", stdout); ^ user.cpp:14:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &t); ^ user.cpp:17:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d", &n, &m, &x); ^ user.cpp:19:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", v+i); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
1256ms660kbIncorect0
Punctaj total0

Ceva nu functioneaza?