divyang4481 / mipt-hw

Automatically exported from code.google.com/p/mipt-hw
0 stars 0 forks source link

task10_SCCs #230

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
/baldin_dima/task10_SCC/

Original issue reported on code.google.com by dmitryba...@gmail.com on 2 May 2013 at 12:56

GoogleCodeExporter commented 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

GoogleCodeExporter commented 9 years ago
Исправил вроде, скомпилировал CodeBlocks в g++

Original comment by dmitryba...@gmail.com on 18 May 2013 at 11:09

GoogleCodeExporter commented 9 years ago
Решение принято.

Минус 20% за сдачу после дедлайна.

Original comment by aivyu...@gmail.com on 19 May 2013 at 11:47