记录详情

Compile Error

/in/foo.cc:6:14: warning: missing terminating " character
  scanf(%d&d&d",&a,&b,&c);
              ^
/in/foo.cc:6:14: error: missing terminating " character
  scanf(%d&d&d",&a,&b,&c);
              ^~~~~~~~~~~~
/in/foo.cc:9:19: error: stray '\' in program
    printf(%d %d %d\n,a,b,c);
                   ^
/in/foo.cc:9:21: error: stray '\357' in program
    printf(%d %d %d\n,a,b,c);
                     ^
/in/foo.cc:9:22: error: stray '\274' in program
    printf(%d %d %d\n,a,b,c);
                      ^
/in/foo.cc:9:23: error: stray '\214' in program
    printf(%d %d %d\n,a,b,c);
                       ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:6:8: error: expected primary-expression before '%' token
  scanf(%d&d&d",&a,&b,&c);
        ^
/in/foo.cc:6:9: error: 'd' was not declared in this scope
  scanf(%d&d&d",&a,&b,&c);
         ^
/in/foo.cc:10:3: error: 'else' without a previous 'if'
   else 
   ^~~~
/in/foo.cc:13:31: warning: too many arguments for format [-Wformat-extra-args]
     printf("&d &d &d\n", a,c,b);
                               ^
/in/foo.cc:15:31: warning: too many arguments for format [-Wformat-extra-args]
     printf("&d &d &D\n", c,a,b);
                               ^
/in/foo.cc:16:5: error: 'else' without a previous 'if'
     else
     ^~~~
/in/foo.cc:22:31: warning: too many arguments for format [-Wformat-extra-args]
     printf("&d &d &D\n", b,c,a);
                               ^
/in/foo.cc:24:31: warning: too many arguments for format [-Wformat-extra-args]
     printf("&d &d &D\n", c,b,a);
                               ^
/in/foo.cc:26:1: error: expected ';' before '}' token
 }
 ^

信息

递交者
类型
递交
题目
A1-1 分支结构练习:三数排序
比赛
泰院2401程序设计基础作业赛第一场(牛刀小试)
语言
C++
递交时间
2024-10-21 16:39:57
评测时间
2024-10-21 16:39:57
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes