結果
| 問題 |
No.318 学学学学学
|
| コンテスト | |
| ユーザー |
hogeover30
|
| 提出日時 | 2017-01-08 03:29:17 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
CE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 160 bytes |
| コンパイル時間 | 214 ms |
| コンパイル使用メモリ | 42,880 KB |
| 最終ジャッジ日時 | 2024-11-14 19:55:40 |
| 合計ジャッジ時間 | 758 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、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>'; did you forget to '#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