Borderou de evaluare (job #2753350)

Utilizator gruhtenZinnenberg Gruhten gruhten Data 22 mai 2021 16:00:01
Problema Checkin Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp:8:11: error: 'ghiseu time [1005]' redeclared as different kind of symbol }time[1005]; ^ 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 'bool OK(int)': main.cpp:24:29: warning: pointer to a function used in arithmetic [-Wpointer-arith] lim[i] = (t - time[i].b) / time[i].a; ^ main.cpp:24:31: error: request for member 'b' in '*(time + ((sizetype)i))', which is of non-class type 'time_t(time_t*) throw () {aka long int(long int*) throw ()}' lim[i] = (t - time[i].b) / time[i].a; ^ main.cpp:24:42: warning: pointer to a function used in arithmetic [-Wpointer-arith] lim[i] = (t - time[i].b) / time[i].a; ^ main.cpp:24:44: error: request for member 'a' in '*(time + ((sizetype)i))', which is of non-class type 'time_t(time_t*) throw () {aka long int(long int*) throw ()}' lim[i] = (t - time[i].b) / time[i].a; ^ main.cpp: In function 'int main()': main.cpp:50:22: warning: pointer to a function used in arithmetic [-Wpointer-arith] fin >> time[i].a >> time[i].b; ^ main.cpp:50:24: error: request for member 'a' in '*(time + ((sizetype)i))', which is of non-class type 'time_t(time_t*) throw () {aka long int(long int*) throw ()}' fin >> time[i].a >> time[i].b; ^ main.cpp:50:35: warning: pointer to a function used in arithmetic [-Wpointer-arith] fin >> time[i].a >> time[i].b; ^ main.cpp:50:37: error: request for member 'b' in '*(time + ((sizetype)i))', which is of non-class type 'time_t(time_t*) throw () {aka long int(long int*) throw ()}' fin >> time[i].a >> time[i].b; ^ main.cpp:52:17: warning: pointer to a function used in arithmetic [-Wpointer-arith] sort(time + 1, time + N + 1, cmp); ^ main.cpp:52:27: warning: pointer to a function used in arithmetic [-Wpointer-arith] sort(time + 1, time + N + 1, cmp); ^ main.cpp:52:31: warning: pointer to a function used in arithmetic [-Wpointer-arith] sort(time + 1, time + N + 1, cmp); ^ Non zero exit status: 1

Ceva nu functioneaza?