Borderou de evaluare (job #1870406)

Utilizator Tomi98Osvath Tamas Tomi98 Data 6 februarie 2017 17:07:53
Problema Baruri Status done
Runda Arhiva ICPC Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘void add(int, int)’: user.cpp:12:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = poz; i <= n; i += zeros(i)) ^ user.cpp: In function ‘int main()’: user.cpp:31:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 1; i <= n; i++){ ^ user.cpp:32:27: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long unsigned int*’ [-Wformat=] scanf("%d", &x); ^ user.cpp:40:90: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘int’ [-Wformat=] printf("%lu\n", query(x + y) - query(x) + query(x - 1) - query(x - y - 1)); ^ user.cpp:25:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("baruri.in", "r", stdin); ^ user.cpp:26:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("baruri.out", "w", stdout); ^ user.cpp:27:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lu", &T); ^ user.cpp:30:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lu", &n); ^ user.cpp:32:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &x); ^ user.cpp:35:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lu", &m); ^ user.cpp:37:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &p); ^ user.cpp:39:40: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lu%lu", &x, &y); ^ user.cpp:43:40: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lu%lu", &x, &y); ^ user.cpp:47:40: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lu%lu", &x, &y); ^ user.cpp:51:47: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lu%lu%lu", &x, &y, &z); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
1136ms724kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?