Borderou de evaluare (job #1466218)
Utilizator | Data | 28 iulie 2015 19:32:18 | |
---|---|---|---|
Problema | Roy-Floyd | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int minDistance(bool*)’:
user.cpp:9:15: error: ‘INT_MAX’ was not declared in this scope
int min = INT_MAX, min_index;
^
user.cpp:15:4: error: ‘min_index’ was not declared in this scope
min_index = k;
^
user.cpp:18:12: error: ‘min_index’ was not declared in this scope
return min_index;
^
user.cpp: In function ‘int main()’:
user.cpp:47:28: error: variable-sized object ‘sptSet’ may not be initialized
bool sptSet[N]={false};
^
user.cpp:56:61: error: ‘INT_MAX’ was not declared in this scope
if (!sptSet[k] && length[u][k] && length[i][u] != INT_MAX && length[i][u]+length[u][k] < length[i][k])
^
user.cpp: In function ‘int minDistance(bool*)’:
user.cpp:19:2: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:23:28: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("rf.in","r",stdin);
^
user.cpp:24:30: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("rf.out","w",stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !