Submission #62337
ソースコード
ステータス
項目 |
データ |
問題 |
1332 - ^^ |
ユーザー名 |
unos
|
投稿日時 |
2020-08-16 21:52:28 |
言語 |
C++17 |
状態 |
Compile Error |
得点 |
0
|
ソースコード長 |
869 Byte |
最大実行時間 |
-
|
最大メモリ使用量 |
|
コンパイルメッセージ
./Main.cpp:19:7: error: ‘ll’ does not name a type; did you mean ‘pll’?
const ll mod=998244353;
^~
pll
./Main.cpp: In function ‘int main()’:
./Main.cpp:22:5: error: ‘ll’ was not declared in this scope
ll n;
^~
./Main.cpp:22:5: note: suggested alternative: ‘pll’
ll n;
^~
pll
./Main.cpp:23:5: error: ‘cin’ was not declared in this scope
cin >> n;
^~~
./Main.cpp:23:5: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
./Main.cpp:1:1:
+#include <iostream>
#define rep(i,n) for(ll i=0;i<(n);i++)
./Main.cpp:23:5:
cin >> n;
^~~
./Main.cpp:23:12: error: ‘n’ was not declared in this scope
cin >> n;
^
./Main.cpp:24:5: error: ‘vector’ was not declared in this scope
vector<ll> a(n);
^~~~~~
./Main.cpp:24:5: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
./Main.cpp:1:1:
+#include <vector>
#define rep(i,n) for(ll i=0;i<(n);i++)
./Main.cpp:24:5:
vector<ll> a(n);
^~~~~~
./Main.cpp:24:16: error: ‘a’ was not declared in this scope
vector<ll> a(n);
^
./Main.cpp:25:7: error: expected ‘;’ before ‘ans’
ll ans=0;
^~~~
;
./Main.cpp:26:9: error: expected ‘;’ before ‘i’
rep(i,n){
^
./Main.cpp:1:25: note: in definition of macro ‘rep’
#define rep(i,n) for(ll i=0;i<(n);i++)
^
./Main.cpp:26:9: error: ‘i’ was not declared in this scope
rep(i,n){
^
./Main.cpp:1:29: note: in definition of macro ‘rep’
#define rep(i,n) for(ll i=0;i<(n);i++)
^
./Main.cpp:26:9: note: suggested alternative: ‘fi’
rep(i,n){
^
./Main.cpp:1:29: note: in definition of macro ‘rep’
#define rep(i,n) for(ll i=0;i<(n);i++)
^
./Main.cpp:28:9: error: ‘ans’ was not declared in this scope
ans^=a[i];
^~~
./Main.cpp:30:9: error: expected ‘;’ before ‘i’
rep(i,n){
^
./Main.cpp:1:25: note: in definition of macro ‘rep’
#define rep(i,n) for(ll i=0;i<(n);i++)
^
./Main.cpp:30:9: error: ‘i’ was not declared in this scope
rep(i,n){
^
./Main.cpp:1:29: note: in definition of macro ‘rep’
#define rep(i,n) for(ll i=0;i<(n);i++)
^
./Main.cpp:30:9: note: suggested alternative: ‘fi’
rep(i,n){
^
./Main.cpp:1:29: note: in definition of macro ‘rep’
#define rep(i,n) for(ll i=0;i<(n);i++)
^
./Main.cpp:31:9: error: ‘ans’ was not declared in this scope
ans^=a[i];
^~~
./Main.cpp:32:9: error: ‘cout’ was not declared in this scope
cout << ans << endl;
^~~~
./Main.cpp:32:9: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
セット
テストケース