Borderou de evaluare (job #1897655)
Utilizator | Data | 1 martie 2017 16:58:36 | |
---|---|---|---|
Problema | SumDiv2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int sumd(int, int)’:
user.cpp:22:13: error: ‘v’ was not declared in this scope
for(i=1;v[i]*v[i]<=x;i++)
^
user.cpp:32:10: error: ‘v’ was not declared in this scope
{v[j+1]=x;j++;s=s*((lgput(x,2)-1)/(x-1));}
^
user.cpp: In function ‘int main()’:
user.cpp:42:5: error: ‘v’ was not declared in this scope
v[j]=2;
^
user.cpp:38:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sumdiv2.in","r",stdin);
^
user.cpp:39:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sumdiv2.out","w",stdout);
^
user.cpp:41:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !