Borderou de evaluare (job #2661459)

Utilizator out111Danilov Roman out111 Data 22 octombrie 2020 03:41:35
Problema Ksecv4 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In lambda function: main.cpp:116:24: error: expected unqualified-id before '[' token for (auto &[tv, tl, tr] : segs) { ^ main.cpp:116:24: error: expected ';' before '[' token main.cpp:116:25: error: 'tv' was not declared in this scope for (auto &[tv, tl, tr] : segs) { ^~ main.cpp:116:29: error: 'tl' was not declared in this scope for (auto &[tv, tl, tr] : segs) { ^~ main.cpp:116:33: error: 'tr' was not declared in this scope for (auto &[tv, tl, tr] : segs) { ^~ main.cpp: In lambda function: main.cpp:116:37: error: expected '{' before ':' token for (auto &[tv, tl, tr] : segs) { ^ main.cpp: In lambda function: main.cpp:116:37: error: expected ';' before ':' token main.cpp:116:37: error: expected primary-expression before ':' token main.cpp:116:37: error: expected ')' before ':' token main.cpp:116:37: error: expected primary-expression before ':' token main.cpp:126:19: error: expected unqualified-id before '[' token auto &[tv, tl, tr] = bad_segment; ^ main.cpp:126:19: error: expected initializer before '[' token main.cpp:128:17: error: 'tv' was not declared in this scope if (tv == -1) { ^~ main.cpp:132:52: error: 'tl' was not declared in this scope j = tree.go_down(diam, mi, ma, tv, tl, tr); ^~ main.cpp:132:56: error: 'tr' was not declared in this scope j = tree.go_down(diam, mi, ma, tv, tl, tr); ^~ main.cpp: In instantiation of 'SparseTable<T>::SparseTable(std::vector<_Tp>&) [with T = long long int]': main.cpp:39:28: required from here main.cpp:15:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < a.size(); ++i) { main.cpp:20:48: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int j = 0; j + (1 << (i + 1)) <= a.size(); ++j) { main.cpp: In function 'int main()': main.cpp:189:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("ksecv4.in", "r", stdin); ^ main.cpp:190:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("ksecv4.out", "w", stdout); Non zero exit status: 1

Ceva nu functioneaza?