Borderou de evaluare (job #2063496)
Utilizator | Data | 11 noiembrie 2017 11:50:25 | |
---|---|---|---|
Problema | Alee | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:5:35: error: ‘int y1’ redeclared as different kind of symbol
int i,j,n,m,a[177][177],t,v,x1,x2,y1,y2,xx,yy;
^
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 ‘int main()’:
user.cpp:44:43: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘double (*)(double)throw ()’ [-Wformat=]
scanf( "%d%d%d%d", &x1, &y1, &x2, &y2 );
^
user.cpp:45:15: error: invalid types ‘int [177][double(double)throw ()]’ for array subscript
a[x1][y1]=1;
^
user.cpp:46:30: error: no matching function for call to ‘std::queue<std::pair<int, int> >::push(std::pair<int, double (*)(double)throw ()>)’
q.push( make_pair(x1,y1) );
^
user.cpp:46:30: note: candidates are:
In file included from /usr/include/c++/4.8/queue:64:0,
from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:85,
from user.cpp:1:
/usr/include/c++/4.8/bits/stl_queue.h:212:7: note: void std::queue<_Tp, _Sequence>::push(const value_type&) [with _Tp = std::pair<int, int>; _Sequence = std::deque<std::pair<int, int>, std::allocator<std::pair<int, int> > >; std::queue<_Tp, _Sequence>::value_type = std::pair<int, int>]
push(const value_type& __x)
^
/usr/include/c++/4.8/bits/stl_queue.h:212:7: note: no known conversion for argument 1 from ‘std::pair<int, double (*)(double)throw ()>’ to ‘const value_type& {aka const std::pair<int, int>&}’
/usr/include/c++/4.8/bits/stl_queue.h:217:7: note: void std::queue<_Tp, _Sequence>::push(std::queue<_Tp, _Sequence>::value_type&&) [with _Tp = std::pair<int, int>; _Sequence = std::deque<std::pair<int, int>, std::allocator<std::pair<int, int> > >; std::queue<_Tp, _Sequence>::value_type = std::pair<int, int>]
push(value_type&& __x)
^
/usr/include/c++/4.8/bits/stl_queue.h:217:7: note: no known conversion for argument 1 from ‘std::pair<int, double (*)(double)throw ()>’ to ‘std::queue<std::pair<int, int> >::value_type&& {aka std::pair<int, int>&&}’
user.cpp:34:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("alee.in", "r", stdin);
^
user.cpp:35:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("alee.out", "w", stdout);
^
user.cpp:38:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ( "%d%d", &n, &m );
^
user.cpp:41:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf( "%d%d", &t, &v);
^
user.cpp:44:44: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf( "%d%d%d%d", &x1, &y1, &x2, &y2 );
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !