結果
| 問題 | No.318 学学学学学 |
| コンテスト | |
| ユーザー |
👑 tails
|
| 提出日時 | 2017-01-08 14:28:04 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
CE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 159 bytes |
| 記録 | |
| コンパイル時間 | 223 ms |
| コンパイル使用メモリ | 43,008 KB |
| 最終ジャッジ日時 | 2024-11-14 19:55:45 |
| 合計ジャッジ時間 | 1,031 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / 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)?printf("%d ",*--end(s)),e[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)?printf("%d ",*--end(s)),e[a]-++j||s.erase(a):0;);}
| ^~~~~
main.cpp:2:97: 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)?printf("%d ",*--end(s)),e[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)?printf("%d ",*--end(s)),e[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)?printf("%d ",*--end(s)),e[a]-++j||s.erase(a):0;);}
tails