记录详情

Compile Error

foo.cc:10:20: error: 'vector' has not been declared
     int numIslands(vector<vector<char>>& grid) {
                    ^~~~~~
foo.cc:10:26: error: expected ',' or '...' before '<' token
     int numIslands(vector<vector<char>>& grid) {
                          ^
foo.cc: In member function 'int Solution::numIslands(int)':
foo.cc:12:13: error: 'grid' was not declared in this scope
         row=grid.size();    
             ^~~~
foo.cc:12:13: note: suggested alternative: 'void'
         row=grid.size();    
             ^~~~
             void
foo.cc:24:21: error: 'queue' was not declared in this scope
                     queue<point> q;
                     ^~~~~
foo.cc:24:32: error: expected primary-expression before '>' token
                     queue<point> q;
                                ^
foo.cc:24:34: error: 'q' was not declared in this scope
                     queue<point> q;
                                  ^
正在同步测试数据,请稍后

信息

递交者
类型
递交
题目
2-7 有几个岛屿
语言
C++
递交时间
2020-12-07 22:15:27
评测时间
2020-12-07 22:15:27
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes