Borderou de evaluare (job #2287431)
Utilizator | Data | 21 noiembrie 2018 21:16:10 | |
---|---|---|---|
Problema | Project management | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:12:19: error: 'int time [102]' redeclared as different kind of symbol
int time[N_MAX + 2], timeEnd[N_MAX + 2];
^
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 'void dfs(int, int)':
main.cpp:31:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(vis[it] == grTrans[it].size()) {
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'void sortTopologica()':
main.cpp:39:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(vis[i] == grTrans[i].size())
~~~~~~~^~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'void dfsTimeMin(int)':
main.cpp:47:46: warning: pointer to a function used in arithmetic [-Wpointer-arith]
timeEnd[node] = timeMin[node] + time[node];
^
main.cpp:47:46: warning: pointer to a function used in arithmetic [-Wpointer-arith]
main.cpp:47:35: error: invalid conversion from 'time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}' to 'int' [-fpermissive]
timeEnd[node] = timeMin[node] + time[node];
~~~~~~~~~~~~~~^~~~~~~~~~~~
main.cpp:55:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(vis[it] == grTrans[it].size())
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
main.cpp: In function 'void dfsTimeMax(int)':
main.cpp:67:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(vis[it] == gr[it].size())
~~~~~~~~^~~~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:75:21: warning: pointer to a function used in arithmetic [-Wpointer-arith]
in >> time[i];
^
main.cpp:75:12: error: no match for 'operator>>' (operand types are 'std::ifstream {aka std::basic_ifstream<char>}' and 'time_t(time_t*) throw () {aka long int(long int*) throw ()}')
in >> time[i];
~~~^~~~~~~~~~
In file included from /usr/include/c++/6/fstream:38:0,
from main.cpp:1:
/usr/include/c++/6/istream:120:7: note: candidate: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::basic_istream<_CharT, _Traits>::__istream_type& (*)(std::basic_istream<_CharT, _Traits>::__istream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>] <near match>
operator>>(__istream_type& (*__pf)(__istream_type&))
^~~~~~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !