记录详情

Compile Error

foo.cc:8:1: error: stray '\343' in program
   int num[10] = {0};
 ^
foo.cc:8:2: error: stray '\200' in program
   int num[10] = {0};
  ^
foo.cc:8:3: error: stray '\200' in program
   int num[10] = {0};
   ^
foo.cc:8:4: error: stray '\343' in program
   int num[10] = {0};
    ^
foo.cc:8:5: error: stray '\200' in program
   int num[10] = {0};
     ^
foo.cc:8:6: error: stray '\200' in program
   int num[10] = {0};
      ^
foo.cc:9:1: error: stray '\343' in program
   for(int i = 1; i<=n;i++){
 ^
foo.cc:9:2: error: stray '\200' in program
   for(int i = 1; i<=n;i++){
  ^
foo.cc:9:3: error: stray '\200' in program
   for(int i = 1; i<=n;i++){
   ^
foo.cc:9:4: error: stray '\343' in program
   for(int i = 1; i<=n;i++){
    ^
foo.cc:9:5: error: stray '\200' in program
   for(int i = 1; i<=n;i++){
     ^
foo.cc:9:6: error: stray '\200' in program
   for(int i = 1; i<=n;i++){
      ^
foo.cc:10:1: error: stray '\343' in program
     stringstream ss;
 ^
foo.cc:10:2: error: stray '\200' in program
     stringstream ss;
  ^
foo.cc:10:3: error: stray '\200' in program
     stringstream ss;
   ^
foo.cc:10:4: error: stray '\343' in program
     stringstream ss;
    ^
foo.cc:10:5: error: stray '\200' in program
     stringstream ss;
     ^
foo.cc:10:6: error: stray '\200' in program
     stringstream ss;
      ^
foo.cc:10:7: error: stray '\343' in program
     stringstream ss;
       ^
foo.cc:10:8: error: stray '\200' in program
     stringstream ss;
        ^
foo.cc:10:9: error: stray '\200' in program
     stringstream ss;
         ^
foo.cc:10:10: error: stray '\343' in program
     stringstream ss;
          ^
foo.cc:10:11: error: stray '\200' in program
     stringstream ss;
           ^
foo.cc:10:12: error: stray '\200' in program
     stringstream ss;
            ^
foo.cc:11:1: error: stray '\343' in program
     ss << i;
 ^
foo.cc:11:2: error: stray '\200' in program
     ss << i;
  ^
foo.cc:11:3: error: stray '\200' in program
     ss << i;
   ^
foo.cc:11:4: error: stray '\343' in program
     ss << i;
    ^
foo.cc:11:5: error: stray '\200' in program
     ss << i;
     ^
foo.cc:11:6: error: stray '\200' in program
     ss << i;
      ^
foo.cc:11:7: error: stray '\343' in program
     ss << i;
       ^
foo.cc:11:8: error: stray '\200' in program
     ss << i;
        ^
foo.cc:11:9: error: stray '\200' in program
     ss << i;
         ^
foo.cc:11:10: error: stray '\343' in program
     ss << i;
          ^
foo.cc:11:11: error: stray '\200' in program
     ss << i;
           ^
foo.cc:11:12: error: stray '\200' in program
     ss << i;
            ^
foo.cc:12:1: error: stray '\343' in program
     string s1 = ss.str();
 ^
foo.cc:12:2: error: stray '\200' in program
     string s1 = ss.str();
  ^
foo.cc:12:3: error: stray '\200' in program
     string s1 = ss.str();
   ^
foo.cc:12:4: error: stray '\343' in program
     string s1 = ss.str();
    ^
foo.cc:12:5: error: stray '\200' in program
     string s1 = ss.str();
     ^
foo.cc:12:6: error: stray '\200' in program
     string s1 = ss.str();
      ^
foo.cc:12:7: error: stray '\343' in program
     string s1 = ss.str();
       ^
foo.cc:12:8: error: stray '\200' in program
     string s1 = ss.str();
        ^
foo.cc:12:9: error: stray '\200' in program
     string s1 = ss.str();
         ^
foo.cc:12:10: error: stray '\343' in program
     string s1 = ss.str();
          ^
foo.cc:12:11: error: stray '\200' in program
     string s1 = ss.str();
           ^
foo.cc:12:12: error: stray '\200' in program
     string s1 = ss.str();
            ^
foo.cc:13:1: error: stray '\343' in program
     cout<<endl;
 ^
foo.cc:13:2: error: stray '\200' in program
     cout<<endl;
  ^
foo.cc:13:3: error: stray '\200' in program
     cout<<endl;
   ^
foo.cc:13:4: error: stray '\343' in program
     cout<<endl;
    ^
foo.cc:13:5: error: stray '\200' in program
     cout<<endl;
     ^
foo.cc:13:6: error: stray '\200' in program
     cout<<endl;
      ^
foo.cc:13:7: error: stray '\343' in program
     cout<<endl;
       ^
foo.cc:13:8: error: stray '\200' in program
     cout<<endl;
        ^
foo.cc:13:9: error: stray '\200' in program
     cout<<endl;
         ^
foo.cc:13:10: error: stray '\343' in program
     cout<<endl;
          ^
foo.cc:13:11: error: stray '\200' in program
     cout<<endl;
           ^
foo.cc:13:12: error: stray '\200' in program
     cout<<endl;
            ^
foo.cc:14:1: error: stray '\343' in program
     for (int j = 0;j<s1.length();j++){
 ^
foo.cc:14:2: error: stray '\200' in program
     for (int j = 0;j<s1.length();j++){
  ^
foo.cc:14:3: error: stray '\200' in program
     for (int j = 0;j<s1.length();j++){
   ^
foo.cc:14:4: error: stray '\343' in program
     for (int j = 0;j<s1.length();j++){
    ^
foo.cc:14:5: error: stray '\200' in program
     for (int j = 0;j<s1.length();j++){
     ^
foo.cc:14:6: error: stray '\200' in program
     for (int j = 0;j<s1.length();j++){
      ^
foo.cc:14:7: error: stray '\343' in program
     for (int j = 0;j<s1.length();j++){
       ^
foo.cc:14:8: error: stray '\200' in program
     for (int j = 0;j<s1.length();j++){
        ^
foo.cc:14:9: error: stray '\200' in program
     for (int j = 0;j<s1.length();j++){
         ^
foo.cc:14:10: error: stray '\343' in program
     for (int j = 0;j<s1.length();j++){
          ^
foo.cc:14:11: error: stray '\200' in program
     for (int j = 0;j<s1.length();j++){
           ^
foo.cc:14:12: error: stray '\200' in program
     for (int j = 0;j<s1.length();j++){
            ^
foo.cc:15:1: error: stray '\343' in program
       int b;
 ^
foo.cc:15:2: error: stray '\200' in program
       int b;
  ^
foo.cc:15:3: error: stray '\200' in program
       int b;
   ^
foo.cc:15:4: error: stray '\343' in program
       int b;
    ^
foo.cc:15:5: error: stray '\200' in program
       int b;
     ^
foo.cc:15:6: error: stray '\200' in program
       int b;
      ^
foo.cc:15:7: error: stray '\343' in program
       int b;
       ^
foo.cc:15:8: error: stray '\200' in program
       int b;
        ^
foo.cc:15:9: error: stray '\200' in program
       int b;
         ^
foo.cc:15:10: error: stray '\343' in program
       int b;
          ^
foo.cc:15:11: error: stray '\200' in program
       int b;
           ^
foo.cc:15:12: error: stray '\200' in program
       int b;
            ^
foo.cc:15:13: error: stray '\343' in program
       int b;
             ^
foo.cc:15:14: error: stray '\200' in program
       int b;
              ^
foo.cc:15:15: error: stray '\200' in program
       int b;
               ^
foo.cc:15:16: error: stray '\343' in program
       int b;
                ^
foo.cc:15:17: error: stray '\200' in program
       int b;
                 ^
foo.cc:15:18: error: stray '\200' in program
       int b;
                  ^
foo.cc:16:1: error: stray '\343' in program
       stringstream os;
 ^
foo.cc:16:2: error: stray '\200' in program
       stringstream os;
  ^
foo.cc:16:3: error: stray '\200' in program
       stringstream os;
   ^
foo.cc:16:4: error: stray '\343' in program
       stringstream os;
    ^
foo.cc:16:5: error: stray '\200' in program
       stringstream os;
     ^
foo.cc:16:6: error: stray '\200' in program
       stringstream os;
      ^
foo.cc:16:7: error: stray '\343' in program
       stringstream os;
       ^
foo.cc:16:8: error: stray '\200' in program
       stringstream os;
        ^
foo.cc:16:9: error: stray '\200' in program
       stringstream os;
         ^
foo.cc:16:10: error: stray '\343' in program
       stringstream os;
          ^
foo.cc:16:11: error: stray '\200' in program
       stringstream os;
           ^
foo.cc:16:12: error: stray '\200' in program
       stringstream os;
            ^
foo.cc:16:13: error: stray '\343' in program
       stringstream os;
             ^
foo.cc:16:14: error: stray '\200' in program
       stringstream os;
              ^
foo.cc:16:15: error: stray '\200' in program
       stringstream os;
               ^
foo.cc:16:16: error: stray '\343' in program
       stringstream os;
                ^
foo.cc:16:17: error: stray '\200' in program
       stringstream os;
                 ^
foo.cc:16:18: error: stray '\200' in program
       stringstream os;
                  ^
foo.cc:17:1: error: stray '\343' in program
       os << s1[j];
 ^
foo.cc:17:2: error: stray '\200' in program
       os << s1[j];
  ^
foo.cc:17:3: error: stray '\200' in program
       os << s1[j];
   ^
foo.cc:17:4: error: stray '\343' in program
       os << s1[j];
    ^
foo.cc:17:5: error: stray '\200' in program
       os << s1[j];
     ^
foo.cc:17:6: error: stray '\200' in program
       os << s1[j];
      ^
foo.cc:17:7: error: stray '\343' in program
       os << s1[j];
       ^
foo.cc:17:8: error: stray '\200' in program
       os << s1[j];
        ^
foo.cc:17:9: error: stray '\200' in program
       os << s1[j];
         ^
foo.cc:17:10: error: stray '\343' in program
       os << s1[j];
          ^
foo.cc:17:11: error: stray '\200' in program
       os << s1[j];
           ^
foo.cc:17:12: error: stray '\200' in program
       os << s1[j];
            ^
foo.cc:17:13: error: stray '\343' in program
       os << s1[j];
             ^
foo.cc:17:14: error: stray '\200' in program
       os << s1[j];
              ^
foo.cc:17:15: error: stray '\200' in program
       os << s1[j];
               ^
foo.cc:17:16: error: stray '\343' in program
       os << s1[j];
                ^
foo.cc:17:17: error: stray '\200' in program
       os << s1[j];
                 ^
foo.cc:17:18: error: stray '\200' in program
       os << s1[j];
                  ^
foo.cc:18:1: error: stray '\343' in program
       os >> b;
 ^
foo.cc:18:2: error: stray '\200' in program
       os >> b;
  ^
foo.cc:18:3: error: stray '\200' in program
       os >> b;
   ^
foo.cc:18:4: error: stray '\343' in program
       os >> b;
    ^
foo.cc:18:5: error: stray '\200' in program
       os >> b;
     ^
foo.cc:18:6: error: stray '\200' in program
       os >> b;
      ^
foo.cc:18:7: error: stray '\343' in program
       os >> b;
       ^
foo.cc:18:8: error: stray '\200' in program
       os >> b;
        ^
foo.cc:18:9: error: stray '\200' in program
       os >> b;
         ^
foo.cc:18:10: error: stray '\343' in program
       os >> b;
          ^
foo.cc:18:11: error: stray '\200' in program
       os >> b;
           ^
foo.cc:18:12: error: stray '\200' in program
       os >> b;
            ^
foo.cc:18:13: error: stray '\343' in program
       os >> b;
             ^
foo.cc:18:14: error: stray '\200' in program
       os >> b;
              ^
foo.cc:18:15: error: stray '\200' in program
       os >> b;
               ^
foo.cc:18:16: error: stray '\343' in program
       os >> b;
                ^
foo.cc:18:17: error: stray '\200' in program
       os >> b;
                 ^
foo.cc:18:18: error: stray '\200' in program
       os >> b;
                  ^
foo.cc:19:1: error: stray '\343' in program
       cout<<endl;
 ^
foo.cc:19:2: error: stray '\200' in program
       cout<<endl;
  ^
foo.cc:19:3: error: stray '\200' in program
       cout<<endl;
   ^
foo.cc:19:4: error: stray '\343' in program
       cout<<endl;
    ^
foo.cc:19:5: error: stray '\200' in program
       cout<<endl;
     ^
foo.cc:19:6: error: stray '\200' in program
       cout<<endl;
      ^
foo.cc:19:7: error: stray '\343' in program
       cout<<endl;
       ^
foo.cc:19:8: error: stray '\200' in program
       cout<<endl;
        ^
foo.cc:19:9: error: stray '\200' in program
       cout<<endl;
         ^
foo.cc:19:10: error: stray '\343' in program
       cout<<endl;
          ^
foo.cc:19:11: error: stray '\200' in program
       cout<<endl;
           ^
foo.cc:19:12: error: stray '\200' in program
       cout<<endl;
            ^
foo.cc:19:13: error: stray '\343' in program
       cout<<endl;
             ^
foo.cc:19:14: error: stray '\200' in program
       cout<<endl;
              ^
foo.cc:19:15: error: stray '\200' in program
       cout<<endl;
               ^
foo.cc:19:16: error: stray '\343' in program
       cout<<endl;
                ^
foo.cc:19:17: error: stray '\200' in program
       cout<<endl;
                 ^
foo.cc:19:18: error: stray '\200' in program
       cout<<endl;
                  ^
foo.cc:20:1: error: stray '\343' in program
       num[b] = num[b] + 1;
 ^
foo.cc:20:2: error: stray '\200' in program
       num[b] = num[b] + 1;
  ^
foo.cc:20:3: error: stray '\200' in program
       num[b] = num[b] + 1;
   ^
foo.cc:20:4: error: stray '\343' in program
       num[b] = num[b] + 1;
    ^
foo.cc:20:5: error: stray '\200' in program
       num[b] = num[b] + 1;
     ^
foo.cc:20:6: error: stray '\200' in program
       num[b] = num[b] + 1;
      ^
foo.cc:20:7: error: stray '\343' in program
       num[b] = num[b] + 1;
       ^
foo.cc:20:8: error: stray '\200' in program
       num[b] = num[b] + 1;
        ^
foo.cc:20:9: error: stray '\200' in program
       num[b] = num[b] + 1;
         ^
foo.cc:20:10: error: stray '\343' in program
       num[b] = num[b] + 1;
          ^
foo.cc:20:11: error: stray '\200' in program
       num[b] = num[b] + 1;
           ^
foo.cc:20:12: error: stray '\200' in program
       num[b] = num[b] + 1;
            ^
foo.cc:20:13: error: stray '\343' in program
       num[b] = num[b] + 1;
             ^
foo.cc:20:14: error: stray '\200' in program
       num[b] = num[b] + 1;
              ^
foo.cc:20:15: error: stray '\200' in program
       num[b] = num[b] + 1;
               ^
foo.cc:20:16: error: stray '\343' in program
       num[b] = num[b] + 1;
                ^
foo.cc:20:17: error: stray '\200' in program
       num[b] = num[b] + 1;
                 ^
foo.cc:20:18: error: stray '\200' in program
       num[b] = num[b] + 1;
                  ^
foo.cc:21:1: error: stray '\343' in program
     }
 ^
foo.cc:21:2: error: stray '\200' in program
     }
  ^
foo.cc:21:3: error: stray '\200' in program
     }
   ^
foo.cc:21:4: error: stray '\343' in program
     }
    ^
foo.cc:21:5: error: stray '\200' in program
     }
     ^
foo.cc:21:6: error: stray '\200' in program
     }
      ^
foo.cc:21:7: error: stray '\343' in program
     }
       ^
foo.cc:21:8: error: stray '\200' in program
     }
        ^
foo.cc:21:9: error: stray '\200' in program
     }
         ^
foo.cc:21:10: error: stray '\343' in program
     }
          ^
foo.cc:21:11: error: stray '\200' in program
     }
           ^
foo.cc:21:12: error: stray '\200' in program
     }
            ^
foo.cc:22:1: error: stray '\343' in program
   }
 ^
foo.cc:22:2: error: stray '\200' in program
   }
  ^
foo.cc:22:3: error: stray '\200' in program
   }
   ^
foo.cc:22:4: error: stray '\343' in program
   }
    ^
foo.cc:22:5: error: stray '\200' in program
   }
     ^
foo.cc:22:6: error: stray '\200' in program
   }
      ^
foo.cc:23:1: error: stray '\343' in program
   for(int i = 0; i < 10;i++)
 ^
foo.cc:23:2: error: stray '\200' in program
   for(int i = 0; i < 10;i++)
  ^
foo.cc:23:3: error: stray '\200' in program
   for(int i = 0; i < 10;i++)
   ^
foo.cc:23:4: error: stray '\343' in program
   for(int i = 0; i < 10;i++)
    ^
foo.cc:23:5: error: stray '\200' in program
   for(int i = 0; i < 10;i++)
     ^
foo.cc:23:6: error: stray '\200' in program
   for(int i = 0; i < 10;i++)
      ^
foo.cc:24:1: error: stray '\343' in program
   cout<<i<<":"<<num[i]<<endl;
 ^
foo.cc:24:2: error: stray '\200' in program
   cout<<i<<":"<<num[i]<<endl;
  ^
foo.cc:24:3: error: stray '\200' in program
   cout<<i<<":"<<num[i]<<endl;
   ^
foo.cc:24:4: error: stray '\343' in program
   cout<<i<<":"<<num[i]<<endl;
    ^
foo.cc:24:5: error: stray '\200' in program
   cout<<i<<":"<<num[i]<<endl;
     ^
foo.cc:24:6: error: stray '\200' in program
   cout<<i<<":"<<num[i]<<endl;
      ^
foo.cc: In function 'int pagecount(int)':
foo.cc:10:26: error: aggregate 'std::stringstream ss' has incomplete type and cannot be defined
     stringstream ss;
                          ^~
foo.cc:14:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int j = 0;j<s1.length();j++){
                            ~^~~~~~~~~~~~
foo.cc:16:32: error: aggregate 'std::stringstream os' has incomplete type and cannot be defined
       stringstream os;
                                ^~
foo.cc:25:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^

信息

递交者
类型
递交
题目
P1211 C5 页码中有多少个k
比赛
2020苏青奥赛集训营(2021-1-30课堂小练)
语言
C++
递交时间
2021-01-30 18:58:37
评测时间
2021-01-30 18:58:37
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes