Compile Error

/in/foo.cc:13:23: error: stray '#' in program
             swap(a,b);#include <bits/stdc++.h>
                       ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:12:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
         if(a>b)
         ^~
/in/foo.cc:13:24: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
             swap(a,b);#include <bits/stdc++.h>
                        ^~~~~~~
/in/foo.cc:13:24: error: 'include' was not declared in this scope
/in/foo.cc:13:33: error: 'bits' was not declared in this scope
             swap(a,b);#include <bits/stdc++.h>
                                 ^~~~
/in/foo.cc:13:38: error: 'stdc' was not declared in this scope
             swap(a,b);#include <bits/stdc++.h>
                                      ^~~~
/in/foo.cc:14:1: error: expected primary-expression before 'using'
 using namespace std;
 ^~~~~
/in/foo.cc:16:11: error: a function-definition is not allowed here before '{' token
 int main(){
           ^
/in/foo.cc:51:1: error: expected '}' at end of input
 }
 ^
/in/foo.cc:51:1: error: expected '}' at end of input

信息

递交者
类型
自测
题目
P1043 黑洞数
语言
C++
递交时间
2022-01-29 09:59:26
评测时间
2022-01-29 09:59:26
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes