Borderou de evaluare (job #1486961)
Utilizator | Data | 15 septembrie 2015 19:54:53 | |
---|---|---|---|
Problema | Chernel | 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:9:11: error: ‘k’ was not declared in this scope
for(x[k++]=2,i=1;2*i+1<=n;i++)
^
user.cpp:12:15: error: ‘k’ was not declared in this scope
for(i=0;i<k&&x[i]*x[i]<=m;i++) {
^
user.cpp:21:19: error: ‘k’ was not declared in this scope
for(l=0;l<k&&x[l]*x[l]<=j;l++)
^
user.cpp:25:19: error: ‘k’ was not declared in this scope
for(l=0;l<k&&x[l]*x[l]<=e;l++)
^
user.cpp:4:94: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("chernel.in","r",stdin),freopen("chernel.out","w",stdout),scanf("%d%d",&n,&m),n--;
^
user.cpp:4:94: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
user.cpp:4:94: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !