Borderou de evaluare (job #1771672)
Utilizator | Data | 5 octombrie 2016 21:00:51 | |
---|---|---|---|
Problema | Radiatie | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:9:5: error: ‘int index’ redeclared as different kind of symbol
int index, N, M, K, x, y;
^
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 join(int, int)’:
user.cpp:75:15: error: invalid types ‘muchie [30010][<unresolved overloaded function type>]’ for array subscript
L[ v[index].a ].push_back(make_pair(v[index].b, v[index].cost));
^
user.cpp:75:48: error: invalid types ‘muchie [30010][<unresolved overloaded function type>]’ for array subscript
L[ v[index].a ].push_back(make_pair(v[index].b, v[index].cost));
^
user.cpp:75:60: error: invalid types ‘muchie [30010][<unresolved overloaded function type>]’ for array subscript
L[ v[index].a ].push_back(make_pair(v[index].b, v[index].cost));
^
user.cpp:76:15: error: invalid types ‘muchie [30010][<unresolved overloaded function type>]’ for array subscript
L[ v[index].b ].push_back(make_pair(v[index].a, v[index].cost));
^
user.cpp:76:48: error: invalid types ‘muchie [30010][<unresolved overloaded function type>]’ for array subscript
L[ v[index].b ].push_back(make_pair(v[index].a, v[index].cost));
^
user.cpp:76:60: error: invalid types ‘muchie [30010][<unresolved overloaded function type>]’ for array subscript
L[ v[index].b ].push_back(make_pair(v[index].a, v[index].cost));
^
user.cpp: In function ‘void dfs(const int&, const int&)’:
user.cpp:85:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < L[node].size(); i ++)
^
user.cpp: In function ‘int main()’:
user.cpp:111:15: error: overloaded function with no contextual type information
for(index = 1; index <= M; index ++)
^
user.cpp:111:29: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator<=’
for(index = 1; index <= M; index ++)
^
user.cpp:111:38: error: no post-increment operator for type
for(index = 1; index <= M; index ++)
^
user.cpp:113:21: error: invalid types ‘muchie [30010][<unresolved overloaded function type>]’ for array subscript
join(v[index].a, v[index]. b);
^
user.cpp:113:33: error: invalid types ‘muchie [30010][<unresolved overloaded function type>]’ for array subscript
join(v[index].a, v[index]. b);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !