結果
| 問題 | No.318 学学学学学 |
| コンテスト | |
| ユーザー |
hogeover30
|
| 提出日時 | 2017-01-08 03:29:17 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
CE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 160 bytes |
| 記録 | |
| コンパイル時間 | 174 ms |
| コンパイル使用メモリ | 47,488 KB |
| 最終ジャッジ日時 | 2026-05-10 04:34:36 |
| 合計ジャッジ時間 | 893 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
main.cpp:1:2: warning: '#import' is a deprecated GCC extension [-Wdeprecated]
1 | #import<map>
| ^~~~~~
main.cpp:2:13: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
2 | int N,i,j,a;main(){for(std::map<int,int>e,s,A;~scanf("%d",&a)?N?e[A[i]=a]=++i:N=a:(s[a=A[j]]=a)?e[printf("%d ",*rbegin(s)),a]-++j||s.erase(a):0;);}
| ^~~~
main.cpp: In function 'int main()':
main.cpp:2:48: error: 'scanf' was not declared in this scope
2 | int N,i,j,a;main(){for(std::map<int,int>e,s,A;~scanf("%d",&a)?N?e[A[i]=a]=++i:N=a:(s[a=A[j]]=a)?e[printf("%d ",*rbegin(s)),a]-++j||s.erase(a):0;);}
| ^~~~~
main.cpp:2:99: error: 'printf' was not declared in this scope
2 | int N,i,j,a;main(){for(std::map<int,int>e,s,A;~scanf("%d",&a)?N?e[A[i]=a]=++i:N=a:(s[a=A[j]]=a)?e[printf("%d ",*rbegin(s)),a]-++j||s.erase(a):0;);}
| ^~~~~~
main.cpp:2:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
1 | #import<map>
+++ |+#include <cstdio>
2 | int N,i,j,a;main(){for(std::map<int,int>e,s,A;~scanf("%d",&a)?N?e[A[i]=a]=++i:N=a:(s[a=A[j]]=a)?e[printf("%d ",*rbegin(s)),a]-++j||s.erase(a):0;);}
ソースコード
#import<map>
int N,i,j,a;main(){for(std::map<int,int>e,s,A;~scanf("%d",&a)?N?e[A[i]=a]=++i:N=a:(s[a=A[j]]=a)?e[printf("%d ",*rbegin(s)),a]-++j||s.erase(a):0;);}
hogeover30