Borderou de evaluare (job #1810000)
Utilizator | Data | 19 noiembrie 2016 15:03:30 | |
---|---|---|---|
Problema | Algoritmul lui Dijkstra | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:78:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0; i< v[1].v.size(); i++)
^
user.cpp:81:38: error: expected primary-expression before ‘)’ token
make_heap(h.begin(), h.end(), cmp);
^
user.cpp:86:41: error: expected primary-expression before ‘)’ token
pop_heap(h.begin(), h.end(), cmp);
^
user.cpp:92:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0; i< v[arc.destinatie].v.size(); i++)
^
user.cpp:99:50: error: expected primary-expression before ‘)’ token
push_heap(h.begin(), h.end(), cmp);
^
user.cpp:59:12: warning: unused variable ‘j’ [-Wunused-variable]
{ int i, j, a, b, c;
^
user.cpp:61:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("dijkstra.in","r",stdin);
^
user.cpp:62:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("dijkstra.out","w",stdout);
^
user.cpp:63:37: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
fread(buff, 1,buff_size, stdin);
^
user.cpp: In function ‘void read(int&)’:
user.cpp:12:96: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
while(!isdigit(buff[pos])) if(++pos == buff_size) fread(buff, 1,buff_size, stdin), pos = 0;
^
user.cpp:17:73: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
if(++pos == buff_size) fread(buff, 1, buff_size, stdin), pos = 0;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !