Borderou de evaluare (job #1803499)
Utilizator | Data | 11 noiembrie 2016 15:50:33 | |
---|---|---|---|
Problema | Drum | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int go(int, int)’:
user.cpp:27:5: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if (type==2)
^
user.cpp:30:5: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if (type==3)
^
user.cpp: In function ‘void back(int, int, int)’:
user.cpp:65:31: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if (code=valid(1,ni,nj,dir))
^
user.cpp:71:31: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if (code=valid(2,ni,nj,dir))
^
user.cpp:77:31: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if (code=valid(3,ni,nj,dir))
^
user.cpp: At global scope:
user.cpp:86:15: error: ‘::main’ must return ‘int’
void main(void)
^
user.cpp: In function ‘int main()’:
user.cpp:90:45: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fp,"%d%d%d",&can[1],&can[2],&can[3]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !