Borderou de evaluare (job #1120173)
Utilizator | Data | 24 februarie 2014 21:54:04 | |
---|---|---|---|
Problema | Qtri | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘int a(int, int, int, int, int, int)’:
user.cpp:9:1: error: expected initializer before ‘double’
double p=x1*y2+x2*y3+x3*y1-x3*y2-x1*y3-x2*y1;
^
user.cpp:10:17: error: ‘p’ was not declared in this scope
return 0.5*fabs(p);
^
user.cpp: At global scope:
user.cpp:12:1: error: expected unqualified-id before ‘{’ token
{
^
user.cpp:17:1: error: expected unqualified-id before ‘{’ token
{
^
user.cpp:22:5: error: expected unqualified-id before ‘{’ token
{
^
user.cpp: In function ‘int main()’:
user.cpp:39:30: error: ‘x4’ was not declared in this scope
fin>>x1>>y1>>x2>>y2>>x3>>y3>>x4>>y4;
^
user.cpp:39:34: error: ‘y4’ was not declared in this scope
fin>>x1>>y1>>x2>>y2>>x3>>y3>>x4>>y4;
^
user.cpp:40:4: error: ‘a1’ was not declared in this scope
s+=a1+a2+a3;
^
user.cpp:40:7: error: ‘a2’ was not declared in this scope
s+=a1+a2+a3;
^
user.cpp:40:10: error: ‘a3’ was not declared in this scope
s+=a1+a2+a3;
^
user.cpp:41:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(a==s)
^
user.cpp: In function ‘int a(int, int, int, int, int, int)’:
user.cpp:11:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !