/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'std::vector<int> calculateEarliest()':
/in/foo.cc:97:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   97 | int main() {
      |         ^~
/in/foo.cc:97:9: note: remove parentheses to default-initialize a variable
   97 | int main() {
      |         ^~
      |         --
/in/foo.cc:97:9: note: or replace parentheses with braces to value-initialize a variable
/in/foo.cc:97:12: error: a function-definition is not allowed here before '{' token
   97 | int main() {
      |            ^
/in/foo.cc:140:2: error: expected '}' at end of input
  140 | }
      |  ^
/in/foo.cc:50:33: note: to match this '{'
   50 | vector<int> calculateEarliest() {
      |                                 ^
/in/foo.cc:140:2: warning: control reaches end of non-void function [-Wreturn-type]
  140 | }
      |  ^

信息

递交者
类型
递交
题目
P1819 航空管制
语言
C++
递交时间
2025-10-26 21:06:43
评测时间
2025-10-26 21:06:43
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes