| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 84303 | 刘泽熙 | 最大公约数(函数) | C++ | Compile Error | 0 MS | 0 KB | 193 | 2024-07-15 15:13:56 |
#include<bits/stdc++.h> using namespace std; int main(){ void swap(int x,int y){ int i=x; x=y; y=t; } int main(){ int x=3,y=5; swap(x,y); cout<<x<<" "<<y<<endl; } }
Main.cc: In function 'int main()':
Main.cc:4:24: error: a function-definition is not allowed here before '{' token
void swap(int x,int y){
^
Main.cc:9:12: error: a function-definition is not allowed here before '{' token
int main(){
^