제출 #713476

#제출 시각아이디문제언어결과실행 시간메모리
713476lamICC (CEOI16_icc)C++14
컴파일 에러
0 ms0 KiB

컴파일 시 표준 에러 (stderr) 메시지

icc.cpp: In function 'bool query2(int, int, std::vector<int>, std::vector<int>)':
icc.cpp:41:12: error: 'query' was not declared in this scope; did you mean 'query2'?
   41 |     return query(x,y,a,b);
      |            ^~~~~
      |            query2
icc.cpp: In function 'bool query3(int, int, std::vector<int>, std::vector<int>)':
icc.cpp:49:12: error: 'query' was not declared in this scope; did you mean 'query3'?
   49 |     return query(sz1,sz2,a,b);
      |            ^~~~~
      |            query3
icc.cpp:46:9: warning: unused variable 'x' [-Wunused-variable]
   46 |     int x=0,y=0;
      |         ^
icc.cpp:46:13: warning: unused variable 'y' [-Wunused-variable]
   46 |     int x=0,y=0;
      |             ^
icc.cpp: In function 'ii trace(std::vector<int>, std::vector<int>)':
icc.cpp:74:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   74 |     for (int i=0; i<tmp_le.size(); i++) if (i<=mid) tmp_le1.push_back(tmp_le[i]);
      |                   ~^~~~~~~~~~~~~~
icc.cpp: In function 'ii trace2(std::vector<int>, std::vector<int>)':
icc.cpp:90:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   90 |     for (int i=0; i<tmp_le.size(); i++) if (i<=mid) tmp_le1.push_back(tmp_le[i]);
      |                   ~^~~~~~~~~~~~~~
icc.cpp: In function 'void run(int)':
icc.cpp:106:13: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
  106 |             if (p[i]==i) tmp.push_back(i); chan[i].clear(), le[i].clear();
      |             ^~
icc.cpp:106:44: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
  106 |             if (p[i]==i) tmp.push_back(i); chan[i].clear(), le[i].clear();
      |                                            ^~~~
icc.cpp:129:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  129 |             for (int i=mid; i<le[level].size(); i++)
      |                             ~^~~~~~~~~~~~~~~~~
icc.cpp:131:30: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  131 |             for (int i=mid; i<chan[level].size(); i++)
      |                             ~^~~~~~~~~~~~~~~~~~~
icc.cpp:143:9: error: 'setRoad' was not declared in this scope
  143 |         setRoad(canh.ff, canh.ss);
      |         ^~~~~~~