Borderou de evaluare (job #2555850)
Utilizator | Data | 24 februarie 2020 13:45:55 | |
---|---|---|---|
Problema | Albinuta | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:9:16: error: 'int time [52][180002]' redeclared as different kind of symbol
int time[N][MAX],who[MAX];
^
In file included from /usr/include/pthread.h:24:0,
from /usr/include/x86_64-linux-gnu/c++/6/bits/gthr-default.h:35,
from /usr/include/x86_64-linux-gnu/c++/6/bits/gthr.h:148,
from /usr/include/c++/6/ext/atomicity.h:35,
from /usr/include/c++/6/bits/ios_base.h:39,
from /usr/include/c++/6/ios:42,
from /usr/include/c++/6/istream:38,
from /usr/include/c++/6/fstream:38,
from main.cpp:1:
/usr/include/time.h:192:15: note: previous declaration 'time_t time(time_t*)'
extern time_t time (time_t *__timer) __THROW;
^~~~
main.cpp: In function 'int main()':
main.cpp:39:11: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[1][1]=1,who[1]=1;
^
main.cpp:39:14: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[1][1]=1,who[1]=1;
^
main.cpp:39:16: error: assignment of read-only location '*(time + 2u)'
time[1][1]=1,who[1]=1;
^
main.cpp:39:16: error: cannot convert 'int' to 'time_t(time_t*) throw () {aka long int(long int*) throw ()}' in assignment
main.cpp:51:19: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(!time[x][t1])///nu incepe inca ciclul
^
main.cpp:51:23: warning: pointer to a function used in arithmetic [-Wpointer-arith]
if(!time[x][t1])///nu incepe inca ciclul
^
main.cpp:53:19: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[x][t1]=t;
^
main.cpp:53:23: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[x][t1]=t;
^
main.cpp:53:25: error: assignment of read-only location '*(time + (((sizetype)x) + ((sizetype)t1)))'
time[x][t1]=t;
^
main.cpp:53:25: error: cannot convert 'int' to 'time_t(time_t*) throw () {aka long int(long int*) throw ()}' in assignment
main.cpp:60:24: warning: pointer to a function used in arithmetic [-Wpointer-arith]
int repeat=t-time[x][t1]+1;///lungimea ciclului
^
main.cpp:60:28: warning: pointer to a function used in arithmetic [-Wpointer-arith]
int repeat=t-time[x][t1]+1;///lungimea ciclului
^
main.cpp:60:17: error: invalid operands of types 'int' and 'time_t(time_t*) throw () {aka long int(long int*) throw ()}' to binary 'operator-'
int repeat=t-time[x][t1]+1;///lungimea ciclului
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !