Borderou de evaluare (job #1501230)
Utilizator | Data | 13 octombrie 2015 08:20:27 | |
---|---|---|---|
Problema | A+B | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int ecuatii(int, int, int, int)’:
user.cpp:13:17: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if(x1 == x4 && y1 == y4 || x2 == x4 && y2 == y4 || x3 == x4 && y3 == y4)
^
user.cpp:13:65: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if(x1 == x4 && y1 == y4 || x2 == x4 && y2 == y4 || x3 == x4 && y3 == y4)
^
user.cpp: In function ‘int main()’:
user.cpp:41:9: warning: unused variable ‘pn’ [-Wunused-variable]
int pn=0,sn=0;
^
user.cpp:41:14: warning: unused variable ‘sn’ [-Wunused-variable]
int pn=0,sn=0;
^
user.cpp:43:9: error: ‘pn’ was not declared in this scope
pn++;
^
user.cpp:45:9: error: ‘sn’ was not declared in this scope
sn++;
^
user.cpp:47:9: error: ‘pn’ was not declared in this scope
pn++;
^
user.cpp:49:9: error: ‘sn’ was not declared in this scope
sn++;
^
user.cpp:51:9: error: ‘pn’ was not declared in this scope
pn++;
^
user.cpp:53:9: error: ‘sn’ was not declared in this scope
sn++;
^
user.cpp:54:8: error: ‘sn’ was not declared in this scope
if(sn + pn > 2)
^
user.cpp:54:13: error: ‘pn’ was not declared in this scope
if(sn + pn > 2)
^
user.cpp:54:7: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses]
if(sn + pn > 2)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !