Borderou de evaluare (job #1596685)

Utilizator atatomirTatomir Alex atatomir Data 11 februarie 2016 11:56:11
Problema Sir8 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void bucket_to_char()’: user.cpp:54:34: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 0; i < act.size(); i++) ^ user.cpp: In function ‘void add_to(int, char)’: user.cpp:80:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < bucket.size(); i++) { ^ user.cpp:81:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (bucket[i].size() < pos) { ^ user.cpp: In function ‘int get_bucket(int)’: user.cpp:100:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < bucket.size(); i++) ^ user.cpp: In function ‘int get_big_hash(int, int)’: user.cpp:112:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i = 1; i < bucket.size(); i++) ^ user.cpp:108:12: warning: unused variable ‘pos’ [-Wunused-variable] int i, pos, how; ^ user.cpp:108:17: warning: unused variable ‘how’ [-Wunused-variable] int i, pos, how; ^ user.cpp: In function ‘int get_bucket(int)’: user.cpp:105:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:139:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sir8.in","r",stdin); ^ user.cpp:140:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sir8.out","w",stdout); ^ user.cpp:142:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s\n%d\n", s + 1, &cuv); ^ user.cpp:146:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s\n", aux + 1); ^ user.cpp:156:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &k); ^ user.cpp:168:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &op); ^ user.cpp:178:51: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %c %d %d", &poz, &c, &a, &b);
Test Timp executie Memorie folosita Mesaj Punctaj/test
160ms600kbOK10
228ms596kbOK10
31020ms1112kbOK10
4780ms1060kbOK10
5736ms1044kbOK10
6728ms1048kbOK10
7736ms1056kbOK10
8808ms1092kbOK10
9732ms1048kbOK10
10688ms1048kbOK10
Punctaj total100

Ceva nu functioneaza?