Borderou de evaluare (job #2193886)
Utilizator | Data | 11 aprilie 2018 19:13:43 | |
---|---|---|---|
Problema | Numar | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:12:5: error: ‘int y1’ redeclared as different kind of symbol
int y1,y2;
^~
In file included from /usr/include/features.h:367:0,
from /usr/include/x86_64-linux-gnu/c++/6/32/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/6/32/bits/c++config.h:507,
from /usr/include/c++/6/cassert:43,
from /usr/include/x86_64-linux-gnu/c++/6/32/bits/stdc++.h:33,
from user.cpp:1:
/usr/include/bits/mathcalls.h:251:1: note: previous declaration ‘double y1(double)’
__MATHCALL (y1,, (_Mdouble_));
^
user.cpp: In function ‘int main()’:
user.cpp:28:19: warning: ISO C++ forbids incrementing a pointer of type ‘double (*)(double) throw ()’ [-Wpointer-arith]
y1++;
^~
user.cpp:28:19: error: lvalue required as increment operand
user.cpp:29:22: error: invalid types ‘info [100005][double(double) throw ()]’ for array subscript
v1[y1].st=x/2;
^
user.cpp:30:22: error: invalid types ‘info [100005][double(double) throw ()]’ for array subscript
v1[y1].l=l;
^
user.cpp:40:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
for(int i=1;i<=y1;i++)
^~
user.cpp:17:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("numar.in","r",stdin);
^
user.cpp:18:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("numar.out","w",stdout);
^
user.cpp:19:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&S);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !