제출 #1361337

#제출 시각아이디문제언어결과실행 시간메모리
1361337neelamneelam199월 (APIO24_september)C++20
컴파일 에러
0 ms0 KiB
#include "september.h"

#include <vector>

int solve(int n, int m, std::vector<int> F, std::vector<std::vector<int>> S) {
	int finding = n-1;
	int ans=0;
	for(inti=0; i<n-1;i++){
		if(S[0][i]finding){finding--;ans++;}
	}
	return ans;
}

컴파일 시 표준 에러 (stderr) 메시지

september.cpp: In function 'int solve(int, int, std::vector<int>, std::vector<std::vector<int> >)':
september.cpp:8:13: error: 'inti' was not declared in this scope; did you mean 'int'?
    8 |         for(inti=0; i<n-1;i++){
      |             ^~~~
      |             int
september.cpp:8:21: error: 'i' was not declared in this scope
    8 |         for(inti=0; i<n-1;i++){
      |                     ^
september.cpp:9:27: error: expected ')' before 'finding'
    9 |                 if(S[0][i]finding){finding--;ans++;}
      |                   ~       ^~~~~~~
      |                           )