Borderou de evaluare (job #1483905)

Utilizator BlaugranasEnal Gemaledin Blaugranas Data 10 septembrie 2015 08:52:17
Problema Lungimi de interval Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:5:5: error: ‘N’ was not declared in this scope P p[N]; ^ user.cpp: In function ‘int main()’: user.cpp:14:24: error: ‘p’ was not declared in this scope scanf("%d%d",&p[j].a,&p[j].b); ^ user.cpp:15:13: error: ‘p’ was not declared in this scope sort(p+1,p+n+1,C),t=1,e=p[t].b-p[t].a; ^ user.cpp:17:10: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wparentheses] if(p[k].b>p[t].b) ^ user.cpp:10:82: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("linterv.in","r",stdin),freopen("linterv.out","w",stdout),scanf("%d",&r); ^ user.cpp:10:82: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] user.cpp:10:82: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] user.cpp:12:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^

Ceva nu functioneaza?