numbers.cpp: In function 'int brute()':
numbers.cpp:20:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 1 ; j < s.size() ; ++j){
~~^~~~~~~~~~
numbers.cpp: In function 'll solve()':
numbers.cpp:54:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 1 ; i <= s.size() ; ++i)
~~^~~~~~~~~~~
numbers.cpp:59:53: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
ares += cal(s.size() - i , 10 , 10 , (i != s.size()));
~~^~~~~~~~~~~
numbers.cpp:64:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 1 ; i <= s.size() ; ++i)
~~^~~~~~~~~~~
numbers.cpp:69:49: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
bres += cal(s.size() - i , 10 , 10 , (i != s.size() ? 1 : 0));
~~^~~~~~~~~~~
numbers.cpp: In function 'int main()':
numbers.cpp:79:44: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen(taskname".INP", "r",stdin) ,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
freopen(taskname".OUT", "w",stdout);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
numbers.cpp:79:44: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]