Closed GoogleCodeExporter closed 9 years ago
0. Warnings:
SCC.cpp: In function ‘void read_graph(std::vector<std::vector<int,
std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > >
>&, std::vector<std::vector<int, std::allocator<int> >,
std::allocator<std::vector<int, std::allocator<int> > > >&, std::vector<clr,
std::allocator<clr> >&, std::vector<int, std::allocator<int> >&)’:
SCC.cpp:18: warning: format ‘%d’ expects type ‘int*’, but argument 3
has type ‘size_t*’
SCC.cpp:18: warning: format ‘%d’ expects type ‘int*’, but argument 4
has type ‘size_t*’
SCC.cpp:18: warning: format ‘%d’ expects type ‘int*’, but argument 3
has type ‘size_t*’
SCC.cpp:18: warning: format ‘%d’ expects type ‘int*’, but argument 4
has type ‘size_t*’
SCC.cpp: In function ‘void scc(std::vector<std::vector<int,
std::allocator<int> >, std::allocator<std::vector<int, std::allocator<int> > >
>&, std::vector<std::vector<int, std::allocator<int> >,
std::allocator<std::vector<int, std::allocator<int> > > >&, std::vector<clr,
std::allocator<clr> >&, std::vector<int, std::allocator<int> >&, size_t&)’:
SCC.cpp:62: warning: comparison between signed and unsigned integer expressions
SCC.cpp: In function ‘void print_vector(std::vector<int, std::allocator<int>
>&, size_t)’:
SCC.cpp:73: warning: comparison between signed and unsigned integer expressions
SCC.cpp:73: warning: format ‘%d’ expects type ‘int’, but argument 3 has
type ‘long unsigned int’
SCC.cpp:73: warning: format ‘%d’ expects type ‘int’, but argument 3 has
type ‘long unsigned int’
Вы вообще смотрите warnings, прежде чем сдавать
задачу?
Решение верное. Приму, когда исправите warnings.
Original comment by aivyu...@gmail.com
on 10 May 2013 at 11:00
Исправил вроде, скомпилировал CodeBlocks в g++
Original comment by dmitryba...@gmail.com
on 18 May 2013 at 11:09
Решение принято.
Минус 20% за сдачу после дедлайна.
Original comment by aivyu...@gmail.com
on 19 May 2013 at 11:47
Original issue reported on code.google.com by
dmitryba...@gmail.com
on 2 May 2013 at 12:56