제출 #678835

#제출 시각아이디문제언어결과실행 시간메모리
678835vjudge1즐거운 행로 (APIO20_fun)C++17
컴파일 에러
0 ms0 KiB
#include <iostream> #include<iomanip> #include <algorithm> #include <cmath> #include <vector> #include <queue> #include <stack> #include <set> #include <map> #define _CRT_SECURE_NO_WARNINGS #define test_case int t;cin>>t;while(t--) #define ll long long #define ull unsigned long long #define all(v) (v).begin(), (v).end() #define allr(x) x.rbegin(),x.rend() using namespace std; void fast() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); } bool ch(bool ok) { if (ok) cout << "YES\n"; else cout << "NO\n"; } int main() { fast(); cout << "aziz" << endl; return 0; }

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

fun.cpp: In function 'bool ch(bool)':
fun.cpp:27:1: warning: no return statement in function returning non-void [-Wreturn-type]
   27 | }
      | ^
/usr/bin/ld: /tmp/ccehPZY2.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccPMO0g6.o:fun.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccehPZY2.o: in function `main':
grader.cpp:(.text.startup+0x65a): undefined reference to `createFunTour(int, int)'
collect2: error: ld returned 1 exit status