Borderou de evaluare (job #1088512)
Utilizator | Data | 20 ianuarie 2014 16:26:28 | |
---|---|---|---|
Problema | Matrice7 | Status | done |
Runda | ichb-scoala-2014-11-12 | Compilator | cpp |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:15:13: error: ‘int y1’ redeclared as different kind of symbol
int x1, x2, y1, y2, Ans, n, m;
^
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 ‘void lee(int, int)’:
user.cpp:19:9: warning: unused variable ‘Pas’ [-Wunused-variable]
int Pas = 0;
^
user.cpp: In function ‘int main()’:
user.cpp:50:44: 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:53:8: error: ISO C++ forbids incrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive]
++ y1;
^
user.cpp:53:8: error: lvalue required as increment operand
user.cpp:55:15: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
lee(x1, y1);
^
user.cpp:18:6: error: initializing argument 2 of ‘void lee(int, int)’ [-fpermissive]
void lee(int x, int y){
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !