Borderou de evaluare (job #2568280)

Utilizator alex23alexandru andronache alex23 Data 3 martie 2020 21:49:46
Problema Maxq Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void update(std::vector<int>&, int, int, int, int, int, const std::function<int(int, int)>&)': main.cpp:29:61: error: 'numeric_limits' is not a member of 'std' tree[getRigthIndex(getLeftIndex(index))] == std::numeric_limits<int>::min()) ^~~ main.cpp:29:81: error: expected primary-expression before 'int' tree[getRigthIndex(getLeftIndex(index))] == std::numeric_limits<int>::min()) ^~~ main.cpp:29:81: error: expected ')' before 'int' main.cpp:38:61: error: 'numeric_limits' is not a member of 'std' tree[getLeftIndex(getRigthIndex(index))] == std::numeric_limits<int>::min()) ^~~ main.cpp:38:81: error: expected primary-expression before 'int' tree[getLeftIndex(getRigthIndex(index))] == std::numeric_limits<int>::min()) ^~~ main.cpp:38:81: error: expected ')' before 'int' main.cpp: In function 'void query(std::vector<int>&, int, int, int, int, int, std::vector<int>&)': main.cpp:61:79: error: 'numeric_limits' is not a member of 'std' if (tree[getLeftIndex(index)] < 0 && tree[getLeftIndex(index)] != std::numeric_limits<int>::min()) { ^~~ main.cpp:61:99: error: expected primary-expression before 'int' if (tree[getLeftIndex(index)] < 0 && tree[getLeftIndex(index)] != std::numeric_limits<int>::min()) { ^~~ main.cpp:61:99: error: expected ')' before 'int' main.cpp: In function 'int main()': main.cpp:106:31: error: 'numeric_limits' is not a member of 'std' std::vector<int> a(2 * n, std::numeric_limits<int>::min()); ^~~ main.cpp:106:51: error: expected primary-expression before 'int' std::vector<int> a(2 * n, std::numeric_limits<int>::min()); ^~~ main.cpp:125:23: error: 'numeric_limits' is not a member of 'std' int max = std::numeric_limits<int>::min(); ^~~ main.cpp:125:43: error: expected primary-expression before 'int' int max = std::numeric_limits<int>::min(); ^~~ main.cpp:100:24: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d", &N); ^ main.cpp:109:28: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d", &x); ^ main.cpp:113:24: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d", &M); ^ main.cpp:117:42: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d %d %d", &x, &y, &z); ^ Non zero exit status: 1

Ceva nu functioneaza?