Borderou de evaluare (job #1385734)
Utilizator | Data | 12 martie 2015 11:54:15 | |
---|---|---|---|
Problema | Delay | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:20:15: error: ‘int time [16005]’ redeclared as different kind of symbol
int time[16005];
^
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/ios_base.h:39,
from /usr/include/c++/4.8/ios:42,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
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 ‘void DFS(int, int)’:
user.cpp:47:38: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < L[node].size() ; i++) {
^
user.cpp: In function ‘int main()’:
user.cpp:131:22: warning: pointer to a function used in arithmetic [-Wpointer-arith]
fin >> time[i];
^
user.cpp:131:22: error: cannot bind ‘std::basic_istream<char>’ lvalue to ‘std::basic_istream<char>&&’
In file included from /usr/include/c++/4.8/fstream:38:0,
from user.cpp:2:
/usr/include/c++/4.8/istream:872:5: error: initializing argument 1 of ‘std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&&, _Tp&) [with _CharT = char; _Traits = std::char_traits<char>; _Tp = long int(long int*)throw ()]’
operator>>(basic_istream<_CharT, _Traits>&& __is, _Tp& __x)
^
user.cpp:173:23: warning: pointer to a function used in arithmetic [-Wpointer-arith]
value = time[i];
^
user.cpp:173:23: error: invalid conversion from ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ to ‘int’ [-fpermissive]
user.cpp:196:40: warning: pointer to a function used in arithmetic [-Wpointer-arith]
value = newTime - time[node];
^
user.cpp:196:40: error: invalid operands of types ‘int’ and ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ to binary ‘operator-’
user.cpp:198:22: warning: pointer to a function used in arithmetic [-Wpointer-arith]
time[node] = newTime;
^
user.cpp:198:24: error: assignment of read-only location ‘*(time + ((sizetype)second))’
time[node] = newTime;
^
user.cpp:198:24: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment
user.cpp:224:59: warning: pointer to a function used in arithmetic [-Wpointer-arith]
fout << (query1 + query2 - 2 * queryLCA + time[lca]) << "\n";
^
user.cpp:224:59: warning: pointer to a function used in arithmetic [-Wpointer-arith]
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !