Borderou de evaluare (job #1964614)
Utilizator | Data | 13 aprilie 2017 16:06:21 | |
---|---|---|---|
Problema | Sccm | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:9:39: error: ‘int y1’ redeclared as different kind of symbol
int limit, answer, x, y, val, x1, x2, y1, y2, d[MAXN];
^
In file included from /usr/include/features.h:357:0,
from /usr/include/assert.h:37,
from /usr/include/c++/4.8/cassert:43,
from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:33,
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 ‘void query2D(aint2D*, int, int)’:
user.cpp:84:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(y1 <= left && right <= y2) {
^
user.cpp:90:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(y1 <= middle && node->left != NULL) query2D(node->left, left, middle);
^
user.cpp: In function ‘int main()’:
user.cpp:133:12: error: assignment of function ‘double y1(double)’
y1 = 1;
^
user.cpp:133:12: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:136:30: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(x1 <= x2 && y1 <= y2)
^
user.cpp:108:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sccm.in", "r", stdin);
^
user.cpp:109:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sccm.out", "w", stdout);
^
user.cpp:113:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &m);
^
user.cpp:117:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &x);
^
user.cpp:123:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &x);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !