Borderou de evaluare (job #1897676)
Utilizator | Data | 1 martie 2017 17:09:41 | |
---|---|---|---|
Problema | Range minimum query | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void init()’:
user.cpp:7:13: error: ‘INT_MAX’ was not declared in this scope
#define INF INT_MAX
^
user.cpp:42:25: note: in expansion of macro ‘INF’
mat[i][j] = INF;
^
user.cpp: In function ‘void read()’:
user.cpp:48:9: warning: unused variable ‘var’ [-Wunused-variable]
int var = ceil(log2(n));
^
user.cpp:49:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d\n", &n, &m);
^
user.cpp:52:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n", &mat[i][0]);
^
user.cpp:59:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d\n", &x, &y);
^
user.cpp: In function ‘int main()’:
user.cpp:65: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:66: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 !