Borderou de evaluare (job #1798975)
Utilizator | Data | 5 noiembrie 2016 17:16:24 | |
---|---|---|---|
Problema | Subsecvente2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void dfs(Node*, int)’:
user.cpp:67:29: error: ‘max’ was not declared in this scope
ans = max(ans, depth);
^
user.cpp: In function ‘int main()’:
user.cpp:79:11: warning: unused variable ‘j’ [-Wunused-variable]
int i,j,k,m,mn,id;
^
user.cpp:79:15: warning: unused variable ‘m’ [-Wunused-variable]
int i,j,k,m,mn,id;
^
user.cpp:80:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("home.in", "r", stdin);
^
user.cpp:81:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("home.out", "w", stdout);
^
user.cpp:82:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
user.cpp:90:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", s[i]+1);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !