結果

問題 No.9000 Hello World! (テスト用)
ユーザー pekempey
提出日時 2019-09-26 01:26:31
言語 C++14
(gcc 15.2.0 + boost 1.89.0)
コンパイル:
g++-15 -O2 -lm -std=c++14 -Wuninitialized -DONLINE_JUDGE -o a.out _filename_
実行:
./a.out
結果
RE  
実行時間 -
コード長 516 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 446 ms
コンパイル使用メモリ 85,360 KB
実行使用メモリ 6,400 KB
最終ジャッジ日時 2026-04-11 05:28:21
合計ジャッジ時間 2,026 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge3_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other RE * 4
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function 'int print(T)':
main.cpp:6:59: warning: no return statement in function returning non-void [-Wreturn-type]
    6 | template<class T> int print(T a) { std::cout << a << ' '; }
      |                                                           ^
main.cpp: In function 'int print_endline(int)':
main.cpp:7:51: warning: no return statement in function returning non-void [-Wreturn-type]
    7 | int print_endline(int dummy) { std::cout << '\n'; }
      |                                                   ^

ソースコード

diff #
raw source code

// https://github.com/pekempey/banana
#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
template<class T> int print(T a) { std::cout << a << ' '; }
int print_endline(int dummy) { std::cout << '\n'; }
int readint(int dummy) { long long a; std::cin >> a; return a; }
std::string readstr(int dummy) { std::string a; std::cin >> a; return a; }
std::vector<long long> vecint(long long n) { return std::vector<long long>(n, 0); }
int main() {
std::string _1="Hello World!";
auto _2=print(_1);
}
0