Borderou de evaluare (job #1487301)
Utilizator | Data | 16 septembrie 2015 17:26:14 | |
---|---|---|---|
Problema | Cezar | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:28:13: error: ‘o’ was not declared in this scope
for(o=0,i=1,w[H[1]]=j=0;i<n&&!o;i++)
^
user.cpp:17:86: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cezar.in","r",stdin),freopen("cezar.out","w",stdout),scanf("%d%d",&n,&l);
^
user.cpp:17:86: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
user.cpp:17:86: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
user.cpp:19:54: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&u[k],&v[k]),w[u[k]]++,w[v[k]]++;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !