Borderou de evaluare (job #1403694)
Utilizator | Data | 27 martie 2015 15:18:38 | |
---|---|---|---|
Problema | Triang | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6:12: error: expected ‘;’ at end of member declaration
double y
^
user.cpp: In function ‘int cautare_binara(int, int, int)’:
user.cpp:27:12: error: ‘n’ was not declared in this scope
int dr=n;
^
user.cpp:32:24: error: no match for ‘operator<’ (operand types are ‘punct’ and ‘int’)
else if (a[mij]<xf) mij=st+1;
^
user.cpp:36:28: error: no match for ‘operator<’ (operand types are ‘punct’ and ‘int’)
else if (a[mij]<yf) mij=st+1;
^
user.cpp:39:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:44:19: error: ‘n’ was not declared in this scope
scanf("%d\n",&n);
^
user.cpp:46:10: error: ‘i’ was not declared in this scope
for (i=1; i<=n; i++) scanf("%llf %llf\n",&a[i].x,&a[i].y);
^
user.cpp:47:23: error: ‘sort’ was not declared in this scope
sort(a+1,a+n+1,cmp);
^
user.cpp:48:10: error: ‘i’ was not declared in this scope
for (i=1; i<=n-2; i++) for (j=i+1; j<=n-1; j++)
^
user.cpp:48:33: error: ‘j’ was not declared in this scope
for (i=1; i<=n-2; i++) for (j=i+1; j<=n-1; j++)
^
user.cpp:50:44: error: ‘sqrt’ was not declared in this scope
xi=(a[j].x-a[i].x)/2+sqrt(1.0*3)(a[j].y-a[i].y)/2;
^
user.cpp:42:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("triang.in","r",stdin);
^
user.cpp:43:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("triang.out","w",stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !