Borderou de evaluare (job #1308985)
Utilizator | Data | 4 ianuarie 2015 23:50:56 | |
---|---|---|---|
Problema | Triangles | Status | done |
Runda | Arhiva Monthly | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int main()’:
user.cpp:2:12: error: request for member ‘first’ in ‘s[i]’, which is of non-class type ‘int’
# define x first
^
user.cpp:52:37: note: in expansion of macro ‘x’
for (int i=1;i<=n;++i) fi>>s[i].x,s[i].y=i;
^
user.cpp:3:12: error: request for member ‘second’ in ‘s[i]’, which is of non-class type ‘int’
# define y second
^
user.cpp:52:44: note: in expansion of macro ‘y’
for (int i=1;i<=n;++i) fi>>s[i].x,s[i].y=i;
^
user.cpp:57:16: error: ‘v’ was not declared in this scope
while (v[l].x + v[l+1].x < v[i].x) ++l;
^
user.cpp:3:12: error: request for member ‘second’ in ‘s[j]’, which is of non-class type ‘int’
# define y second
^
user.cpp:60:54: note: in expansion of macro ‘y’
for (int j=l;j<=i;++j) printf("%d ",s[j].y);
^
user.cpp:49:9: warning: unused variable ‘t’ [-Wunused-variable]
int t,k;
^
user.cpp:48:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("triangles.out","w",stdout);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !