Borderou de evaluare (job #1487381)
Utilizator | Data | 16 septembrie 2015 18:54:39 | |
---|---|---|---|
Problema | Cmmmc | 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:27:27: error: ‘r’ was not declared in this scope
for(j=i,b=a/i,r=b%j;r;b=j,j=r,r=b%j);
^
user.cpp:4:90: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cmmmc.in","r",stdin),freopen("cmmmc.out","w",stdout),scanf("%d",&m),y[++t]=2;
^
user.cpp:4:90: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
user.cpp:4:90: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
user.cpp:13:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n),k=0,b=a=n;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !