Borderou de evaluare (job #1594452)
Utilizator | Data | 9 februarie 2016 15:00:38 | |
---|---|---|---|
Problema | Numere 6 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:8:22: error: ‘std::vector<int> index’ redeclared as different kind of symbol
vector<int>divisors, index;
^
In file included from /usr/include/c++/4.8/cstring:42:0,
from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:48,
from user.cpp:1:
/usr/include/string.h:482:1: error: previous declaration of ‘const char* index(const char*, int)’
index (__const char *__s, int __c) __THROW
^
user.cpp: In function ‘void init(int)’:
user.cpp:23:10: error: ‘index’ does not have class type
index.resize(number + 1);
^
user.cpp:26:21: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
index[values] = cnt++;
^
user.cpp: In function ‘int solve()’:
user.cpp:32:27: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
dp[0][index[values]] = 1;
^
user.cpp:39:76: error: invalid types ‘<unresolved overloaded function type>[__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}]’ for array subscript
if(divisors[i] % j == 0) List[i].push_back(index[divisors[i] / j]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !