Borderou de evaluare (job #2035541)
Utilizator | Data | 9 octombrie 2017 16:52:44 | |
---|---|---|---|
Problema | Fractal | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int poz(int, int, int)’:
user.cpp:23:8: error: expected primary-expression before ‘)’ token
if()
^
user.cpp:24:1: error: expected primary-expression before ‘}’ token
}
^
user.cpp:24:1: error: expected ‘;’ before ‘}’ token
user.cpp:22:9: warning: unused variable ‘cadr’ [-Wunused-variable]
int cadr=cadran(x,y,k);
^
user.cpp:24:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
user.cpp: In function ‘int calc(int, int, int)’:
user.cpp:30:36: warning: pointer to a function used in arithmetic [-Wpointer-arith]
return (cadran(x,y,k)-1)*4+poz;
^
user.cpp:30:35: error: invalid conversion from ‘int (*)(int, int, int)’ to ‘int’ [-fpermissive]
return (cadran(x,y,k)-1)*4+poz;
^
user.cpp: In function ‘int main()’:
user.cpp:37:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("fractal.in","r",stdin);
^
user.cpp:38:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("fractal.out","w",stdout);
^
user.cpp:40:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d",&k,&y,&x);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !