Submission #60121
ソースコード
ステータス
項目 |
データ |
問題 |
1255 - Imos |
ユーザー名 |
ei1929
|
投稿日時 |
2020-06-21 12:41:48 |
言語 |
C++ |
状態 |
Compile Error |
得点 |
0
|
ソースコード長 |
742 Byte |
最大実行時間 |
-
|
最大メモリ使用量 |
|
コンパイルメッセージ
./Main.cpp:1:1: error: ‘map’ does not name a type
map<long long , long long> mp;
^~~
./Main.cpp:2:1: error: ‘priority_queue’ does not name a type
priority_queue<int, vector<int>, greater<int> > que;
^~~~~~~~~~~~~~
./Main.cpp: In function ‘int main()’:
./Main.cpp:9:5: error: ‘cin’ was not declared in this scope
cin >> n >> q;
^~~
./Main.cpp:9:5: note: suggested alternative: ‘main’
cin >> n >> q;
^~~
main
./Main.cpp:13:33: error: ‘min’ was not declared in this scope
minimum = min(minimum , min(v , -v));
^~~
./Main.cpp:13:33: note: suggested alternative: ‘main’
minimum = min(minimum , min(v , -v));
^~~
main
./Main.cpp:13:19: error: ‘min’ was not declared in this scope
minimum = min(minimum , min(v , -v));
^~~
./Main.cpp:13:19: note: suggested alternative: ‘main’
minimum = min(minimum , min(v , -v));
^~~
main
./Main.cpp:14:9: error: ‘mp’ was not declared in this scope
mp[l] += v;
^~
./Main.cpp:17:9: error: ‘que’ was not declared in this scope
que.push(l);
^~~
./Main.cpp:22:14: error: ‘que’ was not declared in this scope
while( !(que.empty()) ){
^~~
./Main.cpp:28:16: error: ‘mp’ was not declared in this scope
sum += mp[pos];
^~
./Main.cpp:29:15: error: ‘max’ was not declared in this scope
ans = max(ans , sum);
^~~
./Main.cpp:29:15: note: suggested alternative: ‘main’
ans = max(ans , sum);
^~~
main
./Main.cpp:32:5: error: ‘cout’ was not declared in this scope
cout << ans << endl;
^~~~
./Main.cpp:32:20: error: ‘endl’ was not declared in this scope
cout << ans << endl;
^~~~
./Main.cpp:32:20: note: suggested alternative: ‘enum’
cout << ans << endl;
^~~~
enum
セット
テストケース