Borderou de evaluare (job #310804)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Squares | Compilator | cpp |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 19 aug. 2017 01:14:47 | Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:10:18: error: ‘int 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:53: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:22:53: error: invalid cast from type ‘double (*)(double)throw ()’ to type ‘double’
user.cpp:24:47: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:24:47: error: invalid cast from type ‘double (*)(double)throw ()’ to type ‘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]