9871 | 2024-03-13 18:15:55 | Kristóf | Ütős helyzet (75 pont) | cpp17 | Forditási hiba |
#include <iostream>
#include <vector>
#include <bits/stdc++.h>
using namespace std;
int main()
{
vector<vector<int>> tabla;
vector<int>mod;
for(int i=0;i<8;i++){
mod.push_back(0);
}
for(int i=0;i<8;i++){
tabla.push_back(mod);
}
for(int i=0;i<8;i++){
cout<<endl;
for(int m=0;m<8;m++){
cout<<tabla[i][m];
}
}
int n;
cin>>n;
vector< map<pair<int,int>,int>>index;
int tipus;
int y;
int x;
while(n--){
cin>>tipus>>y>>x;
if(tipus=1)
{
if(tabla[y-1][x-1]==0)
{
for(int i=0;i<7;i++)
{
if(x-1>0)
{
if(tabla[y][x-1]==0)
}
}
}
}
}
return 0;
}
exit status 1
main.cpp: In function 'int main()':
main.cpp:40:25: error: expected primary-expression before '}' token
40 | }
| ^
Exited with error status 1