Compile Error

/in/foo.cc: In function 'int count(int)':
/in/foo.cc:9:7: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
       if(n%10==3)
       ^~
/in/foo.cc:11:6: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
      n/=10;
      ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:29:10: warning: unused variable 'sum' [-Wunused-variable]
  int A,B,sum=0,i;
          ^~~
/in/foo.cc:29:16: warning: unused variable 'i' [-Wunused-variable]
  int A,B,sum=0,i;
                ^
/in/foo.cc: At global scope:
/in/foo.cc:38:1: error: expected unqualified-id before 'return'
 return 0;
 ^~~~~~
/in/foo.cc:39:1: error: expected declaration before '}' token
 }
 ^

信息

递交者
类型
递交
题目
P1119 数字3出现的次数
语言
C++
递交时间
2021-12-12 11:18:48
评测时间
2021-12-12 11:18:48
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes