Borderou de evaluare (job #2727952)
Utilizator | Data | 22 martie 2021 17:19:18 | |
---|---|---|---|
Problema | Inel | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int devolver1(int)':
main.cpp:45:15: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if(prim(s)==0&&prim(1+st[1])==0||prim(s)==0&&prim(1+st[1])==1||prim(s)==1&&prim(1+st[1])==0)
~~~~~~~~~~^~~~~~~~~~~~~~~~~~
main.cpp:45:75: warning: suggest parentheses around '&&' within '||' [-Wparentheses]
if(prim(s)==0&&prim(1+st[1])==0||prim(s)==0&&prim(1+st[1])==1||prim(s)==1&&prim(1+st[1])==0)
~~~~~~~~~~^~~~~~~~~~~~~~~~~~
main.cpp: In function 'int backtracking(int)':
main.cpp:60:3: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if(devolver(k)==1&&devolver1(k)==1)
^
main.cpp:65:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
main.cpp: In function 'int main()':
main.cpp:87:3: error: expected primary-expression before 'else'
else if (n==16)
^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !