Job 15340

Owner
Mitja Žalik
Problem
nc1c2
Source
0.52KB
Result
Wrong answer

Compiler output

prog.cpp: In function 'int string_to_int(std::string)':
prog.cpp:8:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0; i<s.size(); i++){
                ^
prog.cpp: In function 'int main()':
prog.cpp:32:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int i=0; i<s.size(); i++){
                 ^
prog.cpp:17:6: warning: unused variable 'st' [-Wunused-variable]
  int st;
      ^
prog.cpp:19:7: warning: unused variable 'prva' [-Wunused-variable]
  bool prva;
       ^

Results

Test numberResultTime
1Wrong answer0.2590s
Questions?

Sponsors Gold