Borderou de evaluare (job #2573794)
Utilizator | Data | 5 martie 2020 19:13:11 | |
---|---|---|---|
Problema | Online | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:11:20: error: 'int time [205][205]' redeclared as different kind of symbol
int time[maxn][maxn];
^
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/ostream:38,
from /usr/include/c++/6/iostream:39,
from main.cpp:2:
/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 'void unire(int, int)':
main.cpp:53:21: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[it1][it2] = cnt;
^
main.cpp:53:26: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[it1][it2] = cnt;
^
main.cpp:53:30: error: assignment of read-only location '*(time + (((sizetype)it1) + ((sizetype)it2)))'
time[it1][it2] = cnt;
^~~
main.cpp:53:30: error: cannot convert 'int' to 'time_t(time_t*) throw () {aka long int(long int*) throw ()}' in assignment
main.cpp:54:21: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[it2][it1] = cnt;
^
main.cpp:54:26: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[it2][it1] = cnt;
^
main.cpp:54:30: error: assignment of read-only location '*(time + (((sizetype)it2) + ((sizetype)it1)))'
time[it2][it1] = cnt;
^~~
main.cpp:54:30: error: cannot convert 'int' to 'time_t(time_t*) throw () {aka long int(long int*) throw ()}' in assignment
main.cpp: In function 'int main()':
main.cpp:117:26: warning: pointer to a function used in arithmetic [-Wpointer-arith]
int unif = time[x][y];
^
main.cpp:117:29: warning: pointer to a function used in arithmetic [-Wpointer-arith]
int unif = time[x][y];
^
main.cpp:117:29: error: invalid conversion from 'time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}' to 'int' [-fpermissive]
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !