记录详情

Compile Error

/in/foo.cc:5:13: error: stray '\357' in program
     int main(){
             ^
/in/foo.cc:5:14: error: stray '\274' in program
     int main(){
              ^
/in/foo.cc:5:15: error: stray '\210' in program
     int main(){
               ^
/in/foo.cc:5:16: error: stray '\357' in program
     int main(){
                ^
/in/foo.cc:5:17: error: stray '\274' in program
     int main(){
                 ^
/in/foo.cc:5:18: error: stray '\211' in program
     int main(){
                  ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:6:3: error: expected primary-expression before 'int'
   int a,b,c,t;
   ^~~
/in/foo.cc:6:3: error: expected '}' before 'int'
/in/foo.cc:8:21: error: 'a' was not declared in this scope
   scanf("%d %d %d",&a,&b,&c);
                     ^
/in/foo.cc:8:24: error: 'b' was not declared in this scope
   scanf("%d %d %d",&a,&b,&c);
                        ^
/in/foo.cc:8:27: error: 'c' was not declared in this scope
   scanf("%d %d %d",&a,&b,&c);
                           ^
/in/foo.cc:10:11: error: 't' was not declared in this scope
   if(a>c){t=a;a=c;c=t;}
           ^
/in/foo.cc:11:11: error: 't' was not declared in this scope
   if(a>b){t=a;a=b;b=t;}
           ^
/in/foo.cc:12:11: error: 't' was not declared in this scope
   if(b>c){t=b;b=c;c=t;}
           ^
/in/foo.cc:5:9: warning: unused variable 'main' [-Wunused-variable]
     int main(){
         ^~~~
/in/foo.cc:16:11: error: expected '}' at end of input
   return 0;
           ^

信息

递交者
类型
自测
题目
A1-1 分支结构练习:三数排序
语言
C++
递交时间
2019-03-31 18:59:20
评测时间
2019-03-31 18:59:20
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes