Pagini recente » Borderou de evaluare (job #3160980) | Borderou de evaluare (job #2911750) | Borderou de evaluare (job #2783491) | Borderou de evaluare (job #788673) | Borderou de evaluare (job #1870406)
Borderou de evaluare (job #1870406)
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 |
1 | 136ms | 724kb | Killed by signal 11(SIGSEGV). | 0 |
Punctaj total | 0 |