제출 #1360172

#제출 시각아이디문제언어결과실행 시간메모리
1360172new통행료 (APIO13_toll)C++20
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h>
#include <thread>
using namespace std;
int main() {
    this_thread::sleep_for(chrono::milliseconds(300));
      return 0;
}
#include <bits/stdc++.h>
#include <thread>
using namespace std;
int main() {
  this_thread::sleep_for(chrono::milliseconds(300));
  return 0;
}
}

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

toll.cpp:11:5: error: redefinition of 'int main()'
   11 | int main() {
      |     ^~~~
toll.cpp:4:5: note: 'int main()' previously defined here
    4 | int main() {
      |     ^~~~
toll.cpp:15:1: error: expected declaration before '}' token
   15 | }
      | ^