Borderou de evaluare (job #1611710)
Utilizator | Data | 24 februarie 2016 12:58:00 | |
---|---|---|---|
Problema | Ubuntzei | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:17:1: error: ‘cost’ does not name a type
cost int inf = 2000000000;
^
user.cpp:19:43: error: conflicting declaration ‘int c [2005]’
int dp[(1<<17)+10][20],cost[20][20],c[2005];
^
user.cpp:14:27: error: ‘c’ has a previous declaration as ‘int c’
int i,j,n,m,a,b,k,x,lx,ly,c,mini,is[2005],ul[2005];
^
user.cpp: In function ‘void bf(int)’:
user.cpp:24:16: error: invalid types ‘int[int]’ for array subscript
c[i] = inf;
^
user.cpp:24:20: error: ‘inf’ was not declared in this scope
c[i] = inf;
^
user.cpp:26:10: error: invalid types ‘int[int]’ for array subscript
c[nod] = 0;
^
user.cpp:30:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i = 0; i < v[now].size(); i++)
^
user.cpp:31:29: error: invalid types ‘int[int]’ for array subscript
if(c[v[now][i].x] > c[now] + v[now][i].y)
^
user.cpp:31:38: error: invalid types ‘int[int]’ for array subscript
if(c[v[now][i].x] > c[now] + v[now][i].y)
^
user.cpp:32:30: error: invalid types ‘int[int]’ for array subscript
c[v[now][i].x] = c[now] + v[now][i].y, q.push(v[now][i].x);
^
user.cpp:32:39: error: invalid types ‘int[int]’ for array subscript
c[v[now][i].x] = c[now] + v[now][i].y, q.push(v[now][i].x);
^
user.cpp:35:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i = 0; i < newnod.size(); i++)
^
user.cpp:36:18: error: no match for ‘operator[]’ (operand types are ‘int [20]’ and ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> > >::value_type {aka std::pair<int, int>}’)
cost[nod][newnod[i]] = cost[newnod[i]][nod] = c[newnod[i]];
^
user.cpp:36:36: error: no match for ‘operator[]’ (operand types are ‘int [20][20]’ and ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> > >::value_type {aka std::pair<int, int>}’)
cost[nod][newnod[i]] = cost[newnod[i]][nod] = c[newnod[i]];
^
user.cpp:36:56: error: no match for ‘operator[]’ (operand types are ‘int’ and ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> > >::value_type {aka std::pair<int, int>}’)
cost[nod][newnod[i]] = cost[newnod[i]][nod] = c[newnod[i]];
^
user.cpp: In function ‘int main()’:
user.cpp:42:36: error: no matching function for call to ‘std::vector<std::pair<int, int> >::push_back(int&)’
fin >> a,newnod.push_back(a);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !