Borderou de evaluare (job #1917711)
Utilizator | Data | 9 martie 2017 12:52:30 | |
---|---|---|---|
Problema | Cerc4 | Status | done |
Runda | preoji_bv_2017_1_10 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int intersectie(punct, punct)’:
user.cpp:20:15: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
if(a.x==1 && (a.x<b.x && a.x<b.y) || (a.y<b.x && a.y<b.y))
^
user.cpp: In function ‘int main()’:
user.cpp:38:5: error: expected primary-expression before ‘}’ token
}
^
user.cpp:38:5: error: expected ‘;’ before ‘}’ token
user.cpp:27:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cerc4.in", "r", stdin);
^
user.cpp:28:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cerc4.out", "w", stdout);
^
user.cpp:30:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d\n", &n, &m);
^
user.cpp:32:43: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d\n", &a[i].x, &a[i].y);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !