Borderou de evaluare (job #2239911)

Utilizator DjokValeriu Motroi Djok Data 11 septembrie 2018 23:41:47
Problema Bacterii2 Status done
Runda Arhiva ICPC Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void conv(std::vector<int>&, std::vector<int>&, std::vector<int>&)’: user.cpp:54:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < c.size(); ++i) c[i] = na[i].real() + 0.5; ~~^~~~~~~~~~ user.cpp: In function ‘int main()’: user.cpp:74:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i = 1; i < c.size(); ++i) ~~^~~~~~~~~~ user.cpp:58:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("bacterii2.in", "r", stdin); ^ user.cpp:59:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("bacterii2.out", "w", stdout); ^ user.cpp:61:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(scanf("%d", &t); t; --t, puts("")) { ^ user.cpp:64:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:65:51: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(i = 0; i < n; ++i) scanf("%d", &x), ++a[x]; ^ user.cpp:66:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &m); ^ user.cpp:67:51: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(i = 0; i < m; ++i) scanf("%d", &x), ++b[x]; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
1760ms4484kbOK100
Punctaj total100

Ceva nu functioneaza?