Borderou de evaluare (job #1498998)

Utilizator mirupetPetcan Miruna mirupet Data 9 octombrie 2015 23:55:10
Problema Lupul Urias si Rau Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:6:18: error: ‘int time’ redeclared as different kind of symbol int N, X, L, NR, time; ^ In file included from /usr/include/pthread.h:26:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/gthr-default.h:35, from /usr/include/i386-linux-gnu/c++/4.8/bits/gthr.h:148, from /usr/include/c++/4.8/ext/atomicity.h:33, from /usr/include/c++/4.8/bits/basic_string.h:39, from /usr/include/c++/4.8/string:52, from /usr/include/c++/4.8/random:41, from /usr/include/c++/4.8/bits/stl_algo.h:65, from /usr/include/c++/4.8/algorithm:62, from user.cpp:2: /usr/include/time.h:186:15: error: previous declaration of ‘time_t time(time_t*)’ extern time_t time (time_t *__timer) __THROW; ^ user.cpp: In function ‘int main()’: user.cpp:46:29: error: invalid operands of types ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ and ‘int’ to binary ‘operator*’ if (X >= time * L + v[w[i]].x) ^ user.cpp:50:21: error: ISO C++ forbids incrementing a pointer of type ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ [-fpermissive] time++; ^ user.cpp:50:21: error: lvalue required as increment operand user.cpp:65:26: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%ld", sol); ^ user.cpp: In function ‘void sift(int)’: user.cpp:80:9: warning: unused variable ‘fs’ [-Wunused-variable] int fs = 2 * i , fd = 2 * i + 1 , good = i; ^ user.cpp:80:22: warning: unused variable ‘fd’ [-Wunused-variable] int fs = 2 * i , fd = 2 * i + 1 , good = i; ^ user.cpp: In function ‘int main()’: user.cpp:29:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("lupu.in","r",stdin); ^ user.cpp:30:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("lupu.out","w",stdout); ^ user.cpp:34:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d", &N, &X, &L); ^ user.cpp:38:44: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &v[i].x, &v[i].y); ^

Ceva nu functioneaza?