ログイン
新規登録
AtsuoCoder Waseda Tour Finals 2025
読込中…
Home
Tasks
Clar
Submissions
Standings
提出 6a3cbb9c-3faa-4701-b463-8d7b8288268f
コード
#include <bits/stdc++.h> using namespace std; int main() { int N; int A; int D; cin >> N; cin >> A; cin >> D; string str; cout << str.size(N) << endl; for (int i = 0; i < str.size(); i++) { if (A >= D) { cout << 1 << endl; } else{ cout << 0 << endl; } } }
結果
問題
点数
言語
結果
実行時間
メモリ
D - Deletion
0
C++
WJ
0 ms
0 KiB
コンパイルエラー
Main.cpp: In function 'int main()': Main.cpp:12:19: error: no matching function for call to 'std::__cxx11::basic_string<char>::size(int&)' 12 | cout << str.size(N) << endl; | ~~~~~~~~^~~ In file included from /usr/include/c++/13/string:54, from /usr/include/c++/13/bitset:52, from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:52, from Main.cpp:1: /usr/include/c++/13/bits/basic_string.h:1071:7: note: candidate: 'constexpr std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' 1071 | size() const _GLIBCXX_NOEXCEPT | ^~~~ /usr/include/c++/13/bits/basic_string.h:1071:7: note: candidate expects 0 arguments, 1 provided