Borderou de evaluare (job #2702075)
Utilizator | Data | 2 februarie 2021 19:48:55 | |
---|---|---|---|
Problema | Shop | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:8:33: error: 'int index [35]' redeclared as different kind of symbol
int n, c, cnt, ans[35], index[35];
^
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:20:25: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
index[v[i].first] = i;
^
main.cpp:25:29: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
ans[index[v[i].first]] = min(1LL * v[i].second, l / p[v[i].first]);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !