Borderou de evaluare (job #1136696)
Utilizator | Data | 9 martie 2014 11:01:20 | |
---|---|---|---|
Problema | Dragonas | Status | done |
Runda | ONIS 2014, Runda 3 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:9:14: error: ‘int y1’ redeclared as different kind of symbol
int T,n,m,x1,y1,x2,y2,t1,t2;
^
In file included from /usr/include/features.h:346:0,
from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/os_defines.h:39,
from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/c++config.h:420,
from /usr/local/include/c++/4.8.0/cstdio:41,
from user.cpp:1:
/usr/include/bits/mathcalls.h:242:1: error: previous declaration of ‘double y1(double)’
__MATHCALL (y1,, (_Mdouble_));
^
user.cpp: In function ‘int main()’:
user.cpp:26:19: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘double (*)(double)throw ()’ [-Wformat=]
scanf("%d",&y1);
^
user.cpp:31:20: warning: pointer to a function used in arithmetic [-Wpointer-arith]
t2=n-x2+mod(y1-y2);
^
user.cpp:31:19: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
t2=n-x2+mod(y1-y2);
^
user.cpp:10:5: error: initializing argument 1 of ‘int mod(int)’ [-fpermissive]
int mod(int x)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !