Borderou de evaluare (job #1135649)
Utilizator | Data | 8 martie 2014 09:52:23 | |
---|---|---|---|
Problema | Cablaj | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘long long int dist(int, int)’:
user.cpp:12:19: error: request for member ‘x’ in ‘v[i]’, which is of non-class type ‘int’
return ((v[i].x*v[j].x)*(v[i].x*v[j].x))+((v[i].y*v[i].y)*(v[i].y*v[i].y));
^
user.cpp:12:26: error: request for member ‘x’ in ‘v[j]’, which is of non-class type ‘int’
return ((v[i].x*v[j].x)*(v[i].x*v[j].x))+((v[i].y*v[i].y)*(v[i].y*v[i].y));
^
user.cpp:12:35: error: request for member ‘x’ in ‘v[i]’, which is of non-class type ‘int’
return ((v[i].x*v[j].x)*(v[i].x*v[j].x))+((v[i].y*v[i].y)*(v[i].y*v[i].y));
^
user.cpp:12:42: error: request for member ‘x’ in ‘v[j]’, which is of non-class type ‘int’
return ((v[i].x*v[j].x)*(v[i].x*v[j].x))+((v[i].y*v[i].y)*(v[i].y*v[i].y));
^
user.cpp:12:53: error: request for member ‘y’ in ‘v[i]’, which is of non-class type ‘int’
return ((v[i].x*v[j].x)*(v[i].x*v[j].x))+((v[i].y*v[i].y)*(v[i].y*v[i].y));
^
user.cpp:12:60: error: request for member ‘y’ in ‘v[i]’, which is of non-class type ‘int’
return ((v[i].x*v[j].x)*(v[i].x*v[j].x))+((v[i].y*v[i].y)*(v[i].y*v[i].y));
^
user.cpp:12:69: error: request for member ‘y’ in ‘v[i]’, which is of non-class type ‘int’
return ((v[i].x*v[j].x)*(v[i].x*v[j].x))+((v[i].y*v[i].y)*(v[i].y*v[i].y));
^
user.cpp:12:76: error: request for member ‘y’ in ‘v[i]’, which is of non-class type ‘int’
return ((v[i].x*v[j].x)*(v[i].x*v[j].x))+((v[i].y*v[i].y)*(v[i].y*v[i].y));
^
user.cpp: In function ‘int main()’:
user.cpp:2:17: warning: left shift count >= width of type [enabled by default]
#define nmax 1<<61
^
user.cpp:20:14: note: in expansion of macro ‘nmax’
d[i]=nmax;
^
user.cpp:2:17: warning: left shift count >= width of type [enabled by default]
#define nmax 1<<61
^
user.cpp:25:14: note: in expansion of macro ‘nmax’
nmin=nmax;
^
user.cpp:2:17: warning: left shift count >= width of type [enabled by default]
#define nmax 1<<61
^
user.cpp:32:18: note: in expansion of macro ‘nmax’
if(nmin==nmax){
^
user.cpp:34:13: error: return-statement with no value, in function returning ‘int’ [-fpermissive]
return;
^
user.cpp:45:13: error: ‘sqrt’ was not declared in this scope
s=sqrt(s);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !