Borderou de evaluare (job #1984790)
Utilizator | Data | 25 mai 2017 23:17:21 | |
---|---|---|---|
Problema | BFS - Parcurgere in latime | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:8:5: error: ‘int index’ redeclared as different kind of symbol
int 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 ‘int main()’:
user.cpp:51:19: error: overloaded function with no contextual type information
for(index = 1; index <= numberOfEdges; index ++)
^
user.cpp:51:33: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator<=’
for(index = 1; index <= numberOfEdges; index ++)
^
user.cpp:51:54: error: no post-increment operator for type
for(index = 1; index <= numberOfEdges; index ++)
^
user.cpp:78:19: error: overloaded function with no contextual type information
for(index = 1; index <= numberOfNodes; index ++)
^
user.cpp:78:33: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator<=’
for(index = 1; index <= numberOfNodes; index ++)
^
user.cpp:78:54: error: no post-increment operator for type
for(index = 1; index <= numberOfNodes; index ++)
^
user.cpp:80:35: error: invalid types ‘bool [400100][<unresolved overloaded function type>]’ for array subscript
if(isVisited[index] == true)
^
user.cpp:82:53: error: invalid types ‘int [400100][<unresolved overloaded function type>]’ for array subscript
fprintf(fout, "%d ", D[index]);
^
user.cpp:49:77: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d %d %d", &numberOfNodes, &numberOfEdges, &sourceNode);
^
user.cpp:53:53: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d %d", &node1, &node2);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !