Borderou de evaluare (job #1279811)
Utilizator | Data | 30 noiembrie 2014 22:07:48 | |
---|---|---|---|
Problema | Grid | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:36: error: ‘int y1 [150005]’ redeclared as different kind of symbol
int x1[150005],x2[150005],y1[150005],y2[150005];
^
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:16:41: warning: pointer to a function used in arithmetic [-Wpointer-arith]
scanf("%d %d %d %d",&x1[i],&y1[i],&x2[i],&y2[i]);
^
user.cpp:16:56: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘double (*)(double)throw ()’ [-Wformat=]
scanf("%d %d %d %d",&x1[i],&y1[i],&x2[i],&y2[i]);
^
user.cpp:17:33: warning: pointer to a function used in arithmetic [-Wpointer-arith]
++x1[i]; ++x2[i]; ++y1[i]; ++y2[i];
^
user.cpp:17:33: error: ISO C++ forbids incrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive]
user.cpp:17:33: error: lvalue required as increment operand
user.cpp:30:13: warning: pointer to a function used in arithmetic [-Wpointer-arith]
y1[i]=W[x1[i]][y1[i]]; l[x2[i]]--;
^
user.cpp:30:28: warning: pointer to a function used in arithmetic [-Wpointer-arith]
y1[i]=W[x1[i]][y1[i]]; l[x2[i]]--;
^
user.cpp:30:29: error: invalid types ‘int [30005][double(double)throw ()]’ for array subscript
y1[i]=W[x1[i]][y1[i]]; l[x2[i]]--;
^
user.cpp:31:59: warning: pointer to a function used in arithmetic [-Wpointer-arith]
a[x2[i]][--w[x2[i]][y2[i]]]=a[x1[i]][w[x1[i]][y1[i]]];
^
user.cpp:31:60: error: invalid types ‘int [30005][double(double)throw ()]’ for array subscript
a[x2[i]][--w[x2[i]][y2[i]]]=a[x1[i]][w[x1[i]][y1[i]]];
^
user.cpp:32:31: warning: pointer to a function used in arithmetic [-Wpointer-arith]
a[x1[i]][w[x1[i]][y1[i]]]=0;
^
user.cpp:32:32: error: invalid types ‘int [30005][double(double)throw ()]’ for array subscript
a[x1[i]][w[x1[i]][y1[i]]]=0;
^
user.cpp:33:22: warning: pointer to a function used in arithmetic [-Wpointer-arith]
W[x1[i]][y1[i]]--;
^
user.cpp:33:23: error: invalid types ‘int [30005][double(double)throw ()]’ for array subscript
W[x1[i]][y1[i]]--;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !