Submission #937257

# Submission time Handle Problem Language Result Execution time Memory
937257 2024-03-03T17:12:39 Z Dan4Life Soccer Stadium (IOI23_soccer) C++17
Compilation error
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;
      |           ^~~