제출 #937257

#제출 시각아이디문제언어결과실행 시간메모리
937257Dan4Life축구 경기장 (IOI23_soccer)C++17
컴파일 에러
0 ms0 KiB
#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; }

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

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;
      |           ^~~