CSES - Datatähti 2019 alku - Results
Submission details
Task:Leimasin
Sender:Uolevi
Submission time:2018-10-02 08:52:25 +0300
Language:C++
Status:COMPILE ERROR

Compiler report

input/code.cpp: In function 'int main()':
input/code.cpp:10:25: error: request for member 'size' in 'leima', which is of non-class type 'int'
  paikat.push_back(leima.size()-tavoite.size()+1);
                         ^~~~
input/code.cpp:10:40: error: request for member 'size' in 'tavoite', which is of non-class type 'int'
  paikat.push_back(leima.size()-tavoite.size()+1);
                                        ^~~~
input/code.cpp:11:24: error: request for member 'size' in 'tavoite', which is of non-class type 'int'
  for(int i=0;i<tavoite.size();i++){
                        ^~~~
input/code.cpp:12:23: error: request for member 'size' in 'leima', which is of non-class type 'int'
   for(int j=0;j<leima.size();j++){
                       ^~~~
input/code.cpp:14:3: error: expected primary-expression before '}' token
   }
   ^
input/code.cpp:14:3: error: expected ')' before '}' token
input/code.cpp:14:3: error: expected primary-expression before '}' token

Code

#include<bits/stdc++.h>
using namespace std;

int tavoite;
int leima;

vector<int> paikat;
int main(){
	cin >> tavoite >> leima;
	paikat.push_back(leima.size()-tavoite.size()+1);
	for(int i=0;i<tavoite.size();i++){
		for(int j=0;j<leima.size();j++){
			if(
		}
	}
}