Borderou de evaluare (job #2664497)
Utilizator | Data | 28 octombrie 2020 18:48:42 | |
---|---|---|---|
Problema | Mayonaka | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:74:38: error: 'int y1' redeclared as different kind of symbol
int n,m,ultel,R[100005],V[100005],x1,y1,s1,g1;
^~
In file included from /usr/include/features.h:367:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/6/bits/c++config.h:507,
from /usr/include/c++/6/cassert:43,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:33,
from main.cpp:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:251:1: note: previous declaration 'double y1(double)'
__MATHCALL (y1,, (_Mdouble_));
^
main.cpp: In function 'int main()':
main.cpp:103:17: error: assignment of function 'double y1(double)'
y1=C[i].y;
^
main.cpp:103:17: error: cannot convert 'int' to 'double(double) throw ()' in assignment
main.cpp:107:34: warning: pointer to a function used in arithmetic [-Wpointer-arith]
V[min(n+1, x1 + ( ( y1 - x1 ) / s1 + 1 ) * s1 ) ] -= g1;
^~
main.cpp:107:39: error: invalid operands of types 'double (*)(double) throw ()' and 'int' to binary 'operator/'
V[min(n+1, x1 + ( ( y1 - x1 ) / s1 + 1 ) * s1 ) ] -= g1;
~~~~~~~~~~~~^~~~
main.cpp: In member function 'char InParser::read_ch()':
main.cpp:23:29: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fread(buff, 1, 4096, fin);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !