Borderou de evaluare (job #1488677)
Utilizator | Data | 19 septembrie 2015 15:09:51 | |
---|---|---|---|
Problema | Camionas | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void dijkstra()’:
user.cpp:20:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=0; i<g[dad].size(); i++)
^
user.cpp:24:17: error: expected ‘;’ before ‘h’
h.push(son);
^
user.cpp: In function ‘int main()’:
user.cpp:31:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("camionas.in", "r", stdin);
^
user.cpp:32:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("camionas.out", "w", stdout);
^
user.cpp:34:35: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d", &n, &m, &gr);
^
user.cpp:37:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d", &x, &y, &c);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !