Borderou de evaluare (job #1365751)
Utilizator | Data | 28 februarie 2015 14:57:26 | |
---|---|---|---|
Problema | AI | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void trave(coord, coord, int)’:
user.cpp:55:33: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if (h.x < g.x || h.x == g.x && h.y < g.y)
^
user.cpp: In function ‘int coli(coord, coord)’:
user.cpp:76:24: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if (pct.x < surs.x && pct.x < t.x || pct.y < surs.y && pct.y < t.y) || pct.x > surs.x && pct.x > t.x || pct.y > surs.y && pct.y > t.y))
^
user.cpp:76:73: error: expected primary-expression before ‘||’ token
if (pct.x < surs.x && pct.x < t.x || pct.y < surs.y && pct.y < t.y) || pct.x > surs.x && pct.x > t.x || pct.y > surs.y && pct.y > t.y))
^
user.cpp:76:138: error: expected ‘;’ before ‘)’ token
if (pct.x < surs.x && pct.x < t.x || pct.y < surs.y && pct.y < t.y) || pct.x > surs.x && pct.x > t.x || pct.y > surs.y && pct.y > t.y))
^
user.cpp: In function ‘int main()’:
user.cpp:131:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("ai.in", "r", stdin);
^
user.cpp:132:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("ai.out", "w", stdout);
^
user.cpp:134:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
user.cpp:136:52: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
&s2.x, &s2.y, &r1.x, &r1.y, &r2.x, &r2.y);
^
user.cpp:137:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &k);
^
user.cpp:141:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &t1, &t2);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !