Submission #64751
ソースコード
ステータス
項目 |
データ |
問題 |
1108 - 発表会 |
ユーザー名 |
ei1903
|
投稿日時 |
2020-11-16 18:21:37 |
言語 |
C++17 |
状態 |
Compile Error |
得点 |
0
|
ソースコード長 |
615 Byte |
最大実行時間 |
-
|
最大メモリ使用量 |
|
コンパイルメッセージ
./Main.cpp: In function ‘int main()’:
./Main.cpp:4:5: error: ‘cin’ was not declared in this scope
cin.tie(nullptr);
^~~
./Main.cpp:4:5: note: suggested alternative: ‘main’
cin.tie(nullptr);
^~~
main
./Main.cpp:5:5: error: ‘ios_base’ has not been declared
ios_base::sync_with_stdio(false);
^~~~~~~~
./Main.cpp:10:5: error: ‘vector’ was not declared in this scope
vector<long long> dp(1 << n, LINF);
^~~~~~
./Main.cpp:10:12: error: expected primary-expression before ‘long’
vector<long long> dp(1 << n, LINF);
^~~~
./Main.cpp:11:19: error: expected primary-expression before ‘int’
vector<vector<int> > a(n, vector<int>(n));
^~~
./Main.cpp:15:20: error: ‘a’ was not declared in this scope
cin >> a[i][j];
^
./Main.cpp:19:5: error: ‘dp’ was not declared in this scope
dp[0] = 0;
^~
./Main.cpp:23:64: error: ‘a’ was not declared in this scope
dp[bit | 1 << i] = min(dp[bit | 1 << i], dp[bit] + a[i][__builtin_popcount(bit)]);
^
./Main.cpp:23:32: error: ‘min’ was not declared in this scope
dp[bit | 1 << i] = min(dp[bit | 1 << i], dp[bit] + a[i][__builtin_popcount(bit)]);
^~~
./Main.cpp:23:32: note: suggested alternative: ‘main’
dp[bit | 1 << i] = min(dp[bit | 1 << i], dp[bit] + a[i][__builtin_popcount(bit)]);
^~~
main
./Main.cpp:27:5: error: ‘cout’ was not declared in this scope
cout << dp[(1 << n) - 1] << '\n';
^~~~
セット
テストケース