submission_id
stringlengths
10
10
problem_id
stringlengths
6
6
language
stringclasses
3 values
code
stringlengths
1
522k
compiler_output
stringlengths
43
10.2k
s772153182
p03834
C++
#include <iostream> #include <string> using namespace std; int main() { string S; cin>>S; S.replace(',',' ') cout<<S; return 0; }
a.cc: In function 'int main()': a.cc:8:10: error: no matching function for call to 'std::__cxx11::basic_string<char>::replace(char, char)' 8 | S.replace(',',' ') | ~~~~~~~~~^~~~~~~~~ In file included from /usr/include/c++/14/string:54, from /usr/include/c++/14/bits/locale_classes.h:40, ...
s993831670
p03834
C++
#include <iostream> using namespace std; int main() { int i; string S; cin>>S; S.replace(',',' ') cout<<S; return 0; }
a.cc: In function 'int main()': a.cc:7:10: error: no matching function for call to 'std::__cxx11::basic_string<char>::replace(char, char)' 7 | S.replace(',',' ') | ~~~~~~~~~^~~~~~~~~ In file included from /usr/include/c++/14/string:54, from /usr/include/c++/14/bits/locale_classes.h:40, ...
s753036722
p03834
C++
#include <iostream> using namespace std; int main() { int S[19]; for(i=1;i<=19;i++){ if(i=6 || i=14) {S[i]=" "} } return 0; }
a.cc: In function 'int main()': a.cc:6:8: error: 'i' was not declared in this scope 6 | for(i=1;i<=19;i++){ | ^
s164476464
p03834
C++
#include<bits/stdc++.h> using namespace std; int main(){ char a[20]; cin >> a; a[5]=' '; a[13]=' '; cout << a; return 0; if(a==1){ cout << 1; } else if(a==1){ cout << 2; } else{ cout << 4; } }
a.cc: In function 'int main()': a.cc:10:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 10 | if(a==1){ | ~^~~ a.cc:13:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 13 | else if(a==1){ | ~^~~
s378141706
p03834
C++
#include<bits/stdc++.h> using namespace std; int main(){ char a[20]; cin >> a; a[5]=' '; a[13]=' '; cout << a; return 0; if(a==b==c){ cout << 1; } else if(a==b||b==c||c==a){ cout << 2; } else{ cout << 4; } }
a.cc: In function 'int main()': a.cc:10:9: error: 'b' was not declared in this scope 10 | if(a==b==c){ | ^ a.cc:10:12: error: 'c' was not declared in this scope 10 | if(a==b==c){ | ^
s267449616
p03834
C++
#include<bits/stdc++.h> using namespace std; int main(){ char a[20]; cin >> a; a[5]=' '; a[13]=' '; cout << a; return 0; if(a==b==c){ cout << 1; } else if(a==b||b==c||c==a){ cout << 2; } else{ cout << e; } }
a.cc: In function 'int main()': a.cc:10:9: error: 'b' was not declared in this scope 10 | if(a==b==c){ | ^ a.cc:10:12: error: 'c' was not declared in this scope 10 | if(a==b==c){ | ^ a.cc:17:13: error: 'e' was not declared in this scope 17 | cout << e; | ...
s706313469
p03834
C++
#include <iostream> #include<string> using namespace std; int main(){ string s; cin s; s.erase(5,1); s.insert(5," "); s.erase(13,1); s.insert(13," "); cout<<s; return 0; }
a.cc: In function 'int main()': a.cc:8:9: error: expected ';' before 's' 8 | cin s; | ^~ | ;
s712702324
p03834
C++
#include <stdio.h> int main() { int i; for (i = 0; i < 5+7+5+2; i++) { char c; scanf(&c, %c); if (c==',') putchar(' '); else putchar(c); } return 0; }
a.cc: In function 'int main()': a.cc:7:15: error: expected primary-expression before '%' token 7 | scanf(&c, %c); | ^
s995209271
p03834
C++
#include <stdio.h> int main() { int i; for (i = 0; i < 5+7+5+2, i++) { char c; scanf(&c, %c); if (c==',') putchar(' '); else putchar(c); } return 0; }
a.cc: In function 'int main()': a.cc:5:31: error: expected ';' before ')' token 5 | for (i = 0; i < 5+7+5+2, i++) { | ^ | ; a.cc:7:15: error: expected primary-expression before '%' token 7 | scanf(&c, %c); | ^
s586030844
p03834
C++
#include <iostream> #include<string> using namespace std; int main() { string s; cin>>s; cout<<s.size()<<endl; for(int i=0 ; i<s.size();i++) { if(s[i]==',') s[i]='' ; } cout<<s; return 0; }
a.cc:13:28: error: empty character constant 13 | if(s[i]==',') s[i]='' ; | ^~
s044123531
p03834
C++
char arr[19]; cin>>arr; for(int i=0;i<5;i++){ cout<<arr[i]; } cout<<" "; for(int i=6;i<13;i++){ cout<<arr[i]; } cout<<" "; for(int i=14;i<19;i++){ cout<<arr[i]; }
a.cc:2:3: error: 'cin' does not name a type 2 | cin>>arr; | ^~~ a.cc:3:2: error: expected unqualified-id before 'for' 3 | for(int i=0;i<5;i++){ | ^~~ a.cc:3:14: error: 'i' does not name a type 3 | for(int i=0;i<5;i++){ | ^ a.cc:3:18: error: 'i' does not name a type ...
s152033792
p03834
C++
#include <vector> #include <bits/stdc++.h> #include <iomanip> using namespace std; int main(){ string a; cin >> a; a[5] = " "; a[13] = " "; cout << a << endl; }
a.cc: In function 'int main()': a.cc:8:12: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 8 | a[5] = " "; a[13] = " "; | ^~~ | | | const char* a.cc:8:25: error: inv...
s215976452
p03834
C++
#include <vector> #include <bits/stdc++.h> #include <iomanip> using namespace std; int main(){ string a; cin >> a; for(int i = 0; 1 ; i++){ if(i == 5){ a[i] = " "; } if(i == 13){ a[i] = " "; break; } cout << a << endl; } }
a.cc: In function 'int main()': a.cc:10:20: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 10 | a[i] = " "; | ^~~ | | | const char* a...
s265885550
p03834
C
#include<stdio.h> int main(){ char S[19]; scanf("%1s",&S[]); S[5] = " "; S[13] = " "; printf("%c",S); return 0 ; }
main.c: In function 'main': main.c:4:18: error: expected expression before ']' token 4 | scanf("%1s",&S[]); | ^ main.c:5:8: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion] 5 | S[5] = " "; | ^ main.c:6:9: error: assign...
s660364444
p03834
C++
#include <vector> #include <bits/stdc++.h> #include <iomanip> using namespace std; int main(){ string a; cin >> a; for(int i = 0; 1 ; i++){ if(i == 5){ a[i] = " " } if(i == 13){ a[i] = " " } cout << a << endl; } }
a.cc: In function 'int main()': a.cc:10:20: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 10 | a[i] = " " | ^~~ | | | const char* a....
s459402811
p03834
C++
#include <bits/stdc++.h> using namespace std; int main(){ string s; cin >> s; s[5]=" ",s[13]=" "; cout << s << endl; return 0; }
a.cc: In function 'int main()': a.cc:8:14: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 8 | s[5]=" ",s[13]=" "; | ^~~ | | | const char* a.cc:8:24: error...
s523284791
p03834
C++
#include <bits/stdc++.h> using namespace std; int main(){ string s; cin >> s; s[5]=’ ’,s[13]=’ ’; cout << s << endl; return 0; }
a.cc:8:14: error: extended character ’ is not valid in an identifier 8 | s[5]=’ ’,s[13]=’ ’; | ^ a.cc:8:16: error: extended character ’ is not valid in an identifier 8 | s[5]=’ ’,s[13]=’ ’; | ^ a.cc:8:24: error: extended character ’ is not valid in an iden...
s154189817
p03834
C++
# include <bits/stdc++.h> using namespace std; string s; int main (){ cin >> s; for(int i=0;i<s.size()){ if(s[i]!=',') cout<<s[i]; else cout<<' '; } }
a.cc: In function 'int main()': a.cc:6:27: error: expected ';' before ')' token 6 | for(int i=0;i<s.size()){ | ^ | ;
s237932510
p03834
C++
#include <iostream> using namespace std; int main(){ string S; cin >> S; S[5] = ' '; S[13] = ' '; cout << ß<< endl; }
a.cc: In function 'int main()': a.cc:8:11: error: '\U000000df' was not declared in this scope 8 | cout << ß<< endl; | ^
s632260553
p03834
C++
#include <bits/stdc++.h> #define rep(i,n) for (int i=0;i<n;i++) using namespace std; int main() { string a;cin>>a; rep(i,s.size()) { if (s[i]==',') s[i]==' '; } cout<<s<<endl; return 0; }
a.cc: In function 'int main()': a.cc:7:9: error: 's' was not declared in this scope 7 | rep(i,s.size()) { | ^ a.cc:2:33: note: in definition of macro 'rep' 2 | #define rep(i,n) for (int i=0;i<n;i++) | ^ a.cc:10:9: error: 's' was not declared in this scope ...
s633236648
p03834
C++
#include <bits/stdc++.h> using namespace std; int main() { string a,b,c;cin<<a<<","<<b<<","<<c; cout<<a<<" "<<b<<" "<<c<<endl; return 0; }
a.cc: In function 'int main()': a.cc:5:19: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 5 | string a,b,c;cin<<a<<","<<b<<","<<c; | ~~~^~~ | | | | ...
s557594665
p03834
C++
#include <iostream> #include <string> int main() { std::string a; std::cin >>a; std::string ss[19]; for(int i==0;i == 18;1++){ ss[i] = a.substr(i,1); if(ss[i] ==","){ ss[i] =" "; } cout << ss[i]; } }
a.cc: In function 'int main()': a.cc:9:12: error: expected ';' before '==' token 9 | for(int i==0;i == 18;1++){ | ^~ | ; a.cc:9:12: error: expected primary-expression before '==' token 9 | for(int i==0;i == 18;1++){ | ^~ a.cc:9:23: error: expected ')' befor...
s863991161
p03834
Java
import java.util.Scanner; public class test { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String str = scan.nextLine(); str = str.replace(',', ' '); System.out.println(str); scan.close(); } }
Main.java:3: error: class test is public, should be declared in a file named test.java public class test { ^ 1 error
s569296932
p03834
C++
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String str = scan.nextLine(); str = str.replace(',', ' '); System.out.println(str); scan.close(); } }
a.cc:1:1: error: 'import' does not name a type 1 | import java.util.Scanner; | ^~~~~~ a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts' a.cc:3:1: error: expected unqualified-id before 'public' 3 | public class Main { | ^~~~~~
s284709611
p03834
C++
#include <iostream> #include <cstdio> #include <string> #include <algorithm> #include <utility> #include <cmath> #include <vector> #include <queue> #include <set> #include <map> #include <functional> using namespace std; typedef long long ll; typedef vector<ll> vl; typedef vector<vector<ll>> vvl; typedef pair<ll, ll> P...
a.cc: In function 'int main()': a.cc:36:12: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 36 | s[5] = " "; | ^~~ | | | const char* a.cc:37:13: error: invalid conver...
s603228189
p03834
C++
#include <bits/stdc++.h> #include <string> #include <math.h> #include <stdio.h> #include <stdlib.h> #include <numeric> using namespace std; int abs(int num){ if (num > 0) return num; else return -num; } int main(){ string S; cin >> S; S.at(5) = " "; S.at(13) = " "; cout << S << endl; }
a.cc: In function 'int main()': a.cc:19:13: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 19 | S.at(5) = " "; | ^~~ | | | const char* a.cc:20:14: error: invalid co...
s844615872
p03834
C++
#include <bits/stdc++.h> using namespace std; #define rep(i,n) for(int i=0;i<n;i++) #define rep1(i,n) for(int i=1;i<=n;i++) typedef long long ll; int main(){ string s; cin >> s; s[5] = " "; s[13] = " "; cout << s << endl; }
a.cc: In function 'int main()': a.cc:11:10: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 11 | s[5] = " "; | ^~~ | | | const char* a.cc:12:11: error: invalid conversion fro...
s514903019
p03834
C++
#include <bits/stdc++.h> using namespace std; #define rep(i,n) for(int i=0;i<n;i++) #define rep1(i,n) for(int i=1;i<=n;i++) typedef long long ll; int main(){ string s; cin >> s; s[5] = " "; s[13] " "; cout << s << endl; }
a.cc: In function 'int main()': a.cc:11:10: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 11 | s[5] = " "; | ^~~ | | | const char* a.cc:12:8: error: expected ';' before str...
s312270927
p03834
C++
#include <bits/stdc++.h> using namespace std; int main() { string str; cin >> str; for(int i=0; i<str.size(); i++){ if(str.at(i)== ","){ cout << " "; }else{ cout << str.at(i); } } cout << endl; }
a.cc: In function 'int main()': a.cc:10:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 10 | if(str.at(i)== ","){ | ~~~~~~~~~^~~~~~
s604686800
p03834
C++
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; s.at(5) = " "; s.at(13) = " "; cout << s << endl; }
a.cc: In function 'int main()': a.cc:8:19: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 8 | s.at(5) = " "; | ^~~ | | | const char* a.cc:9...
s763652972
p03834
C++
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; s.at(5) = s.at(13) = " "; cout << s << endl; }
a.cc: In function 'int main()': a.cc:8:30: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 8 | s.at(5) = s.at(13) = " "; | ^~~ | | | ...
s852833092
p03834
C++
#include <queue> #include <iostream> #include <map> #include <algorithm> #include <string> #include <cmath> #include <vector> #include <iomanip> #include <cstdio> #define rep(i, n) for(long long i = 0;(i) < (n);(i)++) using namespace std; using ll = long long; const ll mod = 1000000007; int main() { string str; cin...
a.cc: In function 'int main()': a.cc:21:22: error: expected ';' before ':' token 21 | str[12] = ' ': | ^ | ;
s152837570
p03834
C++
#include<bits/stdc++.h> using namespace std; #define int long long #define double long double #define fo(a,b) for(int a=0;a<b;a++) #define Sort(a) sort(a.begin(),a.end()) #define rev(a) reverse(a.begin(),a.end()) #define fi first #define se second #define co(a) cout<<a<<endl #define sz size() #define bgn begin() #defin...
a.cc: In function 'int main()': a.cc:284:7: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 284 | s[5]==" "; a.cc:285:8: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] 285 | s[13]==" ";
s404306526
p03834
C++
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >>s; for(int i= 0;i<s.size();i++) { if (i==5 || i==13) { cout<<" "; } else cout << s[i]; }
a.cc: In function 'int main()': a.cc:12:2: error: expected '}' at end of input 12 | } | ^ a.cc:5:1: note: to match this '{' 5 | { | ^
s432077046
p03834
C
#include <stdio.h> int main(void){ char a[10],b[10],c[10],haiku[20],space=" "; scanf("%s,%s,&s",a,b,c); sprintf(haiku,"%s%c%s%c%s",a,space,b,space,c); printf("%s",haiku) return 0; }
main.c: In function 'main': main.c:3:48: error: initialization of 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion] 3 | char a[10],b[10],c[10],haiku[20],space=" "; | ^~~ main.c:6:27: error: expected ';' before 'return' ...
s704493175
p03834
C++
#include<bits/stdc++.h> using namespace std; int main(){ getline S; for (int i=0; i<S.size(); i++){ if (S.at(i)==','){ cout << ' '; } else { cout << S.at(i); } } }
a.cc: In function 'int main()': a.cc:6:10: error: expected ';' before 'S' 6 | getline S; | ^~ | ; a.cc:6:12: error: statement cannot resolve address of overloaded function 6 | getline S; | ^ a.cc:8:19: error: 'S' was not declared in this scope 8 | for (in...
s421704430
p03834
C++
#include <bits/stdc++.h> using namespace std; int main() { string S; cin >>S; S.at(6)=' '; S.at(14)=' '; cout <S; }
a.cc: In function 'int main()': a.cc:9:7: error: no match for 'operator<' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 9 | cout <S; | ~~~~ ^~ | | | | | std::string {aka std::__cxx11::basic_string<char>} ...
s656101282
p03834
C++
print(input().replace(","," "))
a.cc:1:6: error: expected constructor, destructor, or type conversion before '(' token 1 | print(input().replace(","," ")) | ^
s882673986
p03834
C++
#include<bits/stdc++.h> using namespace std; int main() { string s; cin >> x; s[5] = ' '; s[13] = ' ';a cout << s << endl; return 0; }
a.cc: In function 'int main()': a.cc:9:10: error: 'x' was not declared in this scope 9 | cin >> x; | ^ a.cc:12:15: error: 'a' was not declared in this scope 12 | s[13] = ' ';a | ^
s775540322
p03834
C++
#include<bits/stdc++.h> using namespace std; int main() { string s; cin >> x; s[5] = ' '; s[13] = ' '; cout << s << endl; return 0; }
a.cc: In function 'int main()': a.cc:9:10: error: 'x' was not declared in this scope 9 | cin >> x; | ^
s803488860
p03834
C
#include <stdio.h> int main() { char s[18]; scanf_s("%c",&s[18]); s[5] = ' '; s[13] = ' '; printf("%c", s); return 0; }
main.c: In function 'main': main.c:6:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration] 6 | scanf_s("%c",&s[18]); | ^~~~~~~ | scanf
s457256579
p03834
C++
#include <iostream> using namespace std; int main() { cin >> word5_1; cin >> word7; cin >> word5_2; cout << word5_1 << word7 << word5_2 << endl; return 0; }
a.cc: In function 'int main()': a.cc:5:11: error: 'word5_1' was not declared in this scope 5 | cin >> word5_1; | ^~~~~~~ a.cc:6:11: error: 'word7' was not declared in this scope 6 | cin >> word7; | ^~~~~ a.cc:7:11: error: 'word5_2' was not declared in this scope 7 | ...
s281240786
p03834
C++
#include<bits/stdc++.h> using namespace std; int main(){ string s; cin>>s; for(auto x : s){ cout<<x; if(c==',') cout<<" "; } return 0; }
a.cc: In function 'int main()': a.cc:10:8: error: 'c' was not declared in this scope 10 | if(c==',') cout<<" "; | ^
s988911011
p03834
C++
clude<iostream> #include<string> int main(){ std::string s; std::cin >> s; int n = s.size(); std::string ans = ""; for(int i = 0; i < n; i++){ if(i == 5 || i == 13) continue; else ans += s[i]; } std::cout << ans << std::endl; return 0; }
a.cc:1:1: error: 'clude' does not name a type 1 | clude<iostream> | ^~~~~ In file included from /usr/include/c++/14/bits/char_traits.h:42, from /usr/include/c++/14/string:42, from a.cc:2: /usr/include/c++/14/bits/postypes.h:68:11: error: 'ptrdiff_t' does not name a type 68...
s521869347
p03834
C++
#include<iostrem> #include<string> int main(){ std::string s; std::cin >> s; int n = s.size(); std::string ans = ""; for(int i = 0; i < n; i++){ if(i == 5 || i == 13) continue; else ans += s[i]; } std::cout << ans << std::endl; return 0; }
a.cc:1:9: fatal error: iostrem: No such file or directory 1 | #include<iostrem> | ^~~~~~~~~ compilation terminated.
s446279971
p03834
C++
#include <bits/stdc++.h> using namespace std; #define rep(i,n) for(long long (i)=0;(i)<(n);(i)++) #define ll long long #define pr_qu priority_queue #define vec(name,size,common) vector<ll> (name)((size),(common)) int main(){ string s; cin>>s; for(int i=0;i<n;i++){ if(s.at(i)==','){ s.at(i) ...
a.cc: In function 'int main()': a.cc:17:17: error: 'n' was not declared in this scope 17 | for(int i=0;i<n;i++){ | ^
s988896396
p03834
C++
#include <bits/stdc++.h> using namespace std; int main() { char s[20]; gets(s); for(int i=0;i<=4;i++)cout<<s[i]; cout<<" "; for(int i=6;i<=12;i++)cout<<s[i]; cout<<" "; for(int i=14;i<=18;i++)cout<<s[i]; }
a.cc: In function 'int main()': a.cc:6:5: error: 'gets' was not declared in this scope; did you mean 'getw'? 6 | gets(s); | ^~~~ | getw
s164293770
p03834
C++
#include<bits/stdc++> using namespace std; int main() { string s; cin>>s; for(int i=0;i<s.size();i++) if(s[i]==',') s[i]=' '; cout<<s; }
a.cc:1:9: fatal error: bits/stdc++: No such file or directory 1 | #include<bits/stdc++> | ^~~~~~~~~~~~~ compilation terminated.
s101012000
p03834
C++
#include <bits/stdc++.h> #define rep(i,m,n) for(int i=m; i<n; i++) #define co(n) cout << n << endl using namespace std; int main(){ int a, b; string s; cin >> s; s.at(5)=" "; s.at(13)=" "; co(s); return 0; }
a.cc: In function 'int main()': a.cc:9:11: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 9 | s.at(5)=" "; | ^~~ | | | const char* a.cc:10:12: error: invalid conversion ...
s449443165
p03834
C++
# -*- Coding: utf-8 -*- a = list(input().split(',')) for i in a: print(i, end=" ")
a.cc:1:3: error: invalid preprocessing directive #- 1 | # -*- Coding: utf-8 -*- | ^ a.cc:2:1: error: 'a' does not name a type 2 | a = list(input().split(',')) | ^
s544237579
p03834
C++
#include"bits/stdc++.h" #include<boost/multi_array.hpp> #include<boost/optional.hpp> #include<boost/range/irange.hpp> #include<boost/range/algorithm.hpp> #include<boost/range/adaptors.hpp> using namespace std; namespace adaptor = boost::adaptors; #define rep(i,n) for(int (i)=0;(i)<(n);(i)++) #define rep3(i,m,n) for(i...
a.cc:2:9: fatal error: boost/multi_array.hpp: No such file or directory 2 | #include<boost/multi_array.hpp> | ^~~~~~~~~~~~~~~~~~~~~~~ compilation terminated.
s692518784
p03834
C++
#include<bits/stdc++.h> using namespace std; #define debug(n) cerr << #n << ':' << n << endl; #define dline cerr << __LINE__ << endl; using ll = long long; template<class T, class U> using P = pair<T,U>; template<class T> using Heap = priority_queue<T>; template<class T> using heaP = priority_queue<T,vector<T>,g...
a.cc: In function 'int main()': a.cc:43:17: error: expected primary-expression before ')' token 43 | getline(cin,c,); | ^
s121415951
p03834
C++
#include<bits/stdc++.h> using namespace std; int main() { string a; cin>>a; for(int i=0;i<a.length();i++) { if(a[i]==',') { a[i]=' '; }#include<bits/stdc++.h> using namespace std; int main() { string a; cin>>a; for(int i=0;i<a.length();i++) ...
a.cc:12:14: error: stray '#' in program 12 | }#include<bits/stdc++.h> | ^ a.cc: In function 'int main()': a.cc:12:15: error: 'include' was not declared in this scope 12 | }#include<bits/stdc++.h> | ^~~~~~~ a.cc:12:23: error: 'bits' was not declared in...
s742882467
p03834
C++
#include<bits/stdc++.h> using namespace std; int main() { string a; cin>>a; for(int i=0;i<a.length();i++) { if(a[i]==',') { a[i]=' '; }#include<bits/stdc++.h> using namespace std; int main() { string a; cin>>a; for(int i=0;i<a.length();i++) ...
a.cc:12:14: error: stray '#' in program 12 | }#include<bits/stdc++.h> | ^ a.cc: In function 'int main()': a.cc:12:15: error: 'include' was not declared in this scope 12 | }#include<bits/stdc++.h> | ^~~~~~~ a.cc:12:23: error: 'bits' was not declared in...
s313473874
p03834
C++
a,b,c = input().split(',') print(a,b,c,sep=' ')
a.cc:1:1: error: 'a' does not name a type 1 | a,b,c = input().split(',') | ^
s018180519
p03834
Java
public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); String a = sc.next(); // 置き換え処理 a = a.replace(",", " "); System.out.print(a); } }
Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main Main.java:3: error: cannot find symbol Scanner sc = new Scanner(System.in); ^ symbol: class Scanner location: class Main 2 errors
s533326421
p03834
Java
public static void main(String args[]) { String a = args[0]; // 置き換え処理 a = a.replace(",", " "); // ","→" "(ブランク)に置き換える System.out.print(a); }
Main.java:1: error: unnamed classes are a preview feature and are disabled by default. public static void main(String args[]) { ^ (use --enable-preview to enable unnamed classes) 1 error
s108610344
p03834
Java
import java.util.Scanner; public class ABC051A { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String[] s = sc.next().split(","); sc.close(); StringBuilder sb = new StringBuilder(); sb.append(s[0] + " "); sb.append(s[1] + " "); sb.append(s[2]); System.out.println(sb.to...
Main.java:3: error: class ABC051A is public, should be declared in a file named ABC051A.java public class ABC051A { ^ 1 error
s793879820
p03834
C++
#include <bits/stdc++.h> using namespace std; int main(){ string s; cin >> s; s(7)=' '; s(15)=' '; cout << s << endl; }
a.cc: In function 'int main()': a.cc:7:4: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int)' 7 | s(7)=' '; | ~^~~ a.cc:8:4: error: no match for call to '(std::string {aka std::__cxx11::basic_string<char>}) (int)' 8 | s(15)=' '; | ~^~~~
s026171543
p03834
C++
#include <stdio.h> #include <string.h> int main () { int i; char a[1000]; gets (a); for (i=0;a[i]!='\0';i++) { if (a[i]==',') { a[i]=' '; } } printf ("%s", a); return 0; }
a.cc: In function 'int main()': a.cc:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 7 | gets (a); | ^~~~ | getw
s474369896
p03834
C++
#include <stdio.h> int main () { int i; char a[1000]; gets (a); for (i=0;a[i]!='\0';i++) { if (a[i]==',') { a[i]=' '; } } printf ("%s", a); return 0; }
a.cc: In function 'int main()': a.cc:6:9: error: 'gets' was not declared in this scope; did you mean 'getw'? 6 | gets (a); | ^~~~ | getw
s690757567
p03834
C++
#include<iostream> using namespace std; int main(void){ int k,s; cin >> k>>s; int cnt = 0; for (int i = 0; i <= K; i++) { for (int j = 0; j <= K;j++){ if(0<=s-i-j&&s-i-j<=k){ cnt++; } } } cout << cnt << endl; }
a.cc: In function 'int main()': a.cc:7:24: error: 'K' was not declared in this scope 7 | for (int i = 0; i <= K; i++) | ^
s417904264
p03834
C++
#include <stdio.h> #include <iostream> #include <string> using namespace std; int main(void){ string N[20]; cin >> N; N[5]=' '; N[13]=' '; printf("%s", N); return 0; }
a.cc: In function 'int main()': a.cc:10:7: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::string [20]' {aka 'std::__cxx11::basic_string<char> [20]'}) 10 | cin >> N; | ~~~ ^~ ~ | | | | | std::string [20] {aka std::__cxx...
s350097526
p03834
C++
#include <stdio.h> #include <iostream> #include <string> using namespace std; int main(void){ string N[20]; cin >> N; N[5]=" "; N[13]=" "; printf("%s", N); return 0; }
a.cc: In function 'int main()': a.cc:10:7: error: no match for 'operator>>' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'std::string [20]' {aka 'std::__cxx11::basic_string<char> [20]'}) 10 | cin >> N; | ~~~ ^~ ~ | | | | | std::string [20] {aka std::__cxx...
s768804141
p03834
C++
#include<bits/stdc++.h> using namespace std; int main() { char str[21]; gets(str); for(int i=0;str[i]!='\0';i++) { if(str[i]==',')printf(" "); else printf("%c",str[i]); } printf("\n"); return 0; }
a.cc: In function 'int main()': a.cc:6:5: error: 'gets' was not declared in this scope; did you mean 'getw'? 6 | gets(str); | ^~~~ | getw
s347574593
p03834
C++
#include<iostream> #include<string> #include<algorithm> using namespace std; int main(){ char s[18]; cin>>s; s[5]=" "; s[13]=" "; cout<<s; return 0; }
a.cc: In function 'int main()': a.cc:10:8: error: invalid conversion from 'const char*' to 'char' [-fpermissive] 10 | s[5]=" "; | ^~~ | | | const char* a.cc:11:9: error: invalid conversion from 'const char*' to 'char' [-fpermissive] 11 | s[13]=" "; | ^~~ ...
s276514964
p03834
C++
#include<iostream> #include<string> #include<algorithm> using namespace std; int main(){ string s; cin>>s; s[5]=" "; s[13]=" "; cout<<s; return 0; }
a.cc: In function 'int main()': a.cc:10:8: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 10 | s[5]=" "; | ^~~ | | | const char* a.cc:11:9: error: invalid conversion from 'const c...
s816189034
p03834
C++
s=input().split(",") print(*s)
a.cc:1:1: error: 's' does not name a type 1 | s=input().split(",") | ^
s461529132
p03834
C++
#include <bits/stdc++.h> #define rep(i,n) for (int i = 0; i < (n); ++i) using namespace std; typedef long long ll; int main() { string s; cin >> s; s[5]=" "; s[13]=" "; cout << s << endl; return 0; }
a.cc: In function 'int main()': a.cc:9:8: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 9 | s[5]=" "; | ^~~ | | | const char* a.cc:10:9: error: invalid conversion from 'const ch...
s013001735
p03834
C++
#include <bits/stdc++.h> using namespace std; int main() { string a; cin >> a; a.at(5)=' '; a.at(13)=' '; cout >> a >> endl; }
a.cc: In function 'int main()': a.cc:9:8: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'}) 9 | cout >> a >> endl; | ~~~~ ^~ ~ | | | | | std::string {aka std::__cxx11::...
s058546786
p03834
Java
import java.io.*; import java.util.*; public class CF { FastScanner in; PrintWriter out; void solve() { String s = in.next(); String[] arr = s.split(",",3); out.println(arr[0]+' '+arr[1]+' '+arr[2]); } void run() { try { in = new FastScanner(new File("t...
Main.java:4: error: class CF is public, should be declared in a file named CF.java public class CF { ^ 1 error
s730161707
p03834
C++
#include<iostream> #incllude<string.h> using namespace std; int main(){ string s; cin>>s; s[5]=' '; s[13]=' '; cout<<s; return 0; }
a.cc:2:2: error: invalid preprocessing directive #incllude; did you mean #include? 2 | #incllude<string.h> | ^~~~~~~~ | include
s057926403
p03834
C++
using namespace std; #define rep(i, n) for (int i = 0; i < (int)(n); i++) #define rep2(i, s, n) for (int i = (s); i < (int)(n); i++) typedef long long ll; int main() { int K, S; cin >> K >> S; int cnt; for (int x = K; x >= 0; x--){ if (x + 2 * K < S) { break; } for (...
a.cc: In function 'int main()': a.cc:8:5: error: 'cin' was not declared in this scope 8 | cin >> K >> S; | ^~~ a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' +++ |+#include <iostream> 1 | using namespace std; a.cc:23:5: erro...
s649254070
p03834
C++
#include <bits/stdc++.h> using namespace std; int main() { vector<char> S(19); for(int i=0; i<19; i++){ cin>>S.at(i); } S.at(5)=' '; S.at(13)=' '; cout<<S<<endl; }
a.cc: In function 'int main()': a.cc:12:7: error: no match for 'operator<<' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'std::vector<char>') 12 | cout<<S<<endl; | ~~~~^~~ | | | | | std::vector<char> | std::ostream {aka std::basic_ostream<char>} In ...
s786387364
p03834
C++
#include <bits/stdc++.h> using namespace std; int main() { vector<char> S(19); for(int i=0; i<19; i++){ cin>>S.at(i); if(S.at(i)==',') S.at(i)=' '; else continue; } cout<<S<<endl; }
a.cc: In function 'int main()': a.cc:11:7: error: no match for 'operator<<' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'std::vector<char>') 11 | cout<<S<<endl; | ~~~~^~~ | | | | | std::vector<char> | std::ostream {aka std::basic_ostream<char>} In ...
s709250767
p03834
C++
//新幹線からAC #include <bits/stdc++.h> #include <numeric> #include <iomanip> using namespace std; #define int long long #define pb push_back #define ub upper_bound #define lb upper_bound #define mp make_pair #define F first #define S second #define FOR(i,a,b) for(int (i)=(a);(i)<(b);(i)++) #define rep(i,n) FOR(i,0,n)...
a.cc: In function 'bool solve()': a.cc:63:39: error: operands to '?:' have different types 'const char*' and '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} 63 | cout << ((s[i] == ',')?" ":s[i]) a.cc:65:1: warning: no return statement in function returning non-void [-...
s864942420
p03834
C++
#include <iostream> #include <iomanip> #include <vector> #include <cmath> #include <algorithm> #include <iomanip> #include <cstring> #define rep(i, N) for (int i = 0; i < (int)N; i++) using namespace std; typedef long long ll; const ll LLINF = 9223372036854775807; const int MOD = 1000000007; int main() { string s; c...
a.cc: In function 'int main()': a.cc:16:15: error: 'substr' was not declared in this scope; did you mean 'strstr'? 16 | string s1 = substr(s,0,5), s2 = substr(s,6,7), s3 = substr(s,14,5); | ^~~~~~ | strstr a.cc:17:24: error: 's2' was not declared in this scope; did you mean ...
s111582740
p03834
C++
#include <iostream> #include <iomanip> #include <vector> #include <cmath> #include <algorithm> #include <iomanip> #include <cstring> #define rep(i, N) for (int i = 0; i < (int)N; i++) using namespace std; typedef long long ll; const ll LLINF = 9223372036854775807; const int MOD = 1000000007; int main() { string s; c...
a.cc: In function 'int main()': a.cc:16:11: error: 'substr' was not declared in this scope; did you mean 'strstr'? 16 | cout << substr(s,0,5) << " " << substr(s,6,7) << " " << substr(s,14,5) << endl; | ^~~~~~ | strstr
s559603250
p03834
C++
#include <iostream> #include <iomanip> #include <vector> #include <cmath> #include <algorithm> #include <iomanip> #include <cstring> #define rep(i, N) for (int i = 0; i < (int)N; i++) using namespace std; typedef long long ll; const ll LLINF = 9223372036854775807; const int MOD = 1000000007; int main() { string s; c...
a.cc: In function 'int main()': a.cc:16:11: error: 'substr' was not declared in this scope; did you mean 'strstr'? 16 | cout << substr(0,5) << " " << substr(6,7) << " " << substr(14,5) << endl; | ^~~~~~ | strstr
s273485959
p03834
C
#include int main(void){ char str1[] = "abcde"; char str2[] = "abcdefg"; char str3[] = "abcde"; scanf("%s %s %s",&str1,&str2,&str3); printf("%s %s %s",str1, str2, str3); return 0; }
main.c:1:10: error: #include expects "FILENAME" or <FILENAME> 1 | #include | ^ main.c: In function 'main': main.c:9:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 9 | scanf("%s %s %s",&str1,&str2,&str3); | ^~~~~ main.c:1:1: note: include '<stdio.h>'...
s985994379
p03834
C
#include int main(void){ char str1[] = "abcde"; char str2[] = "abcdefg"; char str3[] = "abcde"; scanf("%s %s %s",&str1,&str2,&str3); printf("%s %s %s",&str1, &str2, &str3); return 0; }
main.c:1:10: error: #include expects "FILENAME" or <FILENAME> 1 | #include | ^ main.c: In function 'main': main.c:9:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration] 9 | scanf("%s %s %s",&str1,&str2,&str3); | ^~~~~ main.c:1:1: note: include '<stdio.h>'...
s061792981
p03834
C++
// --------------------<optimizations>-------------------- #pragma GCC optimize("O3") //(UNCOMMENT WHEN HAVING LOTS OF RECURSIONS)\ #pragma comment(linker, "/stack:200000000") //(UNCOMMENT WHEN TRYING TO BRUTEFORCE WITH A LOT OF LOOPS)\ #pragma GCC optimize("unroll-loops") #include<bits/stdc++.h> using namespa...
a.cc: In function 'int main()': a.cc:57:28: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 57 | if(s[i]==',') s[i]=" "; | ^~~ | | | ...
s888176576
p03834
C++
#include<bits/stdc++.h> using namespace std; signed main() { string s,a; cin>>s; for(int i=0;i<s.size();i++){ if(s[i]!=','){ a[i]=s[i]; }else{ a[i]=' '; } for(int i=0;i<s.size();i++){ cout<<a[i]; } cout<<"\n"; }
a.cc: In function 'int main()': a.cc:17:2: error: expected '}' at end of input 17 | } | ^ a.cc:4:1: note: to match this '{' 4 | { | ^
s496002877
p03834
C++
#include<stdio.h> int main() { char s[19]; int i,count; gets(s); for(i=0;i<19;i++){ if(i==5||i==13){ printf(" "); i++; } printf("%c",s[i]); } }
a.cc: In function 'int main()': a.cc:6:5: error: 'gets' was not declared in this scope; did you mean 'getw'? 6 | gets(s); | ^~~~ | getw
s318498135
p03834
C++
#include<stdio.h> #include<string.h> #include<stdlib.h> int main() { int i; char input[19]; gets(input); for(i=0;i<19;i++) { if(input[i]==','||input[i]=='.') { input[i]=' '; } } printf("%s\n",input); }
a.cc: In function 'int main()': a.cc:9:5: error: 'gets' was not declared in this scope; did you mean 'getw'? 9 | gets(input); | ^~~~ | getw
s503921065
p03834
C++
#include <iostream> using namespace std; int main() { string s; cin >> s; s.replace(5, 1, ' '); s.replace(13, 1, ' '); cout << s << endl; }
a.cc: In function 'int main()': a.cc:9:18: error: no matching function for call to 'std::__cxx11::basic_string<char>::replace(int, int, char)' 9 | s.replace(5, 1, ' '); | ~~~~~~~~~^~~~~~~~~~~ In file included from /usr/include/c++/14/string:54, from /usr/include/c++/14/bits/lo...
s390986592
p03834
C++
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; for(int i = 0; i < 19; i++){ if(s.at(i) == ','){ s.at(i) = " "; } } cout << s <<endl; }
a.cc: In function 'int main()': a.cc:9:17: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 9 | s.at(i) = " "; | ^~~ | | | const char*
s655466959
p03834
C++
#include <bits/stdc++.h> using namespace std; using lint = long long; template<class T = int> using V = vector<T>; template<class T = int> using VV = V< V<T> >; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); char c; while (cin >> c) { cout << (c == ',' ? ' ' : c) } }
a.cc: In function 'int main()': a.cc:11:33: error: expected ';' before '}' token 11 | cout << (c == ',' ? ' ' : c) | ^ | ; 12 | } | ~
s924397268
p03834
C++
#include<iostream> using namespace std; int main() { string str; cin >> str; cout << str[0;4] << ' ' << str[6;12] << ' ' << str[14;] << endl; }
a.cc: In function 'int main()': a.cc:8:16: error: expected ']' before ';' token 8 | cout << str[0;4] << ' ' << str[6;12] << ' ' << str[14;] << endl; | ^ | ] a.cc:8:18: error: expected ';' before ']' token 8 | cout << str[0;4] << ' ' << str[6;12] << ' ' << str[14;] <...
s077175293
p03834
C++
#include<iostream> using namespace std; int main() { string str; cin >> str; cout << str[0:4] << ' ' << str[6:12] << ' ' << str[14:] << endl; }
a.cc: In function 'int main()': a.cc:8:16: error: expected ']' before ':' token 8 | cout << str[0:4] << ' ' << str[6:12] << ' ' << str[14:] << endl; | ^ | ] a.cc:8:16: error: expected ';' before ':' token 8 | cout << str[0:4] << ' ' << str[6:12] << ' ' << str[14:] <...
s331004437
p03834
C++
#include <bits/stdc++.h> using namespace std; int main(){ string s; cin >> s; s.at(6)=' ' s.at(14)=' ' cout << s << endl; }
a.cc: In function 'int main()': a.cc:6:14: error: expected ';' before 's' 6 | s.at(6)=' ' | ^ | ; 7 | s.at(14)=' ' | ~
s778074225
p03834
C++
#include <iostream> using namespace std; int main(){ int x,y,z; int K,S; int pattern=0; cin >> K >> S; for(x=0;x<=K;x++){ for(y=0;y<=K;y++){ z = S - x - z if(x+y+z == S) pattern++; } } cout << pattern << endl; }
a.cc: In function 'int main()': a.cc:14:22: error: expected ';' before 'if' 14 | z = S - x - z | ^ | ; 15 | if(x+y+z == S) | ~~
s352618717
p03834
C++
#include <iostream> using namespace std; int main(){ int x,y,z; int K,S; int pattern=0; cin >> K >> S; for(x=0;x<=K;x++){ for(y=0;y<=K;y++){ z = S - x - z; if(x+y+z == S) pattern++; } } } cout << pattern << endl; }
a.cc:21:3: error: 'cout' does not name a type 21 | cout << pattern << endl; | ^~~~ a.cc:23:1: error: expected declaration before '}' token 23 | } | ^
s368305424
p03834
C++
#include <iostream> using namespace std; int main(){ int x,y,z; int K,S; int pattern=0; cin >> K >> S; for(x=0;x<=K;x++){ for(y=0;y<=K;y++){ z = S - x - z if(x+y+z == S) pattern++; } } } cout << pattern << endl; }
a.cc: In function 'int main()': a.cc:14:22: error: expected ';' before 'if' 14 | z = S - x - z | ^ | ; 15 | if(x+y+z == S) | ~~ a.cc: At global scope: a.cc:21:3: error: 'cout' does not name a type 21 | cout << pat...
s450781364
p03834
C++
#include <bits/stdc++.h> using namespace std; int main(){ string s; cin >> s; for (int i : {5, 13}) { s[i] = " "; } cout << s; }
a.cc: In function 'int main()': a.cc:8:12: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 8 | s[i] = " "; | ^~~ | | | const char*
s604332410
p03834
C++
#include <bits/stdc++.h> using namespace std; int main(){ string s; cin >> s; for (int i : {5, 13}){ s[i]=" "; } cout << s; }
a.cc: In function 'int main()': a.cc:7:10: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive] 7 | s[i]=" "; | ^~~ | | | const char*
s495705607
p03834
C++
#include <bits/stdc++.h> using namespace std; int main() { string str; cin >> str str.at(5) = ' '; str.at(13) = ' '; cout << str << endl; }
a.cc: In function 'int main()': a.cc:6:13: error: expected ';' before 'str' 6 | cin >> str | ^ | ; 7 | 8 | str.at(5) = ' '; | ~~~
s983843015
p03834
C++
int main() { int k, s; std::cin >> k; std::cin >> s; int cnt = 0; for (int ix = 0; ix < k+1; ++ix) { const int sx = s - ix; if (sx > 2 * k) continue; // simple case if (k >= sx) { cnt += s - ix + 1; continue; } //...
a.cc: In function 'int main()': a.cc:4:10: error: 'cin' is not a member of 'std' 4 | std::cin >> k; | ^~~ a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>' +++ |+#include <iostream> 1 | int main() a.cc:5:10: error: 'cin' i...
s754043002
p03834
C++
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for(int i = 0; i < (int)(n); i++) int main(){ int S; cin >> S; rep(i, 19){ if(i != 6 && i != 14){ cout << S.at(i); } else { cout << " "; } } cout << endl; }
a.cc: In function 'int main()': a.cc:10:35: error: request for member 'at' in 'S', which is of non-class type 'int' 10 | cout << S.at(i); | ^~
s293393216
p03834
C++
#include <bits/stdc++.h> using namespace std; #define rep(i, n) for(int i = 0; i < (int)(n); i++) int main(){ int S; cin >> S; rep(i, 19){ if(i != 6 && i != 14){ cout << S.at(i); } else { cout << " "; } } cout << endl; }
a.cc: In function 'int main()': a.cc:10:35: error: request for member 'at' in 'S', which is of non-class type 'int' 10 | cout << S.at(i); | ^~