Borderou de evaluare (job #2782903)
Utilizator | Dorde Matei Dorde | Data | 13 octombrie 2021 13:49:04 |
---|---|---|---|
Problema | Dame | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:10:9: error: 'int time' redeclared as different kind of entity
10 | int n , time;
| ^~~~
In file included from /usr/include/pthread.h:23,
from /usr/include/x86_64-linux-gnu/c++/10/bits/gthr-default.h:35,
from /usr/include/x86_64-linux-gnu/c++/10/bits/gthr.h:148,
from /usr/include/c++/10/ext/atomicity.h:35,
from /usr/include/c++/10/bits/ios_base.h:39,
from /usr/include/c++/10/ios:42,
from /usr/include/c++/10/istream:38,
from /usr/include/c++/10/fstream:38,
from main.cpp:1:
/usr/include/time.h:75:15: note: previous declaration 'time_t time(time_t*)'
75 | extern time_t time (time_t *__timer) __THROW;
| ^~~~
main.cpp: In function 'bool check2(int, int)':
main.cpp:36:42: warning: ISO C++ forbids incrementing a pointer of type 'time_t (*)(time_t*) throw ()' {aka 'long int (*)(long int*)'} [-Wpointer-arith]
36 | for(int i = 1 ; i <= col ; ++ i , ++ time)
| ^~~~
main.cpp:36:42: error: lvalue required as increment operand
main.cpp:40:60: warning: ISO C++ forbids incrementing a pointer of type 'time_t (*)(time_t*) throw ()' {aka 'long int (*)(long int*)'} [-Wpointer-arith]
40 | for(int i = line , j = col ; i && j ; -- i , -- j , ++ time)
| ^~~~
main.cpp:40:60: error: lvalue required as increment operand
main.cpp:44:65: warning: ISO C++ forbids incrementing a pointer of type 'time_t (*)(time_t*) throw ()' {aka 'long int (*)(long int*)'} [-Wpointer-arith]
44 | for(int i = line , j = col ; i <= n && j ; ++ i , -- j , ++ time)
| ^~~~
main.cpp:44:65: error: lvalue required as increment operand
main.cpp: In function 'void bkt(int)':
main.cpp:109:40: warning: ISO C++ forbids incrementing a pointer of type 'time_t (*)(time_t*) throw ()' {aka 'long int (*)(long int*)'} [-Wpointer-arith]
109 | for(int i = n - 1 ; i ; -- i , ++ time)
| ^~~~
main.cpp:109:40: error: lvalue required as increment operand
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !