Borderou de evaluare (job #1268750)

Utilizator akaprosAna Kapros akapros Data 21 noiembrie 2014 13:41:46
Problema Curse de cai 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,i,j,x1,x2,y1,y2,sol,t; ^ 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/cstdio:41, 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:22:11: error: assignment of function ‘double y1(double)’ y1=1; y2=n; ^ user.cpp:22:11: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment user.cpp:29:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] while ((x1<x2)&&(y1<y2)) ^ user.cpp:31:27: error: invalid types ‘int [1005][double(double)throw ()]’ for array subscript if (v[x1]<w[y1]) y1++,x2--,sol-=200; else ^ user.cpp:31:32: error: ISO C++ forbids incrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive] if (v[x1]<w[y1]) y1++,x2--,sol-=200; else ^ user.cpp:31:32: error: lvalue required as increment operand user.cpp:32:27: error: invalid types ‘int [1005][double(double)throw ()]’ for array subscript if (v[x1]>w[y1]) x1++,y1++,sol+=200; else ^ user.cpp:32:37: error: ISO C++ forbids incrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive] if (v[x1]>w[y1]) x1++,y1++,sol+=200; else ^ user.cpp:32:37: error: lvalue required as increment operand user.cpp:33:28: error: invalid types ‘int [1005][double(double)throw ()]’ for array subscript if (v[x1]==w[y1]) ^ user.cpp:36:24: error: ISO C++ forbids incrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive] x1++,y1++,x2--,y2--,sol+=200; ^ user.cpp:36:24: error: lvalue required as increment operand user.cpp:38:42: error: ISO C++ forbids incrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive] if (v[x2]==w[y2]) x1++,y1++; ^ user.cpp:38:42: error: lvalue required as increment operand user.cpp:44:23: error: invalid types ‘int [1005][double(double)throw ()]’ for array subscript if (v[x1]>w[y1]) sol+=200; ^ user.cpp:45:23: error: invalid types ‘int [1005][double(double)throw ()]’ for array subscript if (v[x1]<w[y1]) sol-=200; ^

Ceva nu functioneaza?