Borderou de evaluare (job #310805)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Squares | Compilator | cpp |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 19 aug. 2017 01:19:33 | Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:10: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:22:37: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:22:38: error: cannot convert ‘double (*)(double)throw ()’ to ‘double’ for argument ‘4’ to ‘double dist(double, double, double, double)’
user.cpp:24:31: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:24:46: error: cannot convert ‘double (*)(double)throw ()’ to ‘double’ for argument ‘2’ to ‘double dist(double, double, double, double)’
user.cpp: In function ‘int main()’:
user.cpp:40:9: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:40:13: error: assignment of read-only location ‘*(y1 + ((unsigned int)i))’
user.cpp:40:13: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:32:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
user.cpp:33:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
user.cpp:35:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
user.cpp:38:40: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]