Borderou de evaluare (job #2459911)

Utilizator rares404AlShaytan - Balasescu Rares rares404 Data 22 septembrie 2019 14:27:27
Problema Aliniate Status done
Runda Algoritmiada 2019 Runda Finala Juniori Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int check(int, int)': main.cpp:29:10: error: no match for 'operator[]' (operand types are 'int(int, int)' and 'std::pair<int, int>') check[make_pair(x, y)] = pacc(pacc(check[make_pair(x + (len / 2), y)]) * pacc(check[make_pair(x, x + (len / 2) - 1)])); ^ main.cpp:29:45: error: no match for 'operator[]' (operand types are 'int(int, int)' and 'std::pair<int, int>') check[make_pair(x, y)] = pacc(pacc(check[make_pair(x + (len / 2), y)]) * pacc(check[make_pair(x, x + (len / 2) - 1)])); ^ main.cpp:29:88: error: no match for 'operator[]' (operand types are 'int(int, int)' and 'std::pair<int, int>') check[make_pair(x, y)] = pacc(pacc(check[make_pair(x + (len / 2), y)]) * pacc(check[make_pair(x, x + (len / 2) - 1)])); ^ main.cpp:30:24: error: no match for 'operator[]' (operand types are 'int(int, int)' and 'std::pair<int, int>') if (st != -1) check[make_pair(x, y)] = pacc(st * pacc(check[make_pair(x + (len / 2), y)])); ^ main.cpp:30:64: error: no match for 'operator[]' (operand types are 'int(int, int)' and 'std::pair<int, int>') if (st != -1) check[make_pair(x, y)] = pacc(st * pacc(check[make_pair(x + (len / 2), y)])); ^ main.cpp:31:24: error: no match for 'operator[]' (operand types are 'int(int, int)' and 'std::pair<int, int>') if (dr != -1) check[make_pair(x, y)] = pacc(dr * pacc(check[make_pair(x, x + (len / 2) - 1)])); ^ main.cpp:31:64: error: no match for 'operator[]' (operand types are 'int(int, int)' and 'std::pair<int, int>') if (dr != -1) check[make_pair(x, y)] = pacc(dr * pacc(check[make_pair(x, x + (len / 2) - 1)])); ^ main.cpp:32:36: error: no match for 'operator[]' (operand types are 'int(int, int)' and 'std::pair<int, int>') if (st != -1 && dr != -1) check[make_pair(x, y)] = pacc(st * dr); ^ main.cpp:34:33: error: no match for 'operator[]' (operand types are 'int(int, int)' and 'std::pair<int, int>') if (prod == -1 && pacc(check[make_pair(x, y)]) == 0) { ^ main.cpp:38:33: error: no match for 'operator[]' (operand types are 'int(int, int)' and 'std::pair<int, int>') if (prod != -1 && pacc(check[make_pair(x, y)]) == 0 && prod != 0) return 0; ^ main.cpp:39:33: error: no match for 'operator[]' (operand types are 'int(int, int)' and 'std::pair<int, int>') if (prod != -1 && pacc(check[make_pair(x, y)]) != 0 && prod % pacc(check[make_pair(x, y)]) != 0) return 0; ^ main.cpp:39:77: error: no match for 'operator[]' (operand types are 'int(int, int)' and 'std::pair<int, int>') if (prod != -1 && pacc(check[make_pair(x, y)]) != 0 && prod % pacc(check[make_pair(x, y)]) != 0) return 0; ^ main.cpp: In function 'int solve()': main.cpp:79:115: error: no match for 'operator[]' (operand types are 'int(int, int)' and 'std::pair<long long int, long long int>') if ((f[make_pair(x, y)] != 0 && access(f[make_pair(x, y)]) != access(prod)) || (access(prod) != 0 && check[make_pair(x, y)] == pacc(0)) || (access(prod) % pacc(check[make_pair(x, y)]) != 0)) { ^ main.cpp:79:174: error: no match for 'operator[]' (operand types are 'int(int, int)' and 'std::pair<long long int, long long int>') if ((f[make_pair(x, y)] != 0 && access(f[make_pair(x, y)]) != access(prod)) || (access(prod) != 0 && check[make_pair(x, y)] == pacc(0)) || (access(prod) % pacc(check[make_pair(x, y)]) != 0)) { ^ main.cpp:83:14: error: no match for 'operator[]' (operand types are 'int(int, int)' and 'std::pair<long long int, long long int>') check[make_pair(x, y)] = pacc(prod); ^ Non zero exit status: 1

Ceva nu functioneaza?