Borderou de evaluare (job #1371909)
Utilizator | Data | 4 martie 2015 10:11:24 | |
---|---|---|---|
Problema | Jetoane | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:4:17: error: ‘int y1’ redeclared as different kind of symbol
int n,m,i,j,y1,z1,maxi,mini,a[100],b[100],y2,z2;
^
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/iosfwd:38,
from /usr/include/c++/4.8/ios:38,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:1:
/usr/include/i386-linux-gnu/bits/mathcalls.h:243:1: error: previous declaration of ‘double y1(double)’
__MATHCALL (y1,, (_Mdouble_));
^
user.cpp: In function ‘int main()’:
user.cpp:16:41: error: assignment of function ‘double y1(double)’
if (a[i]==b[j]){mini=a[i];y1=i;z1=j;break;}
^
user.cpp:16:41: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:23:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if (y1==z1 && y2==z2)fout <<mini << " " << maxi << " 0" << '\n';
^
user.cpp:24:21: warning: pointer to a function used in arithmetic [-Wpointer-arith]
else if (n-maxi+y1-1>m-maxi+z1-1)fout << mini << " " << maxi << " 1" << '\n';
^
user.cpp:24:24: warning: pointer to a function used in arithmetic [-Wpointer-arith]
else if (n-maxi+y1-1>m-maxi+z1-1)fout << mini << " " << maxi << " 1" << '\n';
^
user.cpp:24:36: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
else if (n-maxi+y1-1>m-maxi+z1-1)fout << mini << " " << maxi << " 1" << '\n';
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !