Borderou de evaluare (job #1921587)
Utilizator | Data | 10 martie 2017 13:22:54 | |
---|---|---|---|
Problema | Magic2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:9:30: error: ‘int j1’ redeclared as different kind of symbol
int n,a[101][101],i,j,p=1,i1,j1,i2,j2,v1,v2,vi;
^
In file included from /usr/include/features.h:357:0,
from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39,
from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:420,
from /usr/include/c++/4.8/iostream:38,
from user.cpp:1:
/usr/include/i386-linux-gnu/bits/mathcalls.h:240:1: error: previous declaration of ‘double j1(double)’
__MATHCALL (j1,, (_Mdouble_));
^
user.cpp: In function ‘bool magic(int (*)[101])’:
user.cpp:74:11: warning: unused variable ‘j’ [-Wunused-variable]
int i,j,sum;
^
user.cpp: In function ‘int main()’:
user.cpp:172:26: error: no matching function for call to ‘cautare1(int&, double (&)(double)throw (), int&)’
cautare1(i1,j1,v1);
^
user.cpp:172:26: note: candidates are:
user.cpp:15:6: note: void cautare1(int)
void cautare1(int);
^
user.cpp:15:6: note: candidate expects 1 argument, 3 provided
user.cpp:125:6: note: void cautare1(int&, int&, int&)
void cautare1(int &i1, int &j1, int &v1)
^
user.cpp:125:6: note: no known conversion for argument 2 from ‘double(double)throw ()’ to ‘int&’
user.cpp:176:21: warning: the address of ‘double j1(double)’ will always evaluate as ‘true’ [-Waddress]
g<<i1<<" "<<j1<<" "<<i2<<" "<<j2<<endl;
^
user.cpp:161:9: warning: unused variable ‘digit’ [-Wunused-variable]
int digit,p,r;
^
user.cpp:161:17: warning: unused variable ‘r’ [-Wunused-variable]
int digit,p,r;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !