Borderou de evaluare (job #1326997)
Utilizator | Data | 26 ianuarie 2015 11:56:51 | |
---|---|---|---|
Problema | Perspic | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:13:46: error: ‘int y1’ redeclared as different kind of symbol
int i , j , n , m , tip , crt , x , y , x1 , y1 , x2 , y2 , p , first , NR , aux;
^
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 ‘int main()’:
user.cpp:118:57: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘double (*)(double)throw ()’ [-Wformat=]
scanf("%d %d %d %d\n", &x1 , &y1 , &x2 , &y2);
^
user.cpp:120:31: error: invalid types ‘int [110][double(double)throw ()]’ for array subscript
aux = b[x1][y1];
^
user.cpp:121:25: error: invalid types ‘int [110][double(double)throw ()]’ for array subscript
b[x1][y1] = b[x2][y2];
^
user.cpp:78:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("perspic.in","r",stdin);
^
user.cpp:79:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("perspic.out","w",stdout);
^
user.cpp:81:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d\n", &n , &m);
^
user.cpp:89:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%c ", &c);
^
user.cpp:97:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d\n", &x , &y);
^
user.cpp:108:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d\n", &x , &y);
^
user.cpp:118:58: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d %d\n", &x1 , &y1 , &x2 , &y2);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !