divyang4481 / mipt-hw

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

task08_DFS (Анастасьев) #213

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
anastasyev_daniil/task_07_DFS/

Original issue reported on code.google.com by dan.anas...@gmail.com on 21 Apr 2013 at 9:11

GoogleCodeExporter commented 9 years ago

Original comment by dan.anas...@gmail.com on 22 Apr 2013 at 4:44

GoogleCodeExporter commented 9 years ago
0. Warnings:
DFS_list.cpp: In function 'void DFSVisit(std::vector<std::vector<TNode*> >&, 
int, int&)':
DFS_list.cpp:21:32: warning: comparison between signed and unsigned integer 
expressions [-Wsign-compare]
DFS_list.cpp: In function 'void DFS(std::vector<std::vector<TNode*> >&, int)':
DFS_list.cpp:36:29: warning: comparison between signed and unsigned integer 
expressions [-Wsign-compare]
DFS_list.cpp:43:29: warning: comparison between signed and unsigned integer 
expressions [-Wsign-compare]
DFS_list.cpp:49:29: warning: comparison between signed and unsigned integer 
expressions [-Wsign-compare]

Решение верное.
Приму, как исправите warnings.

Original comment by aivyu...@gmail.com on 28 Apr 2013 at 7:43

GoogleCodeExporter commented 9 years ago

Original comment by dan.anas...@gmail.com on 4 May 2013 at 9:37

GoogleCodeExporter commented 9 years ago

Original comment by dan.anas...@gmail.com on 4 May 2013 at 9:55

GoogleCodeExporter commented 9 years ago
Появились другие варнинги:
DFS_list.cpp: In function ‘int main()’:
DFS_list.cpp:63: warning: format ‘%d’ expects type ‘int*’, but argument 
3 has type ‘size_t*’
DFS_list.cpp:63: warning: format ‘%d’ expects type ‘int*’, but argument 
4 has type ‘size_t*’
DFS_list.cpp:63: warning: format ‘%d’ expects type ‘int*’, but argument 
3 has type ‘size_t*’
DFS_list.cpp:63: warning: format ‘%d’ expects type ‘int*’, but argument 
4 has type ‘size_t*’
DFS_list.cpp:65: error: ‘N’ cannot appear in a constant-expression
DFS_list.cpp:65: error: a function call cannot appear in a constant-expression
DFS_list.cpp:65: error: ‘>>’ should be ‘> >’ within a nested template 
argument list
DFS_list.cpp:80: warning: format ‘%d’ expects type ‘int*’, but argument 
3 has type ‘size_t*’
DFS_list.cpp:80: warning: format ‘%d’ expects type ‘int*’, but argument 
4 has type ‘size_t*’
DFS_list.cpp:80: warning: format ‘%d’ expects type ‘int*’, but argument 
3 has type ‘size_t*’
DFS_list.cpp:80: warning: format ‘%d’ expects type ‘int*’, but argument 
4 has type ‘size_t*’

Исправляйте.

Original comment by aivyu...@gmail.com on 10 May 2013 at 8:24

GoogleCodeExporter commented 9 years ago

Original comment by dan.anas...@gmail.com on 15 May 2013 at 2:01

GoogleCodeExporter commented 9 years ago

Original comment by dan.anas...@gmail.com on 16 May 2013 at 7:09

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

Original comment by aivyu...@gmail.com on 19 May 2013 at 10:55