submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s440444392 | p03643 | C++ | #include <bits/stdc++.h>
using namespace std;
#define REP(i,n) for(int (i)=0;(i)<(int)(n);(i)++)
int in() { int x; scanf("%d", &x); return x; }
template<typename T> void pv(T a, T b) { for (T i = a; i < b; i++) cout << *i << ' '; cout << endl; }
template<typename T, typename U> void chmin(T &x, U y) { if (y < x) x = y; }
template<typename T, typename U> void chmax(T &x, U y) { if (x < y) x = y; }
using ll = long long;
int main() {
ll K;
cin >> K;
puts("2");
cout << K + 1 << ' ' 1 << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:20:23: error: expected ';' before numeric constant
20 | cout << K + 1 << ' ' 1 << endl;
| ^~
| ;
|
s248863134 | p03643 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
int n,m;
cin >> n;
while(1){
n=n/2
m+=1
if(n%2==0)break;
}
cout << m << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:10:8: error: expected ';' before 'm'
10 | n=n/2
| ^
| ;
11 | m+=1
| ~
|
s385874516 | p03643 | C++ | #include<iostream>
using namespace std
int main(){
int N;
cin>>N;
cout<<"ABC"<<N;
return 0;
} | a.cc:2:20: error: expected ';' before 'int'
2 | using namespace std
| ^
| ;
3 | int main(){
| ~~~
|
s925847347 | p03643 | C++ | #include<iostream>
using namespace std
int main(){
int N;
cis>>N;
cout<<"ABC"<<N;
return 0;
} | a.cc:2:20: error: expected ';' before 'int'
2 | using namespace std
| ^
| ;
3 | int main(){
| ~~~
a.cc: In function 'int main()':
a.cc:5:9: error: 'cis' was not declared in this scope
5 | cis>>N;
| ^~~
|
s247981391 | p03643 | Java | public static void main (String args[]){
String num = args[0];
String msg = "ABC";
System.out.printf(msg+num);
} | 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
|
s299049086 | p03643 | Java | public main (args[]){
string num = args[0];
string msg = "ABC";
system.out.printf(msg+num);
} | Main.java:1: error: class, interface, enum, or record expected
public main (args[]){
^
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
string msg = "ABC";
^
(use --enable-preview to enable unnamed classes)
Main.java:5: error: class, interface, enum, or record expected
system.out.printf(msg+num);
^
Main.java:6: error: class, interface, enum, or record expected
}
^
4 errors
|
s121089023 | p03643 | C | #include <iostream>
using namespace std;
int main(){
int n;
cin >> n;
cout << "ABC" << n ;
return 0;
}
| main.c:1:10: fatal error: iostream: No such file or directory
1 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
s093177673 | p03643 | C++ | #include <iostream>
#include <string>
using namespace std;
int main() {
int A;
cin >> A;
cout << "ABC" << A << endl
}
| a.cc: In function 'int main()':
a.cc:8:35: error: expected ';' before '}' token
8 | cout << "ABC" << A << endl
| ^
| ;
9 |
10 | }
| ~
|
s176235098 | p03643 | C++ | #include <iostream>
using namespace std;
int main() {
auto N = static_cast<int>(cin);
cout << "ABC" << N << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:6:10: error: invalid 'static_cast' from type 'std::istream' {aka 'std::basic_istream<char>'} to type 'int'
6 | auto N = static_cast<int>(cin);
| ^~~~~~~~~~~~~~~~~~~~~
|
s734849189 | p03643 | C++ | #include <iostream>
using namespace std;
int main() {
auto N = cin;
cout << "ABC" << N << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:6:10: error: use of deleted function 'std::basic_istream<_CharT, _Traits>::basic_istream(const std::basic_istream<_CharT, _Traits>&) [with _CharT = char; _Traits = std::char_traits<char>]'
6 | auto N = cin;
| ^~~
In file included from /usr/include/c++/14/iostream:42,
from a.cc:1:
/usr/include/c++/14/istream:704:7: note: declared here
704 | basic_istream(const basic_istream&) = delete;
| ^~~~~~~~~~~~~
a.cc:6:10: note: use '-fdiagnostics-all-candidates' to display considered candidates
6 | auto N = cin;
| ^~~
a.cc:7:15: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and 'std::basic_istream<char>')
7 | cout << "ABC" << N << endl;
| ~~~~~~~~~~~~~ ^~ ~
| | |
| | std::basic_istream<char>
| std::basic_ostream<char>
a.cc:7:15: note: candidate: 'operator<<(int, int)' (built-in)
7 | cout << "ABC" << N << endl;
| ~~~~~~~~~~~~~~^~~~
a.cc:7:15: note: no known conversion for argument 2 from 'std::basic_istream<char>' to 'int'
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:116:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ostream_type& (*)(__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
116 | operator<<(__ostream_type& (*__pf)(__ostream_type&))
| ^~~~~~~~
/usr/include/c++/14/ostream:116:36: note: no known conversion for argument 1 from 'std::basic_istream<char>' to 'std::basic_ostream<char>::__ostream_type& (*)(std::basic_ostream<char>::__ostream_type&)' {aka 'std::basic_ostream<char>& (*)(std::basic_ostream<char>&)'}
116 | operator<<(__ostream_type& (*__pf)(__ostream_type&))
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/ostream:125:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>; __ios_type = std::basic_ios<char>]'
125 | operator<<(__ios_type& (*__pf)(__ios_type&))
| ^~~~~~~~
/usr/include/c++/14/ostream:125:32: note: no known conversion for argument 1 from 'std::basic_istream<char>' to 'std::basic_ostream<char>::__ios_type& (*)(std::basic_ostream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'}
125 | operator<<(__ios_type& (*__pf)(__ios_type&))
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/usr/include/c++/14/ostream:135:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
135 | operator<<(ios_base& (*__pf) (ios_base&))
| ^~~~~~~~
/usr/include/c++/14/ostream:135:30: note: no known conversion for argument 1 from 'std::basic_istream<char>' to 'std::ios_base& (*)(std::ios_base&)'
135 | operator<<(ios_base& (*__pf) (ios_base&))
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/usr/include/c++/14/ostream:174:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
174 | operator<<(long __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:174:23: note: no known conversion for argument 1 from 'std::basic_istream<char>' to 'long int'
174 | operator<<(long __n)
| ~~~~~^~~
/usr/include/c++/14/ostream:178:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
178 | operator<<(unsigned long __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:178:32: note: no known conversion for argument 1 from 'std::basic_istream<char>' to 'long unsigned int'
178 | operator<<(unsigned long __n)
| ~~~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:182:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(bool) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
182 | operator<<(bool __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:182:23: note: no known conversion for argument 1 from 'std::basic_istream<char>' to 'bool'
182 | operator<<(bool __n)
| ~~~~~^~~
In file included from /usr/include/c++/14/ostream:1022:
/usr/include/c++/14/bits/ostream.tcc:96:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(short int) [with _CharT = char; _Traits = std::char_traits<char>]'
96 | basic_ostream<_CharT, _Traits>::
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/ostream.tcc:97:22: note: no known conversion for argument 1 from 'std::basic_istream<char>' to 'short int'
97 | operator<<(short __n)
| ~~~~~~^~~
/usr/include/c++/14/ostream:189:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(short unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
189 | operator<<(unsigned short __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:189:33: note: no known conversion for argument 1 from 'std::basic_istream<char>' to 'short unsigned int'
189 | operator<<(unsigned short __n)
| ~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/ostream.tcc:110:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits<char>]'
110 | basic_ostream<_CharT, _Traits>::
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/ostream.tcc:111:20: note: no known conversion for argument 1 from 'std::basic_istream<char>' to 'int'
111 | operator<<(int __n)
| ~~~~^~~
/usr/include/c++/14/ostream:200:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
200 | operator<<(unsigned int __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:200:31: note: no known conversion for argument 1 from 'std::basic_istream<char>' to 'unsigned int'
200 | operator<<(unsigned int __n)
| ~~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:211:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
211 | operator<<(long long __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:211:28: note: no known conversion for argument 1 from 'std::basic_istream<char>' to 'long long int'
211 | operator<<(long long __n)
| ~~~~~~~~~~^~~
/usr/include/c++/14/ostream:215:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
215 | operator<<(unsigned long long __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:215:37: note: no known conversion for argument 1 from 'std::basic_istream<char>' to 'long long unsigned int'
215 | operator<<(unsigned long long __n)
| ~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:231:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(double) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
231 | operator<<(double __f)
| ^~~~~~~~
/usr/include/c++/14/ostream:231:25: note: no known conversion for argument 1 from 'std::basic_istream<char>' to 'double'
231 | operator<<(double __f)
| ~~~~~~~^~~
/usr/include/c++/14/ostream:235:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(float) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
235 | operator<<(float __f)
| ^~~~~~~~
/usr/include/c++/14/ostream:235:24: note: no known conversion for argument 1 from 'std::basic_istream<char>' to 'float'
235 | operator<<(float __f)
| ~~~~~~^~~
/usr/include/c++/14/ostream:243:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long double) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
243 | operator<<(long double __f)
| ^~~~~~~~
/usr/include/c++/14/ostream:243:30: note: no known conversion for argument 1 from 'std::basic_istream<char>' to 'long double'
243 | operator<<(long double __f)
| ~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:301:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(const void*) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
301 | operator<<(const void* __p)
| ^~~~~~~~
/usr/include/c++/14/ostream:301:30: note: no known conversion for argument 1 from 'std: |
s494675553 | p03643 | C++ | #include <iostream>
using namespace std;
int main() {
cout << "ABC" << cin << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:7:15: error: no match for 'operator<<' (operand types are 'std::basic_ostream<char>' and 'std::istream' {aka 'std::basic_istream<char>'})
7 | cout << "ABC" << cin << endl;
| ~~~~~~~~~~~~~ ^~ ~~~
| | |
| | std::istream {aka std::basic_istream<char>}
| std::basic_ostream<char>
a.cc:7:15: note: candidate: 'operator<<(int, int)' (built-in)
7 | cout << "ABC" << cin << endl;
| ~~~~~~~~~~~~~~^~~~~~
a.cc:7:15: note: no known conversion for argument 2 from 'std::istream' {aka 'std::basic_istream<char>'} to 'int'
In file included from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/ostream:116:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ostream_type& (*)(__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
116 | operator<<(__ostream_type& (*__pf)(__ostream_type&))
| ^~~~~~~~
/usr/include/c++/14/ostream:116:36: note: no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'std::basic_ostream<char>::__ostream_type& (*)(std::basic_ostream<char>::__ostream_type&)' {aka 'std::basic_ostream<char>& (*)(std::basic_ostream<char>&)'}
116 | operator<<(__ostream_type& (*__pf)(__ostream_type&))
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/ostream:125:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(__ios_type& (*)(__ios_type&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>; __ios_type = std::basic_ios<char>]'
125 | operator<<(__ios_type& (*__pf)(__ios_type&))
| ^~~~~~~~
/usr/include/c++/14/ostream:125:32: note: no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'std::basic_ostream<char>::__ios_type& (*)(std::basic_ostream<char>::__ios_type&)' {aka 'std::basic_ios<char>& (*)(std::basic_ios<char>&)'}
125 | operator<<(__ios_type& (*__pf)(__ios_type&))
| ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
/usr/include/c++/14/ostream:135:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base& (*)(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
135 | operator<<(ios_base& (*__pf) (ios_base&))
| ^~~~~~~~
/usr/include/c++/14/ostream:135:30: note: no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'std::ios_base& (*)(std::ios_base&)'
135 | operator<<(ios_base& (*__pf) (ios_base&))
| ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
/usr/include/c++/14/ostream:174:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
174 | operator<<(long __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:174:23: note: no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'long int'
174 | operator<<(long __n)
| ~~~~~^~~
/usr/include/c++/14/ostream:178:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
178 | operator<<(unsigned long __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:178:32: note: no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'long unsigned int'
178 | operator<<(unsigned long __n)
| ~~~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:182:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(bool) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
182 | operator<<(bool __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:182:23: note: no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'bool'
182 | operator<<(bool __n)
| ~~~~~^~~
In file included from /usr/include/c++/14/ostream:1022:
/usr/include/c++/14/bits/ostream.tcc:96:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(short int) [with _CharT = char; _Traits = std::char_traits<char>]'
96 | basic_ostream<_CharT, _Traits>::
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/ostream.tcc:97:22: note: no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'short int'
97 | operator<<(short __n)
| ~~~~~~^~~
/usr/include/c++/14/ostream:189:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(short unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
189 | operator<<(unsigned short __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:189:33: note: no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'short unsigned int'
189 | operator<<(unsigned short __n)
| ~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/ostream.tcc:110:5: note: candidate: 'std::basic_ostream<_CharT, _Traits>& std::basic_ostream<_CharT, _Traits>::operator<<(int) [with _CharT = char; _Traits = std::char_traits<char>]'
110 | basic_ostream<_CharT, _Traits>::
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/ostream.tcc:111:20: note: no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'int'
111 | operator<<(int __n)
| ~~~~^~~
/usr/include/c++/14/ostream:200:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
200 | operator<<(unsigned int __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:200:31: note: no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'unsigned int'
200 | operator<<(unsigned int __n)
| ~~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:211:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
211 | operator<<(long long __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:211:28: note: no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'long long int'
211 | operator<<(long long __n)
| ~~~~~~~~~~^~~
/usr/include/c++/14/ostream:215:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long unsigned int) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
215 | operator<<(unsigned long long __n)
| ^~~~~~~~
/usr/include/c++/14/ostream:215:37: note: no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'long long unsigned int'
215 | operator<<(unsigned long long __n)
| ~~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:231:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(double) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
231 | operator<<(double __f)
| ^~~~~~~~
/usr/include/c++/14/ostream:231:25: note: no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'double'
231 | operator<<(double __f)
| ~~~~~~~^~~
/usr/include/c++/14/ostream:235:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(float) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
235 | operator<<(float __f)
| ^~~~~~~~
/usr/include/c++/14/ostream:235:24: note: no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'float'
235 | operator<<(float __f)
| ~~~~~~^~~
/usr/include/c++/14/ostream:243:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long double) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
243 | operator<<(long double __f)
| ^~~~~~~~
/usr/include/c++/14/ostream:243:30: note: no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'long double'
243 | operator<<(long double __f)
| ~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:301:7: note: candidate: 'std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(const void*) [with _CharT = char; _Traits = std::char_traits<char>; __ostream_type = std::basic_ostream<char>]'
301 | operator<<(const void* __p)
| ^~~~~~~~
/usr/include/c++/14/ostream:301:30: note: no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'const void*'
301 | operator<<(const void* __p)
| ~~~~~~~~~~~~^~~
/usr/include/c++/14/ostream:306:7: n |
s689903688 | p03643 | C++ | #include <iostream>
using namespace std;
int main() {
int N = cin;
cout << "ABC" << N << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:6:9: error: cannot convert 'std::istream' {aka 'std::basic_istream<char>'} to 'int' in initialization
6 | int N = cin;
| ^~~
| |
| std::istream {aka std::basic_istream<char>}
|
s370398475 | p03643 | C++ | x=input()
print("ABC"+x) | a.cc:1:1: error: 'x' does not name a type
1 | x=input()
| ^
|
s915292468 | p03643 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long LL;
typedef long double LD;
typedef pair < int, int > PII;
typedef pair < LL, LL > PLL;
typedef pair < LD, LD > PDD;
#define _upgrade ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define all(x) (x).begin(), (x).end()
#define sz(x) (int)(x).size()
template < typename _T > inline void _DBG(const char *s, _T x) { cerr << s << " = " << x << "\n"; }
template < typename _T, typename... args > void _DBG(const char *s, _T x, args... a) { while(*s != ',') cerr << *s++; cerr << " = " << x << ','; _DBG(s + 1, a...); }
#ifdef LOCAL
#define DBG(...) _DBG(#__VA_ARGS__, __VA_ARGS__)
#else
#define DBG(...) (__VA_ARGS__)
#define cerr if(0) cout
#endif
// ********************** CODE ********************** //
int main()
{
_upgrade
cin >> n;
cout << "ABC" << n;
return 0;
}
| a.cc: In function 'int main()':
a.cc:28:12: error: 'n' was not declared in this scope; did you mean 'yn'?
28 | cin >> n;
| ^
| yn
|
s206181535 | p03643 | C++ | #include <iostream>
#include <algorithm>
#include <cmath>
#include <string>
#include <array>
#include <vector>
#include <functional>
#include <unordered_map>
#include <map>
#include <numeric>
#include <limits>
#include <utility>
#include <queue>
#include <random>
using namespace std;
typedef long long LL;
int main(void) {
int a;
cin >> a;
cout << "ABC" << a << ensl;
return 0;
} | a.cc: In function 'int main()':
a.cc:21:31: error: 'ensl' was not declared in this scope
21 | cout << "ABC" << a << ensl;
| ^~~~
|
s522269091 | p03643 | Java | import java.util.Scanner;
public class Test {
public static void main (String[] args) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
String n1=String.valueOf(n);
//int i = Integer.parseInt(n);
System.out.println("ABC"+n);
}
}
| Main.java:3: error: class Test is public, should be declared in a file named Test.java
public class Test {
^
1 error
|
s737872523 | p03643 | Java | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Sccaner(System.in);
int n = sc.nextInt();
System.out.println("ABC"+n);
}
}
| Main.java:4: error: cannot find symbol
Scanner sc = new Sccaner(System.in);
^
symbol: class Sccaner
location: class Main
1 error
|
s028004309 | p03643 | Java | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Sccaner(System.in);
int n = sc.nextInt();
System.out.println("ABC"+n);
} | Main.java:7: error: reached end of file while parsing
}
^
1 error
|
s438878326 | p03643 | C++ | #include<bits\stdc++.h>
const int oo = 1e9;
using namespace std;
void fast(){
std::ios_base::sync_with_stdio(0);
cin.tie(NULL); cout.tie(NULL);
}
int main(){
fast();
int a ;cin>>a;
cout<<"ABC"<<a<<endl;
return 0;
}
//mosta7il_ | a.cc:1:9: fatal error: bits\stdc++.h: No such file or directory
1 | #include<bits\stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s256705624 | p03643 | C++ | #include "stdc++.h"
int main(){
int a=1,n;
std::cin>>n;
while(a<<1<n){
a<<=1;
}
std::cout<<a;
return 0;
} | a.cc:1:10: fatal error: stdc++.h: No such file or directory
1 | #include "stdc++.h"
| ^~~~~~~~~~
compilation terminated.
|
s359351215 | p03643 | C++ | #include <iostream>
#include <cstdio>
using namespace std;
int n;
int main()
{
ios_base:sync_with_stdio(0);
cin >> n;
return 0;
} | a.cc: In function 'int main()':
a.cc:9:14: error: 'sync_with_stdio' was not declared in this scope
9 | ios_base:sync_with_stdio(0);
| ^~~~~~~~~~~~~~~
|
s685665024 | p03643 | C++ | #include <iostream>
#include <cstdio>
using namespace std;
int n;
int main()
{
ios_base:sync_with_stdio(0);
cin >> n;
cout << "ABC" << n << '\n';
return 0;
} | a.cc: In function 'int main()':
a.cc:9:10: error: 'sync_with_stdio' was not declared in this scope
9 | ios_base:sync_with_stdio(0);
| ^~~~~~~~~~~~~~~
|
s711780370 | p03643 | C++ | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n;
n = sc.nextInt();
System.out.println("ABC" + n);
}
} | 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{
| ^~~~~~
|
s088961522 | p03643 | C++ | #include < bits/stdc++.h>
using namespace std ;
int main()
{
int n ;
cin >> n ;
cout << "ABC"<<n<<endl ;
return 0 ;
}
| a.cc:1:10: fatal error: bits/stdc++.h: No such file or directory
1 | #include < bits/stdc++.h>
| ^~~~~~~~~~~~~~~~
compilation terminated.
|
s395483468 | p03643 | Java | import java.util.Scanner;
public class main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
System.out.println("ABC"+n);
}
}
| Main.java:3: error: class main is public, should be declared in a file named main.java
public class main{
^
1 error
|
s504987859 | p03643 | Java |
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
String n = s.nextLine();
System.out.println("ABC" + n);
}
}
| Main.java:6: error: cannot find symbol
Scanner s = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:6: error: cannot find symbol
Scanner s = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors
|
s951039532 | p03643 | Java | public static void main(String[] args) {
String n = args[0];
System.out.println("ABC" + n);
} | 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
|
s640935766 | p03643 | C++ | #include <iostream>
#include <vector>
using namespace std;
int main(){
int a,b;
int M,N;
cin>>N>>M;
vector<int>a_list,b_list,transit;
while(cin>>a>>b){
a_list.push_back(a);
b_list.push_back(b);
if(a == 1){
transit.push_back(b);
}
}
for(int i = 0; i<a_list.size();i++){
for(int j= 0 ; j < transit.size(); j++){
if(a_list[i] == transit[j]){
if(b_list[i]== N){
cout<<"POSSIBLE"<<endl;
}
}
}
cout<<"IMPOSSIBLE"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:26:2: error: expected '}' at end of input
26 | }
| ^
a.cc:4:11: note: to match this '{'
4 | int main(){
| ^
|
s069925469 | p03643 | C++ | #include <iostream>
#include <vector>
using namespace std;
int main(){
int a,b;
int M,N;
cin>>N>>M;
vector<int>a_list,b_list,transit;
while(cin>>a>>b){
a_list.push_back(a);
b_list.push_back(b);
if(a == 1){
transit.push_back(b);
}
}
for(int i = 0; i<a_list.size();i++){
for(int j= 0 ; j < transit.size(); j++){
if(a_list[i] == transit[j]){
if(b_list[i]== N){
cout<<"POSSIBLE"<<endl;
}
}
}
cout<<"IMPOSSIBLE"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:26:2: error: expected '}' at end of input
26 | }
| ^
a.cc:4:11: note: to match this '{'
4 | int main(){
| ^
|
s002216763 | p03643 | C++ | #include <iostream>
#include <vector>
using namespace std;
int main(){
int a,b;
int M,N;
cin>>N>>M;
vector<int>a_list,b_list,transit;
while(cin>>a>>b){
a_list.push_back(a);
b_list.push_back(b);
if(a == 1){
transit.push_back(b);
}
}
for(int i = 0; i<a_list.size();i++){
for(int j= 0 ; j < transit.size(); j++){
if(a_list[i] == transit[j]){
if(b_list[i]== N){
cout<<"POSSIBLE"<<endl;
}
}
cout<<"IMPOSSIBLE"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:25:2: error: expected '}' at end of input
25 | }
| ^
a.cc:16:39: note: to match this '{'
16 | for(int i = 0; i<a_list.size();i++){
| ^
a.cc:25:2: error: expected '}' at end of input
25 | }
| ^
a.cc:4:11: note: to match this '{'
4 | int main(){
| ^
|
s232460770 | p03643 | C++ | #include <iostream>
using namespace std;
int n;
int main(void){
cin >> n;
count << "ABC" << n << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:7:5: error: 'count' was not declared in this scope
7 | count << "ABC" << n << endl;
| ^~~~~
|
s222336449 | p03643 | C++ | #include <iostream>
#include <vector>
using namespacestd ;
int main ( ) {
int n,m;
cin >> n >> m;
vector<bool> vis ( n+1, false ) ;
bool ans = false ;
f o r ( int i = 0 ; i < m; i++) {
int a , b ;
cin >> a >> b ;
assert ( 1 <= a && a < b && b <= n ) ;
if ( a == 1 ) {
if ( vis [ b ] ) {
ans = true ;
}
vis [ b ] = true ;
} else if ( b == n ) {
if ( vis [ a ] ) {
ans = true ;
}
vis [ a ] = true ;
}
}
if (!ans) cout << ”IM ” ;
cout << ”POSSIBLE” << endl ;
return 0 ;
} | a.cc:25:19: error: extended character ” is not valid in an identifier
25 | if (!ans) cout << ”IM ” ;
| ^
a.cc:25:23: error: extended character ” is not valid in an identifier
25 | if (!ans) cout << ”IM ” ;
| ^
a.cc:26:9: error: extended character ” is not valid in an identifier
26 | cout << ”POSSIBLE” << endl ;
| ^
a.cc:26:9: error: extended character ” is not valid in an identifier
a.cc:3:7: error: expected nested-name-specifier before 'namespacestd'
3 | using namespacestd ;
| ^~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
6 | cin >> n >> m;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
a.cc:7:1: error: 'vector' was not declared in this scope
7 | vector<bool> vis ( n+1, false ) ;
| ^~~~~~
a.cc:7:1: note: suggested alternatives:
In file included from /usr/include/c++/14/vector:66,
from a.cc:2:
/usr/include/c++/14/bits/stl_vector.h:428:11: note: 'std::vector'
428 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
/usr/include/c++/14/vector:93:13: note: 'std::pmr::vector'
93 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
| ^~~~~~
a.cc:7:8: error: expected primary-expression before 'bool'
7 | vector<bool> vis ( n+1, false ) ;
| ^~~~
a.cc:9:1: error: 'f' was not declared in this scope
9 | f o r ( int i = 0 ; i < m; i++) {
| ^
a.cc:9:21: error: 'i' was not declared in this scope
9 | f o r ( int i = 0 ; i < m; i++) {
| ^
a.cc:25:11: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
25 | if (!ans) cout << ”IM ” ;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:25:19: error: '\U0000201dIM' was not declared in this scope
25 | if (!ans) cout << ”IM ” ;
| ^~~
a.cc:26:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
26 | cout << ”POSSIBLE” << endl ;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:26:9: error: '\U0000201dPOSSIBLE\U0000201d' was not declared in this scope
26 | cout << ”POSSIBLE” << endl ;
| ^~~~~~~~~~
a.cc:26:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
26 | cout << ”POSSIBLE” << endl ;
| ^~~~
| std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s023192114 | p03643 | C++ | #include <iostream>
#include <vector>
using namespacestd ;
int main ( ) {
int n,m;
cin >> n >> m;
vector<bool> vis ( n+1, false ) ;
bool ans = false ;
f o r ( int i = 0 ; i < m; i++) {
int a , b ;
cin >> a >> b ;
assert ( 1 <= a && a < b && b <= n ) ;
if ( a == 1 ) {
if ( vis [ b ] ) {
ans = true ;
}
vis [ b ] = true ;
} else if ( b == n ) {
if ( vis [ a ] ) {
ans = true ;
}
vis [ a ] = true ;
}
}
if ( ! ans ) cout << ”IM ” ;
cout << ”POSSIBLE” << endl ;
return 0 ;
} | a.cc:25:22: error: extended character ” is not valid in an identifier
25 | if ( ! ans ) cout << ”IM ” ;
| ^
a.cc:25:26: error: extended character ” is not valid in an identifier
25 | if ( ! ans ) cout << ”IM ” ;
| ^
a.cc:26:9: error: extended character ” is not valid in an identifier
26 | cout << ”POSSIBLE” << endl ;
| ^
a.cc:26:9: error: extended character ” is not valid in an identifier
a.cc:3:7: error: expected nested-name-specifier before 'namespacestd'
3 | using namespacestd ;
| ^~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
6 | cin >> n >> m;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
a.cc:7:1: error: 'vector' was not declared in this scope
7 | vector<bool> vis ( n+1, false ) ;
| ^~~~~~
a.cc:7:1: note: suggested alternatives:
In file included from /usr/include/c++/14/vector:66,
from a.cc:2:
/usr/include/c++/14/bits/stl_vector.h:428:11: note: 'std::vector'
428 | class vector : protected _Vector_base<_Tp, _Alloc>
| ^~~~~~
/usr/include/c++/14/vector:93:13: note: 'std::pmr::vector'
93 | using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
| ^~~~~~
a.cc:7:8: error: expected primary-expression before 'bool'
7 | vector<bool> vis ( n+1, false ) ;
| ^~~~
a.cc:9:1: error: 'f' was not declared in this scope
9 | f o r ( int i = 0 ; i < m; i++) {
| ^
a.cc:9:21: error: 'i' was not declared in this scope
9 | f o r ( int i = 0 ; i < m; i++) {
| ^
a.cc:25:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
25 | if ( ! ans ) cout << ”IM ” ;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:25:22: error: '\U0000201dIM' was not declared in this scope
25 | if ( ! ans ) cout << ”IM ” ;
| ^~~
a.cc:26:1: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
26 | cout << ”POSSIBLE” << endl ;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:26:9: error: '\U0000201dPOSSIBLE\U0000201d' was not declared in this scope
26 | cout << ”POSSIBLE” << endl ;
| ^~~~~~~~~~
a.cc:26:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
26 | cout << ”POSSIBLE” << endl ;
| ^~~~
| std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s705546844 | p03643 | Java | package AtCoder;
import java.util.Scanner;
public class ABCxxx {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
StringBuilder sb = new StringBuilder();
sb.append("ABC").append(sc.nextInt());
System.out.println(sb.toString());
}
}
| Main.java:5: error: class ABCxxx is public, should be declared in a file named ABCxxx.java
public class ABCxxx {
^
1 error
|
s116653237 | p03643 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int a; cin>>a
cout<<"ABC"<<a<<endl;
} | a.cc: In function 'int main()':
a.cc:4:14: error: expected ';' before 'cout'
4 | int a; cin>>a
| ^
| ;
5 | cout<<"ABC"<<a<<endl;
| ~~~~
|
s494656231 | p03643 | C++ | /*Bismillahir Rahmanir Rahim*/
#include <stdio.h>
int main()
{
int n;
while (scanf("%d",&n) !=EOF)
{
printf("ABC%d\n);
}
return 0;
} | a.cc:8:11: warning: missing terminating " character
8 | printf("ABC%d\n);
| ^
a.cc:8:11: error: missing terminating " character
8 | printf("ABC%d\n);
| ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:9:1: error: expected primary-expression before '}' token
9 | }
| ^
|
s685122083 | p03643 | C++ | #include <iostream>
using namespace std;
int main(){
int n;
cin >> n;
cout << ABC << n;
return 0;
} | a.cc: In function 'int main()':
a.cc:7:9: error: 'ABC' was not declared in this scope
7 | cout << ABC << n;
| ^~~
|
s712908507 | p03643 | C | #include<stdio.h>
int main(){
int a;
scanf("%d",&a);
if(a>=64){
printf("64\n")
}else if(a>=32){
printf("32\n")
}else if(a>=16){
printf("16\n")
}else if(a>=8){
printf("8\n")
}else if(a>=4){
printf("4\n")
}else if(a>=2){
printf("2\n")
}else{
printf("1\n")
}
} | main.c: In function 'main':
main.c:9:15: error: expected ';' before '}' token
9 | printf("64\n")
| ^
| ;
10 | }else if(a>=32){
| ~
main.c:11:15: error: expected ';' before '}' token
11 | printf("32\n")
| ^
| ;
12 | }else if(a>=16){
| ~
main.c:13:15: error: expected ';' before '}' token
13 | printf("16\n")
| ^
| ;
14 | }else if(a>=8){
| ~
main.c:15:14: error: expected ';' before '}' token
15 | printf("8\n")
| ^
| ;
16 | }else if(a>=4){
| ~
main.c:17:14: error: expected ';' before '}' token
17 | printf("4\n")
| ^
| ;
18 | }else if(a>=2){
| ~
main.c:19:14: error: expected ';' before '}' token
19 | printf("2\n")
| ^
| ;
20 | }else{
| ~
main.c:21:14: error: expected ';' before '}' token
21 | printf("1\n")
| ^
| ;
22 | }
| ~
|
s581878769 | p03643 | C++ | #include<stdio.h>
int main()
{char a[10;
scanf("%s",a);
printf("ABC%s",a);
return 0;
} | a.cc: In function 'int main()':
a.cc:3:11: error: expected ']' before ';' token
3 | {char a[10;
| ^
| ]
a.cc:4:12: error: 'a' was not declared in this scope
4 | scanf("%s",a);
| ^
|
s174547953 | p03643 | C++ | #include<stdio.h>
int main()
{char a[10:
scanf("%s",a);
printf("ABC%s",a);
return 0;
} | a.cc: In function 'int main()':
a.cc:3:11: error: expected ']' before ':' token
3 | {char a[10:
| ^
| ]
a.cc:5:16: error: 'a' was not declared in this scope
5 | printf("ABC%s",a);
| ^
|
s592248359 | p03643 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int N,k;
cin >> N;
for(k = 1:k < N:k *= 2);
cout << k/2 << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:18: error: expected ';' before ':' token
8 | for(k = 1:k < N:k *= 2);
| ^
| ;
a.cc:10:9: error: expected primary-expression before 'return'
10 | return 0;
| ^~~~~~
a.cc:9:29: error: expected ')' before 'return'
9 | cout << k/2 << endl;
| ^
| )
10 | return 0;
| ~~~~~~
a.cc:8:12: note: to match this '('
8 | for(k = 1:k < N:k *= 2);
| ^
|
s759700681 | p03643 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int N,k;
cin >> N;
for(k = 1:k < N:k *= 2);
cout << k << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:18: error: expected ';' before ':' token
8 | for(k = 1:k < N:k *= 2);
| ^
| ;
a.cc:10:9: error: expected primary-expression before 'return'
10 | return 0;
| ^~~~~~
a.cc:9:27: error: expected ')' before 'return'
9 | cout << k << endl;
| ^
| )
10 | return 0;
| ~~~~~~
a.cc:8:12: note: to match this '('
8 | for(k = 1:k < N:k *= 2);
| ^
|
s813424873 | p03643 | C++ | #include <stdio.h>
int main()
{
int i;
scanf"%d", &i);
int count = 0;
while (1) {
if (i % 2 == 0) {
count++;
i /= 2;
} else {
break;
}}
printf("%d", count);
} | a.cc: In function 'int main()':
a.cc:5:6: error: expected ';' before string constant
5 | scanf"%d", &i);
| ^~~~
| ;
|
s883358803 | p03643 | C++ | #include <stdio.h>
void main ()
{
int i;
scanf("%d", &i);
printf("ABC%d", i);
return0;
} | a.cc:2:1: error: '::main' must return 'int'
2 | void main ()
| ^~~~
a.cc: In function 'int main()':
a.cc:7:1: error: 'return0' was not declared in this scope
7 | return0;
| ^~~~~~~
|
s506158774 | p03643 | C++ | void main ()
{
int i;
scanf("%d", &i);
printf("ABC");
printf("%d", i);
} | a.cc:1:1: error: '::main' must return 'int'
1 | void main ()
| ^~~~
a.cc: In function 'int main()':
a.cc:4:1: error: 'scanf' was not declared in this scope
4 | scanf("%d", &i);
| ^~~~~
a.cc:5:1: error: 'printf' was not declared in this scope
5 | printf("ABC");
| ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
+++ |+#include <cstdio>
1 | void main ()
|
s918210784 | p03643 | C++ | void main ()
{
int i;
scanf("%d", &i);
printf("ABC");
printf("%d", i);
return 0;
} | a.cc:1:1: error: '::main' must return 'int'
1 | void main ()
| ^~~~
a.cc: In function 'int main()':
a.cc:4:1: error: 'scanf' was not declared in this scope
4 | scanf("%d", &i);
| ^~~~~
a.cc:5:1: error: 'printf' was not declared in this scope
5 | printf("ABC");
| ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
+++ |+#include <cstdio>
1 | void main ()
|
s874745214 | p03643 | C | #include <stdio.h>
int main(void) {
int n,m;
int i;
int flag = 0;
int iki[200000];
int kaeri[200000];
scanf("%d %d",&n,&m);
for(i=0;i<n;i++){
iki[i] = 0;
kaeri[i] = 0;
}
for(i=0;i<m;i++){
scanf("%d %d",&a,&b);
if(a==1) iki[b]=1;
if(b==n) kaeri[a]=1;
}
for(i=0;i<m;i++){
if((iki[i] == 1)&&(kaeri[i] == 1)){
printf("POSSIBLE");
flag = 1;
break;
}
}
if(flag == 0){
printf("IMPOSSIBLE");
}
return 0;
}
| main.c: In function 'main':
main.c:17:32: error: 'a' undeclared (first use in this function)
17 | scanf("%d %d",&a,&b);
| ^
main.c:17:32: note: each undeclared identifier is reported only once for each function it appears in
main.c:17:35: error: 'b' undeclared (first use in this function)
17 | scanf("%d %d",&a,&b);
| ^
|
s015992385 | p03643 | C | #include<stdio.h>
int main(void){
int N,M,i;
int *a,*b
int no = 0;
scanf("%d %d",&N,&M);
a = (int *a)malloc(N*sizeof(int)) = {0};
b = (int *b)malloc(N*sizeof(int)) = {0};
int tmpa,tmpb;
for(i=0;i<M;i++){
scanf("%d %d",&tmpa,&tmpb);
if(tmpa==1)a[tmpb]=1;
if(tmpb==N)b[tmpa]=1;
}
for(i=0;i<N;i++){
if(a[i]==1 && b[i]==1){
no = 1;
}
}
if(no == 1) printf("POSSIBLE");
if(no == 0) printf("IMPOSSIBLE");
return 0;
} | main.c: In function 'main':
main.c:5:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
5 | int no = 0;
| ^~~
main.c:7:11: error: expected ')' before 'a'
7 | a = (int *a)malloc(N*sizeof(int)) = {0};
| ~ ^
| )
main.c:7:13: error: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
7 | a = (int *a)malloc(N*sizeof(int)) = {0};
| ^~~~~~
main.c:2:1: note: include '<stdlib.h>' or provide a declaration of 'malloc'
1 | #include<stdio.h>
+++ |+#include <stdlib.h>
2 | int main(void){
main.c:7:13: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch]
7 | a = (int *a)malloc(N*sizeof(int)) = {0};
| ^~~~~~
main.c:7:13: note: include '<stdlib.h>' or provide a declaration of 'malloc'
main.c:7:37: error: expected expression before '{' token
7 | a = (int *a)malloc(N*sizeof(int)) = {0};
| ^
main.c:8:1: error: 'b' undeclared (first use in this function)
8 | b = (int *b)malloc(N*sizeof(int)) = {0};
| ^
main.c:8:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:11: error: expected ')' before 'b'
8 | b = (int *b)malloc(N*sizeof(int)) = {0};
| ~ ^
| )
main.c:8:37: error: expected expression before '{' token
8 | b = (int *b)malloc(N*sizeof(int)) = {0};
| ^
main.c:17:1: error: 'no' undeclared (first use in this function)
17 | no = 1;
| ^~
|
s944903410 | p03643 | C++ | #incude <bits/stdc++.h>
using namespace std;
int main() {
string n;
cin>>n;
scanf("ABC%s\n",n);
return 0;
} | a.cc:1:2: error: invalid preprocessing directive #incude; did you mean #include?
1 | #incude <bits/stdc++.h>
| ^~~~~~
| include
a.cc: In function 'int main()':
a.cc:6:5: error: 'string' was not declared in this scope
6 | string n;
| ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
+++ |+#include <string>
1 | #incude <bits/stdc++.h>
a.cc:7:5: error: 'cin' was not declared in this scope
7 | cin>>n;
| ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
+++ |+#include <iostream>
1 | #incude <bits/stdc++.h>
a.cc:7:10: error: 'n' was not declared in this scope
7 | cin>>n;
| ^
a.cc:8:5: error: 'scanf' was not declared in this scope
8 | scanf("ABC%s\n",n);
| ^~~~~
|
s698287126 | p03643 | C++ | #include <algorithm>
#include <iostream>
using namespace std;
int main(){
int N;
cin>>N;
cout<<"ABC"<<N
} | a.cc: In function 'int main()':
a.cc:8:15: error: expected ';' before '}' token
8 | cout<<"ABC"<<N
| ^
| ;
9 | }
| ~
|
s006001674 | p03643 | C++ | n = input()
print("ABC" + n) | a.cc:1:1: error: 'n' does not name a type
1 | n = input()
| ^
|
s524596181 | p03643 | C++ | #include "bits/stdc++.h"
using namespace std;
#define fol(i,n) for(int i=0;i<n;i++)
#define all(a) (a).begin(),(a).end()
typedef long long ll;
typedef pair<int,int> P;
typedef vector<P> vip;
int main(){
int x;
cin >>x;
cout << "ABC" <<x <<endl;ß
return 0;
}
| a.cc: In function 'int main()':
a.cc:11:28: error: '\U000000df' was not declared in this scope
11 | cout << "ABC" <<x <<endl;ß
| ^
|
s675458028 | p03643 | C | #include <stdio.h>
int main()
{
int a;
scanf("%d",%a);
printf("ABC%d",a);
} | main.c: In function 'main':
main.c:5:20: error: expected expression before '%' token
5 | scanf("%d",%a);
| ^
|
s680259305 | p03643 | C++ | #include <stdio.h>
#include <string.h>
void main() {
char number[];
printf("数値を入力してください>");
scanf("%[0123456789]" , number);
printf("入力された値 = %s\n" , number);
if(number < 100 || number > 999) {
printf("数値100-999の範囲で入力してください.\n");
return;
}
char str1[] = "ABC";
strcat(str1, number); /* 文字型配列に文字型配列を連結 */
printf("%s\n", str1);
return;
} | a.cc:4:1: error: '::main' must return 'int'
4 | void main() {
| ^~~~
a.cc: In function 'int main()':
a.cc:5:14: error: storage size of 'number' isn't known
5 | char number[];
| ^~~~~~
a.cc:12:17: error: return-statement with no value, in function returning 'int' [-fpermissive]
12 | return;
| ^~~~~~
a.cc:20:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
20 | return;
| ^~~~~~
|
s305810229 | p03643 | C++ | #inclide<iostream>
using namespace std;
int x;
int main(){
cin>>x;
cout<<"ABC"<<x<<endl;
return 0;
} | a.cc:1:2: error: invalid preprocessing directive #inclide; did you mean #include?
1 | #inclide<iostream>
| ^~~~~~~
| include
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope
6 | cin>>x;
| ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
+++ |+#include <iostream>
1 | #inclide<iostream>
a.cc:7:1: error: 'cout' was not declared in this scope
7 | cout<<"ABC"<<x<<endl;
| ^~~~
a.cc:7:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:17: error: 'endl' was not declared in this scope
7 | cout<<"ABC"<<x<<endl;
| ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
+++ |+#include <ostream>
1 | #inclide<iostream>
|
s663315339 | p03643 | C | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
int N;
char s[7]="ABC";
char t[4]="\0";
scanf("%d\n",&N);
itoa(N,t,10);
strcat(s,t);
printf("%s\n",s);
return 0;
} | main.c: In function 'main':
main.c:13:5: error: implicit declaration of function 'itoa' [-Wimplicit-function-declaration]
13 | itoa(N,t,10);
| ^~~~
|
s861599267 | p03643 | C++ | #include<cstdio>
#include<cstdlib>
#include<cstring>
#include<cmath>
#include<iostream>
#include<algorithm>
using namespace std;
int main()
{
char str[100];
int n;
gets(str);
for( int i=0;str[i];i++ )
{
if ( str[i] >='0' && str[i]<='9' )
n=n*10+str[i]-'0' ;
}
printf("%c\n",str);
return 0;
} | a.cc: In function 'int main()':
a.cc:14:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
14 | gets(str);
| ^~~~
| getw
|
s806150512 | p03643 | C | #include <stdio.h>
int main(){
int input,y=2,x=0;
scanf("%d",&input);
while(y<input){
y=y*2
}
printf("%d\n", y);
} | main.c: In function 'main':
main.c:6:14: error: expected ';' before '}' token
6 | y=y*2
| ^
| ;
7 | }
| ~
|
s620036519 | p03643 | C++ | #include <stdio.h>
#include <string.h>
int main()
{
int n;
char bur[4];
char out[7] = {"ABC"};
scanf_s("%d", &n, sizeof(int));
snprintf(bur, 4, "%d", n);
strcat_s(out, bur);
printf("%s", out);
return 0;
} | a.cc: In function 'int main()':
a.cc:8:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
8 | scanf_s("%d", &n, sizeof(int));
| ^~~~~~~
| scanf
a.cc:10:9: error: 'strcat_s' was not declared in this scope; did you mean 'strcat'?
10 | strcat_s(out, bur);
| ^~~~~~~~
| strcat
|
s941029339 | p03643 | C | #include<stdio.h>
int main(){
int cnt=0;
scanf("%d",&cnt);
printf("ABC);
printf("%d\n",cnt);
} | main.c: In function 'main':
main.c:7:8: warning: missing terminating " character
7 | printf("ABC);
| ^
main.c:7:8: error: missing terminating " character
7 | printf("ABC);
| ^~~~~~
main.c:8:19: error: expected ')' before ';' token
8 | printf("%d\n",cnt);
| ^
| )
main.c:7:7: note: to match this '('
7 | printf("ABC);
| ^
main.c:8:1: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
8 | printf("%d\n",cnt);
| ^~~~~~~~~~~~~~~~~~
| |
| int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
363 | extern int printf (const char *__restrict __format, ...);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:8:20: error: expected ';' before '}' token
8 | printf("%d\n",cnt);
| ^
| ;
9 | }
| ~
|
s226444516 | p03643 | C | #include<stdio.h>
int main(){
int cnt=0;
scanf("%d",&cnt);
printf("ABC);
printf("%d\n",cnt)
} | main.c: In function 'main':
main.c:7:8: warning: missing terminating " character
7 | printf("ABC);
| ^
main.c:7:8: error: missing terminating " character
7 | printf("ABC);
| ^~~~~~
main.c:8:19: error: expected ')' before '}' token
8 | printf("%d\n",cnt)
| ^
| )
9 | }
| ~
main.c:7:7: note: to match this '('
7 | printf("ABC);
| ^
main.c:8:1: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
8 | printf("%d\n",cnt)
| ^~~~~~~~~~~~~~~~~~
| |
| int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
363 | extern int printf (const char *__restrict __format, ...);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:8:19: error: expected ';' before '}' token
8 | printf("%d\n",cnt)
| ^
| ;
9 | }
| ~
|
s963267704 | p03643 | C++ | main = getLine >>= putStrLn.("ABC"++)
| a.cc:1:1: error: 'main' does not name a type
1 | main = getLine >>= putStrLn.("ABC"++)
| ^~~~
|
s535028814 | p03643 | C++ | #include<set>
#include<map>
#include<stack>
#include<queue>
#include<deque>
#include<cstdio>
#include<string>
#include<vector>
#include<math.h>
#include<time.h>
#include<utility>
#include<cstdlib>
#include<sstream>
#include<cstring>
#include<stdio.h>
#include<iomanip>
#include<iostream>
#include<conio.h>
#include<algorithm>
using namespace std;
int main(){
int n;
cin>>n;
cout<<"ABC"<<n;
return 0;
} | a.cc:18:9: fatal error: conio.h: No such file or directory
18 | #include<conio.h>
| ^~~~~~~~~
compilation terminated.
|
s952287452 | p03643 | C | #include <stdio.h>
int main(void)
{
int N = 0;
scanf_s("%d", &N, 4);
if (100 <= N && N <= 999) {
printf("ABC%d", N);
}
return 0;
} | main.c: In function 'main':
main.c:7:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
7 | scanf_s("%d", &N, 4);
| ^~~~~~~
| scanf
|
s357448859 | p03643 | Java | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String n = sc.next();
System.out.println("ABC"+n);
} | Main.java:8: error: reached end of file while parsing
}
^
1 error
|
s626426845 | p03643 | C++ | #include <iostream>
#include <vector>
#include <algorithm>
#include <cstdlib> //abs 絶対値
using namespace std;
int main() {
int n, ans;
cin >> n;
//vector <int> A(n);
//for (int i = 0; i < n; i++) {
//cin >> A[i];
//}
ans = "ABC" + n;
//sort(A.begin(), A.end());
cout << ans << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:15:21: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
15 | ans = "ABC" + n;
| ~~~~~~^~~
| |
| const char*
|
s855465142 | p03643 | C++ | #include<set>
#include<map>
#include<stack>
#include<queue>
#include<deque>
#include<cstdio>
#include<string>
#include<vector>
#include<math.h>
#include<time.h>
#include<utility>
#include<cstdlib>
#include<sstream>
#include<cstring>
#include<stdio.h>
#include<iomanip>
#include<iostream>
#include<conio.h>
#include<algorithm>
using namespace std;
int main(){
int n;
cin>>n;
cout<<"ABC"<<n;
return 0;
} | a.cc:18:9: fatal error: conio.h: No such file or directory
18 | #include<conio.h>
| ^~~~~~~~~
compilation terminated.
|
s348228558 | p03643 | C | #include <iostream>
#define FI(__n) for(int i = 0; i < __n; ++i)
#define FJ(__n) for(int j = 0; j < __n; ++j)
#define INT_MAX 2147483647
#define INT_MIN -2147483648
#define l first
#define r second
#define mp make_pair
#define pb push_back
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
const int MOD=1000000007;
int solve()
{
int a;
cin>>a;
cout<<"ABC"<<a;
return 0;
}
int main()
{
ofstream coutf;
coutf.open("output.txt");
ifstream cinf;
cinf.open("input.txt");
solve();
cinf.close();
coutf.close();
return 0;
}
| main.c:1:10: fatal error: iostream: No such file or directory
1 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
s758033044 | p03643 | C++ | #include<iostream>
#include<algorithm>
#include<cstring>
#include<cmath>
#include<queue>
#include<vector>
#include<cstdio>
#include<iomanip>
using namespace std;
//int father[100001];
/*int cmp(wo a,wo b)
return a. <b. ;
*/
/*
void unionn (int x,int y){
x=find(x);y=find(y);
father[y]=x;
}
int find(int x)
{
if(father[x]!=x)father[x]=find(father[x]);
return father[x];
}
int judge(int a,int b){
if(find(a)!=find(b))return 0;
else return 1;
}
*/
/*
int dij(){
for(int i=1;i<=n;i++){
for(int j=i+1;j<=n;j++){
t++;
dis[t].distance=0;
for(int k=0;k<7;k++){
if(car[i][k]!=car[j][k]){
dis[t].distance++;
}
}
dis[t].x=i;dis[t].y=j;
}
}
for(int i=1;i<=n;i++){
father[i]=i;
}
sort(dis+1,dis+t+1,cmp);
for(int i=1;i<=t;i++){
if(find(dis[i].x)!=find(dis[i].y)){
unionn(dis[i].x,dis[i].y);
ans+=dis[i].distance;
}
}
}
?
*/
int main(){
long long a[101111]={0},ans,n;
//char b[100001];
cin>>n;
/*for(int i=1;i<=n;i++){
cin>>a[i];
}*/
/*
if()cout<<"No";
else cout<<"Yes";
*/
?
cout<</*fixed<<setprecision()*/"ABC"<<n<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:67:1: error: expected primary-expression before '?' token
67 | ?
| ^
a.cc:68:46: error: expected ':' before ';' token
68 | cout<</*fixed<<setprecision()*/"ABC"<<n<<endl;
| ^
| :
a.cc:68:46: error: expected primary-expression before ';' token
|
s752427024 | p03643 | C | #include <bits/stdc++.h>
#define FI(__n) for(int i = 0; i < __n; ++i)
#define FJ(__n) for(int j = 0; j < __n; ++j)
#define INT_MAX 2147483647
#define INT_MIN -2147483648
#define l first
#define r second
#define mp make_pair
#define pb push_back
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
const int MOD=1000000007;
int solve()
{
int a;
cin>>a;
cout<<"ABC"<<a;
return 0;
}
int main()
{
ofstream coutf;
coutf.open("output.txt");
ifstream cinf;
cinf.open("input.txt");
solve();
cinf.close();
coutf.close();
return 0;
}
| main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
1 | #include <bits/stdc++.h>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s541830272 | p03643 | C | #include<stdio.h>
#include<stdlib.h>
int main(int argc, char *argv[]) {
int num = atoi(argv[1]);
printf("ABC%d", num);
return 0;
}
~
~
~ | main.c:10:1: error: expected identifier or '(' before '~' token
10 | ~
| ^
|
s929037320 | p03643 | C++ | #include <stdio.h>
#include <algorithm>
#include <math.h>
#include <string.h>
#include <conio.h>
#define INF 123456789
#define MOD 1000000007
int main()
{
int N;
scanf("%d\n", &N);
printf("ABC%03d\n", N);
return 0;
} | a.cc:5:10: fatal error: conio.h: No such file or directory
5 | #include <conio.h>
| ^~~~~~~~~
compilation terminated.
|
s045862161 | p03643 | Java | import java.util.Scanner;
public class MainPage {
public static void main(String[] args) {
try{
Scanner sc = new Scanner(System.in);
String a = "ABC" + sc.nextInt();
System.out.println(a);
}catch(Exception e){
e.printStackTrace();
}
}
} | Main.java:3: error: class MainPage is public, should be declared in a file named MainPage.java
public class MainPage {
^
1 error
|
s290364873 | p03643 | C++ | #include<iostream>
#include<algorithm>
#include<cstring>
#include<cmath>
#include<queue>
#include<vector>
#include<cstdio>
#include<iomanip>
using namespace std;
//int father[100001];
struct wo{
int x;
int y;
int dis;
}
/*int cmp(wo a,wo b)
return a. <b. ;
*/
/*
void unionn (int x,int y){
x=find(x);y=find(y);
father[y]=x;
}
int find(int x)
{
if(father[x]!=x)father[x]=find(father[x]);
return father[x];
}
int judge(int a,int b){
if(find(a)!=find(b))return 0;
else return 1;
}
*/
/*
int dij(){
for(int i=1;i<=n;i++){
for(int j=i+1;j<=n;j++){
t++;
dis[t].distance=0;
for(int k=0;k<7;k++){
if(car[i][k]!=car[j][k]){
dis[t].distance++;
}
}
dis[t].x=i;dis[t].y=j;
}
}
for(int i=1;i<=n;i++){
father[i]=i;
}
sort(dis+1,dis+t+1,cmp);
for(int i=1;i<=t;i++){
if(find(dis[i].x)!=find(dis[i].y)){
unionn(dis[i].x,dis[i].y);
ans+=dis[i].distance;
}
}
}
*/
int main(){
long long a[101111]={0},ans,n;
//char b[100001];
cin>>n;
/*for(int i=1;i<=n;i++){
cin>>a[i];
}*/
/*
if()cout<<"No";
else cout<<"Yes";
*/
cout<</*fixed<<setprecision()*/"ABC"<<n<<endl;
return 0;
} | a.cc:72:1: error: extended character is not valid in an identifier
72 |
| ^
a.cc:15:2: error: expected ';' after struct definition
15 | }
| ^
| ;
a.cc: In function 'int main()':
a.cc:72:1: error: '\U000000a0' was not declared in this scope
72 |
| ^
|
s910598112 | p03643 | C++ | #include <iostream>
int main() {
int n = 0, i = 09;
std::cin >> n;
for (i = 1; i <= n; i *= 2) {
}
std::cout << i / 2 << "\n";
system("pause");
} | a.cc:4:20: error: invalid digit "9" in octal constant
4 | int n = 0, i = 09;
| ^~
|
s188657838 | p03643 | C++ | #include<set>
#include<map>
#include<stack>
#include<queue>
#include<deque>
#include<cstdio>
#include<string>
#include<vector>
#include<math.h>
#include<time.h>
#include<utility>
#include<cstdlib>
#include<sstream>
#include<cstring>
#include<stdio.h>
#include<iomanip>
#include<iostream>
#include<conio.h>
#include<algorithm>
using namespace std;
int main(){
int n;
cin>>n;
cout<<"ABC"<<n;
return 0;
} | a.cc:18:9: fatal error: conio.h: No such file or directory
18 | #include<conio.h>
| ^~~~~~~~~
compilation terminated.
|
s132862567 | p03643 | C++ | #include<cstdio>
int main()
{
int n;
scanf("%d"&n);
printf("ABC%d\n",n);
return 0;
} | a.cc: In function 'int main()':
a.cc:5:19: error: invalid operands of types 'const char [3]' and 'int' to binary 'operator&'
5 | scanf("%d"&n);
| ~~~~^~
| | |
| | int
| const char [3]
|
s887973960 | p03643 | C++ | #include <iostream>
using namespace std;
int main()
{
int a;
cin >> a;
cout << "ABC" << a<< endl;
}
return 0;
| a.cc:9:1: error: expected unqualified-id before 'return'
9 | return 0;
| ^~~~~~
|
s856487181 | p03643 | C | #include <stdio.h>
#include <conio.h>
int main(){
int n = 0;
scanf(" %d",&n);
printf("ABC%d",n);
return 0;
} | main.c:2:10: fatal error: conio.h: No such file or directory
2 | #include <conio.h>
| ^~~~~~~~~
compilation terminated.
|
s059111651 | p03643 | C | #include <stdio.h>
#include <conio.h>
int main(){
int n = 0;
scanf(" %d",&n);
printf("ABC%d",n);
_getch();
return 0;
} | main.c:2:10: fatal error: conio.h: No such file or directory
2 | #include <conio.h>
| ^~~~~~~~~
compilation terminated.
|
s256825056 | p03643 | C++ | import java.util.*;
import java.lang.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String s = sc.next();
System.out.print("ABC"+s);
System.out.println();
}
} | a.cc:1:1: error: 'import' does not name a type
1 | import java.util.*;
| ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
2 | import java.lang.*;
| ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: expected unqualified-id before 'public'
4 | public class Main {
| ^~~~~~
|
s053222937 | p03643 | C++ | #include <bits/stdc++.h>
using namespace std;
int main()
{
ios_base::sync_with_stdio(0);
int a; cin >> a;
cout << "ABC" << a << '\n';
}
~
~
~ | a.cc:11:1: error: expected class-name before '~' token
11 | ~
| ^
|
s263568353 | p03643 | C++ | #include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
cout << "ABC" << n << endl;
// your code goes here
return 0;
}#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
cout << "ABC" << n << endl;
// your code goes here
return 0;
} | a.cc:10:2: error: stray '#' in program
10 | }#include <iostream>
| ^
a.cc:10:3: error: 'include' does not name a type
10 | }#include <iostream>
| ^~~~~~~
a.cc:13:5: error: redefinition of 'int main()'
13 | int main() {
| ^~~~
a.cc:4:5: note: 'int main()' previously defined here
4 | int main() {
| ^~~~
|
s345508547 | p03643 | C++ | #include<iostream>
#include<algorithm>
#include<cstring>
#include<cmath>
#include<queue>
#include<vector>
#include<cstdio>
#include<iomanip>
using namespace std;
//int father[100001];
struct wo{
int x;
int y;
int dis;
}
//queue<int>p;
priority_queue<long long ,vector<long long>,greater<long long> >pp;
/*int cmp(wo a,wo b)
return a. <b. ;
*/
/*
void unionn (int x,int y){
x=find(x);y=find(y);
father[y]=x;
}
int find(int x)
{
if(father[x]!=x)father[x]=find(father[x]);
return father[x];
}
int judge(int a,int b){
if(find(a)!=find(b))return 0;
else return 1;
}
*/
/*
int dij(){
for(int i=1;i<=n;i++){
for(int j=i+1;j<=n;j++){
t++;
dis[t].distance=0;
for(int k=0;k<7;k++){
if(car[i][k]!=car[j][k]){
dis[t].distance++;
}
}
dis[t].x=i;dis[t].y=j;
}
}
for(int i=1;i<=n;i++){
father[i]=i;
}
sort(dis+1,dis+t+1,cmp);
for(int i=1;i<=t;i++){
if(find(dis[i].x)!=find(dis[i].y)){
unionn(dis[i].x,dis[i].y);
ans+=dis[i].distance;
}
}
}
*/
int main(){
long long a[101111]={0},ans,n;
//char b[100001];
cin>>n;
/*for(int i=1;i<=n;i++){
cin>>a[i];
}*/
/*
if()cout<<"No";
else cout<<"Yes";
*/
cout<</*fixed<<setprecision()*/"ABC"<<n<<endl;
return 0;
}
| a.cc:17:65: error: invalid declarator before 'pp'
17 | priority_queue<long long ,vector<long long>,greater<long long> >pp;
| ^~
|
s087781303 | p03643 | C++ | #include <iostream>
#include <string>
int main()
{
int N;
cin >> N;
string n = to_string(N);
cout << "ABC" << n << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:17: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
7 | cin >> N;
| ^~~
| std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
62 | extern istream cin; ///< Linked to standard input
| ^~~
a.cc:8:17: error: 'string' was not declared in this scope
8 | string n = to_string(N);
| ^~~~~~
a.cc:8:17: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
from /usr/include/c++/14/ios:40,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/bits/stringfwd.h:77:33: note: 'std::string'
77 | typedef basic_string<char> string;
| ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
from /usr/include/c++/14/bits/ios_base.h:41,
from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note: 'std::pmr::string'
76 | using string = basic_string<char>;
| ^~~~~~
a.cc:9:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
9 | cout << "ABC" << n << endl;
| ^~~~
| std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
a.cc:9:34: error: 'n' was not declared in this scope
9 | cout << "ABC" << n << endl;
| ^
a.cc:9:39: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
9 | cout << "ABC" << n << endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s534583077 | p03643 | C | #include <stdio.h>
int main(){
int n = 0;
scanf_s(" %d",&n);
printf("ABC%d",n);
return 0;
} | main.c: In function 'main':
main.c:7:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
7 | scanf_s(" %d",&n);
| ^~~~~~~
| scanf
|
s282217236 | p03643 | C++ | #include <iostream>
using namespace std;
int main()
{
int a;
cin >> a;
cout << "ABC" << a<< endl;
}
return 0;
| a.cc:9:1: error: expected unqualified-id before 'return'
9 | return 0;
| ^~~~~~
|
s947638057 | p03643 | C++ | #include <string>
#include <vector>
#include <algorithm>
using namespace std;
int main() {
int n;
cin >> n;
cout << "ABC" << n << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:10:5: error: 'cin' was not declared in this scope
10 | cin >> n;
| ^~~
a.cc:4:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
3 | #include <algorithm>
+++ |+#include <iostream>
4 |
a.cc:12:5: error: 'cout' was not declared in this scope
12 | cout << "ABC" << n << endl;
| ^~~~
a.cc:12:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:27: error: 'endl' was not declared in this scope
12 | cout << "ABC" << n << endl;
| ^~~~
a.cc:4:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
3 | #include <algorithm>
+++ |+#include <ostream>
4 |
|
s810434514 | p03643 | C++ | //yashverma
#include<bits/stdc++.h>
using namespace std;
#define rep(i,a,b) for(int i=a;i<b;i++)
#define F first
#define S second
#define pb push_back
#define Pi 3.141592653589793
#define MOD 1000000007
// For i/o
#define sd1(a) scanf("%d",&a)
#define sd2(a,b) scanf("%d %d",&a,&b)
#define sd3(a,b,c) scanf("%d%d%d",&a,&b,&c)
#define sf scanf
#define pf printf
// For debugging
#define deb(a) printf("deb%d\n",a)
typedef pair<int,int> ii;
typedef long long ll;
int main()
{
ios::sync_with_stdio(false);
int n;
cin << n;
cout << "ABC" << n << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:28:13: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int')
28 | cin << n;
| ~~~ ^~ ~
| | |
| | int
| std::istream {aka std::basic_istream<char>}
a.cc:28:13: note: candidate: 'operator<<(int, int)' (built-in)
28 | cin << n;
| ~~~~^~~~
a.cc:28:13: note: no known conversion for argument 1 from 'std::istream' {aka 'std::basic_istream<char>'} to 'int'
In file included from /usr/include/c++/14/regex:68,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:181,
from a.cc:3:
/usr/include/c++/14/bits/regex.h:1715:5: note: candidate: 'template<class _Ch_type, class _Ch_traits, class _Bi_iter> std::basic_ostream<_CharT, _Traits>& std::__cxx11::operator<<(std::basic_ostream<_CharT, _Traits>&, const sub_match<_Bi_iter>&)'
1715 | operator<<(basic_ostream<_Ch_type, _Ch_traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/bits/regex.h:1715:5: note: template argument deduction/substitution failed:
a.cc:28:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
28 | cin << n;
| ^
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41:
/usr/include/c++/14/cstddef:125:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator<<(byte, _IntegerType)'
125 | operator<<(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/14/cstddef:125:5: note: template argument deduction/substitution failed:
a.cc:28:9: note: cannot convert 'std::cin' (type 'std::istream' {aka 'std::basic_istream<char>'}) to type 'std::byte'
28 | cin << n;
| ^~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/string_view:763:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, basic_string_view<_CharT, _Traits>)'
763 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/string_view:763:5: note: template argument deduction/substitution failed:
a.cc:28:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
28 | cin << n;
| ^
/usr/include/c++/14/bits/basic_string.h:4077:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
4077 | operator<<(basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:4077:5: note: template argument deduction/substitution failed:
a.cc:28:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
28 | cin << n;
| ^
/usr/include/c++/14/bitset:1687:5: note: candidate: 'template<class _CharT, class _Traits, long unsigned int _Nb> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const bitset<_Nb>&)'
1687 | operator<<(std::basic_ostream<_CharT, _Traits>& __os,
| ^~~~~~~~
/usr/include/c++/14/bitset:1687:5: note: template argument deduction/substitution failed:
a.cc:28:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
28 | cin << n;
| ^
In file included from /usr/include/c++/14/bits/ios_base.h:46,
from /usr/include/c++/14/streambuf:43,
from /usr/include/c++/14/bits/streambuf_iterator.h:35,
from /usr/include/c++/14/iterator:66,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:54:
/usr/include/c++/14/system_error:339:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const error_code&)'
339 | operator<<(basic_ostream<_CharT, _Traits>& __os, const error_code& __e)
| ^~~~~~~~
/usr/include/c++/14/system_error:339:5: note: template argument deduction/substitution failed:
a.cc:28:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
28 | cin << n;
| ^
In file included from /usr/include/c++/14/memory:80,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:56:
/usr/include/c++/14/bits/shared_ptr.h:70:5: note: candidate: 'template<class _Ch, class _Tr, class _Tp, __gnu_cxx::_Lock_policy _Lp> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const __shared_ptr<_Tp, _Lp>&)'
70 | operator<<(std::basic_ostream<_Ch, _Tr>& __os,
| ^~~~~~~~
/usr/include/c++/14/bits/shared_ptr.h:70:5: note: template argument deduction/substitution failed:
a.cc:28:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
28 | cin << n;
| ^
In file included from /usr/include/c++/14/istream:41,
from /usr/include/c++/14/sstream:40,
from /usr/include/c++/14/complex:45,
from /usr/include/c++/14/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:563:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, _CharT)'
563 | operator<<(basic_ostream<_CharT, _Traits>& __out, _CharT __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:563:5: note: template argument deduction/substitution failed:
a.cc:28:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
28 | cin << n;
| ^
/usr/include/c++/14/ostream:573:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, char)'
573 | operator<<(basic_ostream<_CharT, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:573:5: note: template argument deduction/substitution failed:
a.cc:28:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
28 | cin << n;
| ^
/usr/include/c++/14/ostream:579:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, char)'
579 | operator<<(basic_ostream<char, _Traits>& __out, char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:579:5: note: template argument deduction/substitution failed:
a.cc:28:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
28 | cin << n;
| ^
/usr/include/c++/14/ostream:590:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, signed char)'
590 | operator<<(basic_ostream<char, _Traits>& __out, signed char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:590:5: note: template argument deduction/substitution failed:
a.cc:28:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
28 | cin << n;
| ^
/usr/include/c++/14/ostream:595:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, unsigned char)'
595 | operator<<(basic_ostream<char, _Traits>& __out, unsigned char __c)
| ^~~~~~~~
/usr/include/c++/14/ostream:595:5: note: template argument deduction/substitution failed:
a.cc:28:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
28 | cin << n;
| ^
/usr/include/c++/14/ostream:654:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const _CharT*)'
654 | operator<<(basic_ostream<_CharT, _Traits>& __out, const _CharT* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:654:5: note: template argument deduction/substitution failed:
a.cc:28:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
28 | cin << n;
| ^
In file included from /usr/include/c++/14/ostream:1022:
/usr/include/c++/14/bits/ostream.tcc:307:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_ostream<_CharT, _Traits>& std::operator<<(basic_ostream<_CharT, _Traits>&, const char*)'
307 | operator<<(basic_ostream<_CharT, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/include/c++/14/bits/ostream.tcc:307:5: note: template argument deduction/substitution failed:
a.cc:28:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
28 | cin << n;
| ^
/usr/include/c++/14/ostream:671:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const char*)'
671 | operator<<(basic_ostream<char, _Traits>& __out, const char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:671:5: note: template argument deduction/substitution failed:
a.cc:28:16: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Tra |
s970609237 | p03643 | C++ | # coding: utf-8
# Here your code !
N=input()
print("ABC"+str(N)) | a.cc:1:3: error: invalid preprocessing directive #coding
1 | # coding: utf-8
| ^~~~~~
a.cc:2:3: error: invalid preprocessing directive #Here
2 | # Here your code !
| ^~~~
a.cc:3:1: error: 'N' does not name a type
3 | N=input()
| ^
|
s027513053 | p03643 | C++ | #include <cassert>
#include <cctype>
#include <cerrno>
#include <cfloat>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>
#include <csetjmp>
#include <csignal>
#include <cstdarg>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
/*
//#if __cplusplus >= 201103L
#include <ccomplex>
#include <cfenv>
#include <cinttypes>
#include <cstdbool>
#include <cstdint>
#include <ctgmath>
#include <cwchar>
#include <cwctype>
*/
// C++
#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include <map>
#include <memory>
#include <new>
#include <numeric>
#include <ostream>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <streambuf>
#include <string>
#include <typeinfo>
#include <utility>
#include <valarray>
#include <vector>
/*
//#if __cplusplus >= 201103L
#include <array>
#include <chrono>
#include <condition_variable>
#include <forward_list>
#include <future>
#include <initializer_list>
#include <mutex>
#include <random>
#include <ratio>
#include <regex>
#include <scoped_allocator>
#include <system_error>
#include <thread>
#include <tuple>
#include <typeindex>
#include <type_traits>
#include <unordered_map>
#include <unordered_set>
*/
using namespace std;
#define fi first
#define se second
#define repl(i,a,b) for(int i=(int)(a);i<(int)(b);i++)
#define rep(i,n) repl(i,0,n)
#define each(itr,v) for(auto itr:v)
#define pb(s) push_back(s)
#define mmax(x,y) (x>y?x:y)
#define mmin(x,y) (x<y?x:y)
#define maxch(x,y) x=mmax(x,y)
#define minch(x,y) x=mmin(x,y)
#define mp(a,b) make_pair(a,b)
#define all(x) (x).begin(),(x).end()
#define dbg(x) cout<<#x"="<<x<<endl
#define uni(x) x.erase(unique(all(x)),x.end())
template<class T,class U>inline void chmin(T &t,U f){if(t>f)t=f;}
template<class T,class U>inline void chmax(T &t,U f){if(t<f)t=f;}
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define MIN(a, b) ((a) > (b) ? (b) : (a))
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int, int> P;
typedef pair<P, int> PPI;
#define INF INT_MAX/3
#define MAX_N 1000
#define M_INF 1000000000
int n,m,v,i;
void solve(){
cin.tie(0);
ios::sync_with_stdio(false);
cin>>n;
cout<"ABC"<<n<<endl;
}
int main(){
solve();
return 0;
}
| a.cc: In function 'void solve()':
a.cc:117:13: error: invalid operands of types 'const char [4]' and 'int' to binary 'operator<<'
117 | cout<"ABC"<<n<<endl;
| ~~~~~^~~
| | |
| | int
| const char [4]
|
s948977079 | p03643 | C++ |
#include <stdio.h>
#include <stdlib.h>
#include <algorithm>
#include <iostream>
#include <conio.h>
#include <string>
#include <vector>
using namespace std;
int main()
{
int n;
cin >> n;
cout << "ABC" << n;
//_getch();
return 0;
} | a.cc:6:10: fatal error: conio.h: No such file or directory
6 | #include <conio.h>
| ^~~~~~~~~
compilation terminated.
|
s710976177 | p03643 | C++ | #include<iostream>
#include<algorithm>
#include<cstring>
#include<cmath>
#include<queue>
#include<vector>
#include<cstdio>
#include<iomanip>
using namespace std;
//int father[100001];
struct wo{
int x;
int y;
int dis;
}
queue<int>p;
priority_queue<long long ,vector<long long>,greater<long long> >pp;
/*int cmp(wo a,wo b)
return a. <b. ;
*/
/*
void unionn (int x,int y){
x=find(x);y=find(y);
father[y]=x;
}
int find(int x)
{
if(father[x]!=x)father[x]=find(father[x]);
return father[x];
}
int judge(int a,int b){
if(find(a)!=find(b))return 0;
else return 1;
}
*/
/*
int dij(){
for(int i=1;i<=n;i++){
for(int j=i+1;j<=n;j++){
t++;
dis[t].distance=0;
for(int k=0;k<7;k++){
if(car[i][k]!=car[j][k]){
dis[t].distance++;
}
}
dis[t].x=i;dis[t].y=j;
}
}
for(int i=1;i<=n;i++){
father[i]=i;
}
sort(dis+1,dis+t+1,cmp);
for(int i=1;i<=t;i++){
if(find(dis[i].x)!=find(dis[i].y)){
unionn(dis[i].x,dis[i].y);
ans+=dis[i].distance;
}
}
}
*/
int main(){
long long a[101111]={0},ans,n;
//char b[100001];
cin>>n;
/*for(int i=1;i<=n;i++){
cin>>a[i];
}*/
/*
if()cout<<"No";
else cout<<"Yes";
*/
cout<</*fixed<<setprecision()*/"ABC"<<n<<endl;
return 0;
}
| a.cc:16:11: error: invalid declarator before 'p'
16 | queue<int>p;
| ^
|
s101038556 | p03644 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int n,cou=0,res=0;
cin >> n;
for(int i=1;i<=n;i++){
if(i%2==0){
int a =i,counter=1;
while(a>=0){
a /= 2;
if(a%2==1) break;
counter++;
}
}
if(counter>cou){
cou=counter;
res=i;
}
}
cout<<res<<endl;
} | a.cc: In function 'int main()':
a.cc:16:12: error: 'counter' was not declared in this scope
16 | if(counter>cou){
| ^~~~~~~
|
s405735789 | p03644 | C++ | #include <iostream>
using namespace std;
int main()
{
itn N;
cin >> N;
int ans = 1;
while (ans <= N) {
if (ans*2 <= N) {
ans *= 2;
} else {
break;
}
}
cout << ans << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:5:3: error: 'itn' was not declared in this scope; did you mean 'int'?
5 | itn N;
| ^~~
| int
a.cc:6:10: error: 'N' was not declared in this scope
6 | cin >> N;
| ^
|
s156668289 | p03644 | C++ | #include <iostream>
using namespace std;
int main()
{
itn N;
cin >> N;
int ans = 1;
while (ans <= N) {
if (ans*2 <= N) {
ans *= 2;
}
}
cout << ans << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:5:3: error: 'itn' was not declared in this scope; did you mean 'int'?
5 | itn N;
| ^~~
| int
a.cc:6:10: error: 'N' was not declared in this scope
6 | cin >> N;
| ^
|
s480034124 | p03644 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
//マクロ
//forループ関係
//引数は、(ループ内変数,動く範囲)か(ループ内変数,始めの数,終わりの数)、のどちらか
//Dがついてないものはループ変数は1ずつインクリメントされ、Dがついてるものはループ変数は1ずつデクリメントされる
#define REP(i,n) for(ll i=0;i<(ll)(n);i++)
#define REPD(i,n) for(ll i=n-1;i>=0;i--)
#define FOR(i,a,b) for(ll i=a;i<=(ll)(b);i++)
#define FORD(i,a,b) for(ll i=a;i>=(ll)(b);i--)
//xにはvectorなどのコンテナ
#define ALL(x) (x).begin(),(x).end() //sortなどの引数を省略したい
#define SIZE(x) ((ll)(x).size()) //sizeをsize_tからllに直しておく
#define MAX(x) *max_element(ALL(x)) //最大値を求める
#define MIN(x) *min_element(ALL(x)) //最小値を求める
//定数
#define INF 1000000000000 //10^12:極めて大きい値,∞
#define MOD 1000000007 //10^9+7:合同式の法
#define MAXR 100000 //10^5:配列の最大のrange(素数列挙などで使用)
#define PI 3.14159265359 //πの値
//略記
#define PB push_back //vectorヘの挿入
#define MP make_pair //pairのコンストラクタ
#define F first //pairの一つ目の要素
#define S second //pairの二つ目の要素
#define C(x) cout << x << endl //テスト出力
//関数
//nCkの計算の関数(呼び出しは[cbn])
ll cbn(ll n, ll k) {
ll r = 1;
for (ll d = 1; d <= k; ++d) {
r *= n--;
r /= d;
}
return r;
}
// a^n mod を計算する
ll powmod(ll a, ll n) {
ll res = 1;
while (n > 0) {
if (n & 1) res = res * a % MOD;
a = a * a % MOD;
n >>= 1;
}
return res;
}
//2つの最大公約数
int gcb(int a, int b){
if(a < b){
int x = a;
a = b;
b = x;
}
int amari = a % b;
if(amari == 0) return b;
return gcb(b, amari);
}
//3つの最大公約数
int gcb_3(int a, int b, int c){
return gcb(gcb(a, b), c);
}
/*-----------------------------ここから-----------------------------*/
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
ll n; cin>>n;1 2 4 8 16 32 64
if(n==1) cout << n;
else if(n<4) cout << 2;
else if(n<8) cout << 4;
else if(n<16) cout << 8;
else if(n<32) cout << 16;
else if(n<64) cout << 32;
else cout << 64;
} | a.cc: In function 'int main()':
a.cc:72:15: error: expected ';' before numeric constant
72 | ll n; cin>>n;1 2 4 8 16 32 64
| ^~
| ;
a.cc:74:1: error: 'else' without a previous 'if'
74 | else if(n<4) cout << 2;
| ^~~~
|
s152678361 | p03644 | C++ | #include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
int ans = -1;
int pos ;
for(int i =1;i<=n;i++)
{int m = 0;
for(int j =1;j<=i;j++)
{
if(j%2==0) m++;
}
if(m>ans)
{
ans = m;
pos=i;
}
cout<<pos<<endl;
} | a.cc: In function 'int main()':
a.cc:21:2: error: expected '}' at end of input
21 | }
| ^
a.cc:4:1: note: to match this '{'
4 | {
| ^
|
s082437200 | p03644 | C++ | #include <iostream>
int main(void){
int N, ans=1;
std::cin >> N;
for (int i = 1; i<7; ++i){
if (ans * 2 <= N){
ans *= 2;
}
}
std::cout << ans << std::endl;
return 0;
| a.cc: In function 'int main()':
a.cc:15:14: error: expected '}' at end of input
15 | return 0;
| ^
a.cc:3:15: note: to match this '{'
3 | int main(void){
| ^
|
s087573764 | p03644 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int N;cin>>N;
int ans=1;
int X=2;
while(X<101){
if(N>=X) ans*=2;
X*=2;
}
| a.cc: In function 'int main()':
a.cc:11:4: error: expected '}' at end of input
11 | }
| ^
a.cc:4:11: note: to match this '{'
4 | int main(){
| ^
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.