Borderou de evaluare (job #310840)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Squares | Compilator | cpp |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 19 aug. 2017 14:39:17 | Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:8:21: error: ‘double y1 [15]’ redeclared as different kind of symbol
/usr/include/i386-linux-gnu/bits/mathcalls.h:243:1: error: previous declaration of ‘double y1(double)’
user.cpp: In function ‘bool inSquare(double, double, int)’:
user.cpp:21:37: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:21:38: error: cannot convert ‘double (*)(double)throw ()’ to ‘double’ for argument ‘4’ to ‘double dist(double, double, double, double)’
user.cpp: In function ‘int main()’:
user.cpp:39:9: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:39:13: error: assignment of read-only location ‘*(y1 + ((unsigned int)i))’
user.cpp:39:13: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:48:29: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:48:44: error: cannot convert ‘double (*)(double)throw ()’ to ‘double’ for argument ‘2’ to ‘double dist(double, double, double, double)’
user.cpp:31:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
user.cpp:32:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
user.cpp:34:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
user.cpp:37:40: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]