money.cpp: In function 'std::ostream& operator<<(std::ostream&, std::vector<int>&)':
money.cpp:16:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < x.size(); i++) os << x[i] << sp;
^
money.cpp: In function 'std::ostream& operator<<(std::ostream&, std::vector<std::pair<int, int> >&)':
money.cpp:24:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < x.size(); i++) os << x[i] << endl;
^
money.cpp: In function 'int get(int)':
money.cpp:39:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
money.cpp: In function 'int main()':
money.cpp:45:7: warning: unused variable 't' [-Wunused-variable]
int t; scanf("%d", &a[i]);
^
money.cpp:50:6: warning: unused variable 'len' [-Wunused-variable]
int len = 1;
^
money.cpp:43:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
money.cpp:45:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int t; scanf("%d", &a[i]);
^