| 24492 | 2026-02-12 09:40:48 | nagynimrod902 | Leggyorsabb pénzkeresés (50) | cpp17 | Forditási hiba |
#include <iostream>
using namespace std;
struct etel(int ind, db;)
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
int n, m, k,i,j;
cin >> n >> m >> k;
int ossz;
for(int s=1;s<=n;s++)
{
cin>>ossz;
for(i=1; i<=ossz; i++) cin>>j>>a[s][j];
}
int h,kaja,db,p;
for(int i=1; i<=m; i++)
{
cin>>h;
for(p=1;p<=h;p++)
{
cin>>kaja>>db;
for(j=1;j<=k;j++)
{
sum[j]=sum[j]+a[kaja][j]*db;
}
}
}
for(j=1;j<=k;j++) cout<<sum[j]<<" ";
return 0;
}
open /var/local/lib/isolate/410/box/a.out: no such file or directory
main.cpp:4:13: error: expected unqualified-id before 'int'
4 | struct etel(int ind, db;)
| ^~~
main.cpp:4:13: error: expected ')' before 'int'
4 | struct etel(int ind, db;)
| ~^~~
| )
main.cpp:4:25: error: expected unqualified-id before ')' token
4 | struct etel(int ind, db;)
| ^