Borderou de evaluare (job #2243537)
Utilizator | Data | 20 septembrie 2018 20:02:47 | |
---|---|---|---|
Problema | Lacuri | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:8:9: error: ‘int y1’ redeclared as different kind of symbol
int x1, y1, x2, y2;
^~
In file included from /usr/include/features.h:367:0,
from /usr/include/x86_64-linux-gnu/c++/6/32/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/6/32/bits/c++config.h:507,
from /usr/include/c++/6/cassert:43,
from /usr/include/x86_64-linux-gnu/c++/6/32/bits/stdc++.h:33,
from user.cpp:1:
/usr/include/bits/mathcalls.h:251:1: note: previous declaration ‘double y1(double)’
__MATHCALL (y1,, (_Mdouble_));
^
user.cpp: In function ‘void Get_Number_Of_Lakes()’:
user.cpp:48:27: error: assignment of function ‘double y1(double)’
y1 = y2 = j;
^
user.cpp:48:27: error: cannot convert ‘int’ to ‘double(double) throw ()’ in assignment
user.cpp:52:35: error: invalid operands of types ‘int’ and ‘double(double) throw ()’ to binary ‘operator-’
if( x2 - x1 == y2 - y1)
~~~^~~~
user.cpp: In function ‘void Read()’:
user.cpp:14:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf( "%d", &n );
^
user.cpp:18:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf( "%d", &m[i][j] );
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !