Borderou de evaluare (job #1880768)
Utilizator | Data | 15 februarie 2017 21:52:07 | |
---|---|---|---|
Problema | AI | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int compx(obstacol, obstacol)’:
user.cpp:18:25: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if(a.x>b.x || a.x==b.x && a.y>b.y)
^
user.cpp: In function ‘int compy(obstacol, obstacol)’:
user.cpp:25:25: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if(a.y>b.y || a.y==b.y && a.x>b.x)
^
user.cpp: In function ‘int main()’:
user.cpp:37:9: error: ‘i’ was not declared in this scope
for(i=1;i<=m;i++)
^
user.cpp:43:26: error: ‘sort’ was not declared in this scope
sort(obs+1,obs+m+1,compx);
^
user.cpp:44:6: error: ‘i’ was not declared in this scope
for(i=1;i<=m;i++)
^
user.cpp:55:6: error: ‘i’ was not declared in this scope
for(i=1;i<=m;i++)
^
user.cpp:70:9: warning: unused variable ‘rez1’ [-Wunused-variable]
int rez1, rez2;
^
user.cpp:32: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:33: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:35:111: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n%d %d %d %d %d %d %d %d %d %d\n%d\n", &n, &t1, &t2, &s1, &s2, &s3, &s4, &r1, &r2, &r3, &r4, &m);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !