結果

問題 No.9000 Hello World! (テスト用)
ユーザー pekempeypekempey
提出日時 2019-09-26 01:26:31
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
RE  
実行時間 -
コード長 516 bytes
コンパイル時間 874 ms
コンパイル使用メモリ 71,140 KB
実行使用メモリ 4,372 KB
最終ジャッジ日時 2023-10-24 06:23:19
合計ジャッジ時間 2,271 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 RE -
testcase_01 RE -
testcase_02 RE -
testcase_03 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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 #

// 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