Borderou de evaluare (job #1623652)

Utilizator mirceadinoMircea Popoveniuc mirceadino Data 1 martie 2016 20:49:40
Problema RangeMode Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:25:27: error: array bound is not an integer constant before ‘]’ token vector<int> block[SQRT + 5]; ^ user.cpp: In function ‘int main()’: user.cpp:47:3: error: ‘block’ was not declared in this scope block[Q[i].block()].push_back(i); ^ user.cpp:51:8: error: ‘block’ was not declared in this scope sort(block[bl].begin(), block[bl].end(), [](const int &a, const int &b) { ^ user.cpp:33:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("rangemode.in", "r", stdin); ^ user.cpp:34:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("rangemode.out", "w", stdout); ^ user.cpp:37:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &N, &M); ^ user.cpp:40:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &A[i]); ^ user.cpp:45:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &x, &y); ^

Ceva nu functioneaza?