답안 #937257

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
937257 2024-03-03T17:12:39 Z Dan4Life 축구 경기장 (IOI23_soccer) C++17
컴파일 오류
0 ms 0 KB
#include "soccer.h"
#include <bits/stdc++.h>
using namespace std;

#define pf push_front
#define pb push_back
#define ll long long
#define vi vector<int>
#define sz(a) (int)a.size()
#define all(a) begin(a),end(a)

int biggest_stadium(int N, std::vector<vi> F)
{
	for(auto u : F)
		for(auto w : u)
			tot+=w;
	return N-tot;
}

Compilation message

soccer.cpp: In function 'int biggest_stadium(int, std::vector<std::vector<int> >)':
soccer.cpp:16:4: error: 'tot' was not declared in this scope
   16 |    tot+=w;
      |    ^~~
soccer.cpp:17:11: error: 'tot' was not declared in this scope
   17 |  return N-tot;
      |           ^~~