/in/foo.cc: In function 'std::vector<int> add(std::vector<int>&, std::vector<int>&)':
/in/foo.cc:16:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < a.size() || i < b.size(); i++)
~~^~~~~~~~~~
/in/foo.cc:16:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < a.size() || i < b.size(); i++)
~~^~~~~~~~~~
/in/foo.cc:18:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (i < a.size()) t += a[i];
~~^~~~~~~~~~
/in/foo.cc:19:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (i < b.size()) t += b[i];
~~^~~~~~~~~~
/in/foo.cc: In function 'std::vector<int> sub(std::vector<int>&, std::vector<int>&)':
/in/foo.cc:33:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < a.size(); i++)
~~^~~~~~~~~~
/in/foo.cc:36:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (i < b.size()) t -= b[i]; // 有b就减
~~^~~~~~~~~~
/in/foo.cc: In function 'std::vector<int> mul(std::vector<int>&, std::vector<int>&)':
/in/foo.cc:79:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < A.size(); i++)
~~^~~~~~~~~~
/in/foo.cc:80:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int j = 0; j < B.size(); j++)
~~^~~~~~~~~~
/in/foo.cc:83:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0, t = 0; i < C.size() || t; i++)
~~^~~~~~~~~~
/in/foo.cc:86:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (i >= C.size()) C.push_back(t % 10);
~~^~~~~~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:136:6: warning: unused variable 'lenC' [-Wunused-variable]
int lenC = 0;
^~~~