Borderou de evaluare (job #1677337)
Utilizator | Data | 6 aprilie 2016 15:11:30 | |
---|---|---|---|
Problema | Pioni 2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:5:8: error: ‘int y1’ redeclared as different kind of symbol
int x1,y1,xo,k,i,n,m,T,sg[20009],K[20009];
^
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 ‘void calc(int)’:
user.cpp:26:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i=1;i<sgg.size();i++)
^
user.cpp: In function ‘int main()’:
user.cpp:40:19: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘double (*)(double)throw ()’ [-Wformat=]
scanf("%d",&y1);
^
user.cpp:41:23: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘std::vector<int>::value_type {aka int}’ [-fpermissive]
v[x1].push_back(y1);
^
In file included from /usr/include/c++/4.8/vector:64:0,
from user.cpp:2:
/usr/include/c++/4.8/bits/stl_vector.h:919:7: error: initializing argument 1 of ‘void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::value_type = int]’ [-fpermissive]
push_back(value_type&& __x)
^
user.cpp:32:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("pioni2.in","r",stdin);
^
user.cpp:33:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("pioni2.out","w",stdout);
^
user.cpp:34:15: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&T);
^
user.cpp:35:15: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:36:15: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&m);
^
user.cpp:39:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&x1);
^
user.cpp:40:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&y1);
^
user.cpp:48:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&k);
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !