Borderou de evaluare (job #2226309)
Utilizator | Data | 30 iulie 2018 01:54:20 | |
---|---|---|---|
Problema | Range minimum query | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:76:20: error: ‘k’ was not declared in this scope
floor_log2(k, z);
^
user.cpp:3:53: note: in definition of macro ‘floor_log2’
#define floor_log2(msb, n) asm("bsrl %1, %0" : "=r"(msb) : "r"(n))
^~~
user.cpp:80:27: error: ‘Y’ was not declared in this scope
put_number(min(X, Y));
^
user.cpp:4:21: note: in definition of macro ‘min’
#define min(x, y) ((y) ^ (((x) ^ (y)) & -((x) < (y))))
^
user.cpp: At global scope:
user.cpp:30:37: warning: always_inline function might not be inlinable [-Wattributes]
__attribute__((always_inline)) void put_number(unsigned int x)
^~~~~~~~~~
user.cpp:8:36: warning: always_inline function might not be inlinable [-Wattributes]
__attribute__((always_inline)) int get_number()
^~~~~~~~~~
user.cpp: In function ‘int get_number()’:
user.cpp:14:49: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
inBuffer[p] > 0x2F || ++p != IN_BUFFER_SIZE || (fread(inBuffer, 0x1, IN_BUFFER_SIZE, stdin), p = 0x0);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
user.cpp:20:31: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
++p != IN_BUFFER_SIZE || (fread(inBuffer, 0x1, IN_BUFFER_SIZE, stdin), p = 0x0);
~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
user.cpp: In function ‘int main()’:
user.cpp:52:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("rmq.in", "r", stdin);
^
user.cpp:53:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("rmq.out", "w", stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !