提出 1534ec9a-9c38-4295-851a-4806fdf6d3b5

コード

結果

問題点数言語結果実行時間メモリ
C1. Mibae Ga Warui0C++ (gcc)CE0 ms0 KiB

コンパイルエラー

Main.cpp:2:7: error: expected nested-name-specifier before ‘namespase’ 2 | using namespase std; | ^~~~~~~~~ Main.cpp: In function ‘int main()’: Main.cpp:5:5: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’? 5 | cin >> _T; | ^~~ | std::cin In file included from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:146, from Main.cpp:1: /usr/include/c++/13/iostream:62:18: note: ‘std::cin’ declared here 62 | extern istream cin; ///< Linked to standard input | ^~~ Main.cpp:10:9: error: ‘map’ was not declared in this scope 10 | map<int,int> mp; | ^~~ Main.cpp:10:9: note: suggested alternatives: In file included from /usr/include/c++/13/map:63, from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:152: /usr/include/c++/13/bits/stl_map.h:102:11: note: ‘std::map’ 102 | class map | ^~~ /usr/include/c++/13/map:80:13: note: ‘std::pmr::map’ 80 | using map | ^~~ Main.cpp:10:13: error: expected primary-expression before ‘int’ 10 | map<int,int> mp; | ^~~ Main.cpp:14:13: error: ‘mp’ was not declared in this scope 14 | mp[x]++; | ^~ Main.cpp:16:20: error: ‘mp’ was not declared in this scope; did you mean ‘p’? 16 | for(auto p:mp){ | ^~ | p Main.cpp:22:5: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’? 22 | cout<<ans<<endl; | ^~~~ | std::cout /usr/include/c++/13/iostream:63:18: note: ‘std::cout’ declared here 63 | extern ostream cout; ///< Linked to standard output | ^~~~ Main.cpp:22:16: error: ‘endl’ was not declared in this scope; did you mean ‘std::endl’? 22 | cout<<ans<<endl; | ^~~~ | std::endl In file included from /usr/include/c++/13/bits/unique_ptr.h:42, from /usr/include/c++/13/memory:78, from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:56: /usr/include/c++/13/ostream:735:5: note: ‘std::endl’ declared here 735 | endl(basic_ostream<_CharT, _Traits>& __os) | ^~~~

テストセット

テストセット結果得点実行時間メモリ

詳細結果

テストケース結果実行時間メモリ