Borderou de evaluare (job #2637171)

Utilizator CosminMorarMorar Cosmin Andrei CosminMorar Data 21 iulie 2020 16:50:13
Problema Aquapark Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:7:26: error: 'std::map<std::pair<int, int>, int> index' redeclared as different kind of symbol map<pair<int, int>, int> index; ^~~~~ In file included from /usr/include/c++/6/cstring:42:0, from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:48, from main.cpp:1: /usr/include/string.h:477:1: note: previous declaration 'const char* index(const char*, int)' index (const char *__s, int __c) __THROW ^~~~~ main.cpp: In function 'int main()': main.cpp:54:8: error: no match for 'operator[]' (operand types are '<unresolved overloaded function type>' and 'std::pair<int, int>') index[e_act] = i; ^ main.cpp: In function 'bool se_intersecteaza(std::pair<int, int>, std::pair<int, int>)': main.cpp:87:49: warning: suggest parentheses around '&&' within '||' [-Wparentheses] return i.first < j.first && j.first < i.second && j.second > i.second || j.first < i.first && i.first < j.second && i.second > j.second; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ main.cpp: In function 'int find_supergroup(std::pair<int, int>)': main.cpp:91:15: error: no match for 'operator[]' (operand types are '<unresolved overloaded function type>' and 'std::pair<int, int>') int x = index[e]; ^ Non zero exit status: 1

Ceva nu functioneaza?