제출 #167763

#제출 시각아이디문제언어결과실행 시간메모리
167763abilChessboard (IZhO18_chessboard)C++14
0 / 100
2 ms256 KiB
#include <bits/stdc++.h> #define fr first #define sc second #define pb push_back #define mk make_pair #define all(s) s.begin(),s.end() //#define int long long using namespace std; const int N = (1e6 + 12); const int mod = (1e9 + 7); const int INF = (0x3f3f3f3f); main() { int n, k; cin >> n >> k; if(n % 2 == 0){ cout << n; return 0; } cout << 2; }

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

chessboard.cpp:16:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
 main()
      ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...