Borderou de evaluare (job #1389048)
Utilizator | Data | 15 martie 2015 21:44:25 | |
---|---|---|---|
Problema | Confuzie | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void dfs(int, int)’:
user.cpp:22:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j=0; j<h[i].size(); ++j)if(h[i][j]!=f)dfs(h[i][j], i);
^
user.cpp:20:12: warning: unused variable ‘k’ [-Wunused-variable]
int j, k;
^
user.cpp: In function ‘int main()’:
user.cpp:29:40: error: expected ‘)’ before ‘;’ token
freopen("confuzie.out", "w", stdout;
^
user.cpp:28:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("confuzie.in", "r", stdin);
^
user.cpp:30:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &m);
^
user.cpp:32:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &j, &k);
^
user.cpp:38:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &i);
^
user.cpp:41:34: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &j, &k);
^
user.cpp:49:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &k);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !