Borderou de evaluare (job #2632708)
Utilizator | Data | 4 iulie 2020 14:56:38 | |
---|---|---|---|
Problema | Heavy Path Decomposition | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In member function 'void SegmentTree::Build(const std::vector<int>&, const std::vector<int>&)':
main.cpp:16:39: error: no matching function for call to 'SegmentTree::Build_(int, int, int, const std::vector<int>&, const std::vector<int>&)'
Build_(0, size_-1, 0, elem, values);
^
main.cpp:29:8: note: candidate: void SegmentTree::Build_(int, int, int, const std::vector<int>&)
void Build_(int li, int lf, int pz, const vector<int>& elem)
^~~~~~
main.cpp:29:8: note: candidate expects 4 arguments, 5 provided
main.cpp: In member function 'void SegmentTree::Build_(int, int, int, const std::vector<int>&)':
main.cpp:36:36: error: 'values' was not declared in this scope
Build_(li, m, (pz<<1)|1, elem, values);
^~~~~~
main.cpp: In function 'void Decompose()':
main.cpp:137:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 1; j < Graph[i].size(); ++j)
~~^~~~~~~~~~~~~~~~~
main.cpp: In function 'void BuildSegmentTrees()':
main.cpp:149:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < paths.size(); ++i)
~~^~~~~~~~~~~~~~
main.cpp: In function 'void ReadData()':
main.cpp:82:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &N, &M);
^
main.cpp:93:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &value[i]);
^
main.cpp:96:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &x, &y);
^
main.cpp: In function 'void Solve()':
main.cpp:157:33: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d", &op, &x, &y);
^
main.cpp: In function 'int main()':
main.cpp:184:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("heavypath.in", "r", stdin);
^
main.cpp:185:40: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("heavypath.out", "w", stdout);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !