Borderou de evaluare (job #86521)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Inversiuni | Compilator | cpp |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 10 nov. 2014 16:54:25 | Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:5:22: error: ‘inv’ has not been declared
user.cpp: In function ‘void update(int, int)’:
user.cpp:7:37: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
user.cpp: In function ‘int query(int)’:
user.cpp:13:33: warning: suggest parentheses around arithmetic in operand of ‘^’ [-Wparentheses]
user.cpp: In function ‘int main()’:
user.cpp:21:18: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat]
user.cpp:23:25: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat]
user.cpp:30:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat]
user.cpp:20:24: warning: unused variable ‘k’ [-Wunused-variable]
user.cpp:18:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
user.cpp:19:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
user.cpp:21:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
user.cpp:23:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]