Borderou de evaluare (job #1664401)
Utilizator | Data | 26 martie 2016 13:03:40 | |
---|---|---|---|
Problema | Arcas | Status | done |
Runda | AGM 2016 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:11:17: error: ‘int y1’ redeclared as different kind of symbol
int n , m , x , y1 , y2 , y , p , maxY = 0;
^
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:57:49: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘double (*)(double)throw ()’ [-Wformat=]
fscanf(f , "%d %d %d\n" , &x , &y1 , &y2);
^
user.cpp:58:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(y1 > maxY) maxY = y1;
^
user.cpp:58:28: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
if(y1 > maxY) maxY = y1;
^
user.cpp:60:40: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
target[i].x = x , target[i].y1 = y1 , target[i].y2 = y2;
^
user.cpp:54:36: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f , "%d %d\n" , &m , &n);
^
user.cpp:57:50: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f , "%d %d %d\n" , &x , &y1 , &y2);
^
user.cpp:78:47: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f , "%d %d %d\n", &x , &y , &p);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !