Borderou de evaluare (job #1320134)

Utilizator cipriancxFMI - gr143 Timofte Ciprian cipriancx Data 17 ianuarie 2015 17:22:43
Problema Grid Status done
Runda Teme Pregatire ACM Unibuc 2014, Anul I Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:6:17: error: ‘std::list<int> rand [3]’ redeclared as different kind of symbol list<int> rand[3]; ^ In file included from /usr/include/c++/4.8/cstdlib:72:0, from /usr/include/c++/4.8/ext/string_conversions.h:41, from /usr/include/c++/4.8/bits/basic_string.h:2815, from /usr/include/c++/4.8/string:52, from /usr/include/c++/4.8/bits/locale_classes.h:40, from /usr/include/c++/4.8/bits/ios_base.h:41, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from user.cpp:1: /usr/include/stdlib.h:380:12: error: previous declaration of ‘int rand()’ extern int rand (void) __THROW; ^ user.cpp: In function ‘int main()’: user.cpp:15:33: warning: pointer to a function used in arithmetic [-Wpointer-arith] for(int i=1; i<=n; i++)rand[0].push_back(aux++); ^ user.cpp:15:35: error: request for member ‘push_back’ in ‘rand’, which is of non-class type ‘int()throw ()’ for(int i=1; i<=n; i++)rand[0].push_back(aux++); ^ user.cpp:16:34: warning: pointer to a function used in arithmetic [-Wpointer-arith] for(int i=1; i<=n; i++)rand[1].push_back(aux++); ^ user.cpp:16:36: error: request for member ‘push_back’ in ‘*(rand + 1u)’, which is of non-class type ‘int()throw ()’ for(int i=1; i<=n; i++)rand[1].push_back(aux++); ^ user.cpp:17:34: warning: pointer to a function used in arithmetic [-Wpointer-arith] for(int i=1; i<=n; i++)rand[2].push_back(aux++); ^ user.cpp:17:36: error: request for member ‘push_back’ in ‘*(rand + 2u)’, which is of non-class type ‘int()throw ()’ for(int i=1; i<=n; i++)rand[2].push_back(aux++); ^ user.cpp:22:14: warning: pointer to a function used in arithmetic [-Wpointer-arith] start=rand[a1].begin(); ^ user.cpp:22:16: error: request for member ‘begin’ in ‘*(rand + ((sizetype)a1))’, which is of non-class type ‘int()throw ()’ start=rand[a1].begin(); ^ user.cpp:26:8: warning: pointer to a function used in arithmetic [-Wpointer-arith] rand[a1].erase(start); ^ user.cpp:26:10: error: request for member ‘erase’ in ‘*(rand + ((sizetype)a1))’, which is of non-class type ‘int()throw ()’ rand[a1].erase(start); ^ user.cpp:27:15: warning: pointer to a function used in arithmetic [-Wpointer-arith] finish=rand[a2].begin(); ^

Ceva nu functioneaza?