#include <bits/stdc++.h>
using namespace std;
int n,a[1050],b[1050],c[1050];
inline void getint(int x[],int n)
{
for(int i=0;i<n;i++)
{
scanf("%d",&x[i]);
}
}
void putint(int x[],int n)
{
for(int i=0;i<n;i++)
{
printf("%d",x[i]);
}
}
int main()
{
getint({n},1);
for(int i=1;i<=n;i++)
{
getint({a[i],b[i],c[i]},3);
}
putint({a[1],b[1],c[1]},3);
return 0;
}
/tmp/compiler_s1a6v66s/src: 在函数‘int main()’中:
/tmp/compiler_s1a6v66s/src:20:17: 错误:invalid conversion from ‘int’ to ‘int*’ [-fpermissive]
20 | getint({n},1);
| ^
| |
| int
/tmp/compiler_s1a6v66s/src:4:24: 附注: 初始化‘void getint(int*, int)’的实参 1
4 | inline void getint(int x[],int n)
| ~~~~^~~
/tmp/compiler_s1a6v66s/src:23:34: 错误:cannot convert ‘<花括号内的初始值列表>’ to ‘int*’
23 | getint({a[i],b[i],c[i]},3);
| ^
| |
| <花括号内的初始值列表>
/tmp/compiler_s1a6v66s/src:4:24: 附注: 初始化‘void getint(int*, int)’的实参 1
4 | inline void getint(int x[],int n)
| ~~~~^~~
/tmp/compiler_s1a6v66s/src:25:30: 错误:cannot convert ‘<花括号内的初始值列表>’ to ‘int*’
25 | putint({a[1],b[1],c[1]},3);
| ^
| |
| <花括号内的初始值列表>
/tmp/compiler_s1a6v66s/src:11:17: 附注: 初始化‘void putint(int*, int)’的实参 1
11 | void putint(int x[],int n)
| ~~~~^~~