Borderou de evaluare (job #2164729)
Utilizator | Data | 13 martie 2018 09:27:44 | |
---|---|---|---|
Problema | Camion | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:19:22: error: ‘int y1 [30005]’ redeclared as different kind of symbol
int x1[maxK], y1[maxK], x2[maxK], y2[maxK];
^
In file included from /usr/include/features.h:367:0,
from /usr/include/x86_64-linux-gnu/c++/5/32/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/5/32/bits/c++config.h:482,
from /usr/include/c++/5/cstdio:41,
from user.cpp:6:
/usr/include/bits/mathcalls.h:251:1: note: previous declaration ‘double y1(double)’
__MATHCALL (y1,, (_Mdouble_));
^
user.cpp: In function ‘int main()’:
user.cpp:26:36: 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:26:53: 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:35:14: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(y1[i] <= pos) {
^
user.cpp:35:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(y1[i] <= pos) {
^
user.cpp:36:28: warning: pointer to a function used in arithmetic [-Wpointer-arith]
pos += y2[i] - y1[i] + 1;
^
user.cpp:36:28: error: invalid operands of types ‘int’ and ‘double(double) throw ()’ to binary ‘operator-’
user.cpp:23:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d%d", &n, &m, &k, &c);
^
user.cpp:26:54: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d%d", &x1[i], &y1[i], &x2[i], &y2[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !