submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s982624515 | p03693 | C++ | #include<iostream>
#include<stdio.h>
using namespace std;
int main(){
int r,g,b
cin >> r >> g >> b;
r*=100;
g*=10;
r=r+g+b;
if(r%4==0)
cout <<"YES"<<endl;
else
cout <<"NO"<<endl;
}
| a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
6 | cin >> r >> g >> b;
| ^~~
a.cc:9:9: error: 'b' was not declared in this scope
9 | r=r+g+b;
| ^
|
s491771002 | p03693 | C++ | #include<iostream>
#include<stdio.h>
using namespace std;
int main(){
int r,g,b
cin>> r >> g >> b;
r*=100;
g*=10;
r=r+g+b;
if(r%4==0)
cout<<"YES"<<endl;
else
cout<<"NO"<<endl;
}
| a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
6 | cin>> r >> g >> b;
| ^~~
a.cc:9:9: error: 'b' was not declared in this scope
9 | r=r+g+b;
| ^
|
s660051422 | p03693 | C++ | #include<iostream>
#include<stdio.h>
using namespace std;
int main(){
int r,g,b
cin>>r >>g >>b;
r*=100;
g*=10;
r=r+g+b;
if(r%4==0)
cout<<"YES"<<endl;
else
cout<<"NO"<<endl;
}
| a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
6 | cin>>r >>g >>b;
| ^~~
a.cc:9:9: error: 'b' was not declared in this scope
9 | r=r+g+b;
| ^
|
s164339112 | p03693 | C++ | #include<iostream>
#include<stdio.h>
using namespace std;
int main(){
int r,g,b
cin>>r >>g >>b;
r*=100;
g*=10;
r+=g+b;
if(r%4==0)
cout<<"YES"<<endl;
else
cout<<"NO"<<endl;
}
| a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
6 | cin>>r >>g >>b;
| ^~~
a.cc:9:8: error: 'b' was not declared in this scope
9 | r+=g+b;
| ^
|
s005076972 | p03693 | C++ | #include<iostream>
using namespace std;
int main(){
int r,g,b
while(r>1&&g<9&&b<9){
cin>>r >>g >>b;
r*=100;
g*=10;
r+=g+b;
if(r%4==0)
cout<<"YES"<<endl;
else
cout<<"NO"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:5:3: error: expected initializer before 'while'
5 | while(r>1&&g<9&&b<9){
| ^~~~~
|
s999197466 | p03693 | C++ | #include<iostream>
using namespace std;
int main(){
int r,g,b
cin>>r >>g >>b;
r*=100;
g*=10;
r+=g+b;
if(r%4==0)
cout<<"YES"<<endl;
else
cout<<"NO"<<endl;
} | a.cc: In function 'int main()':
a.cc:5:3: error: expected initializer before 'cin'
5 | cin>>r >>g >>b;
| ^~~
a.cc:8:8: error: 'b' was not declared in this scope
8 | r+=g+b;
| ^
|
s385111234 | p03693 | C++ | #include<iostream>
using namespace std;
int main(){
int r,g,b
cin>>r >>g >>b;
r*=100;
g*=10;
r+=g+b;
if(r%4==0)
cout<<"YES"<<endl;
else
cout<<"NO"<<endl;
} | a.cc: In function 'int main()':
a.cc:5:3: error: expected initializer before 'cin'
5 | cin>>r >>g >>b;
| ^~~
a.cc:8:8: error: 'b' was not declared in this scope
8 | r+=g+b;
| ^
|
s285337683 | p03693 | C++ | main :: IO()
main = do
[_,g,b] <- map read . words <$> getLine
putStrLn $ if (mod (10*g+b) 4 == 0) then "YES" else "NO"
| a.cc:1:1: error: 'main' does not name a type
1 | main :: IO()
| ^~~~
|
s580390623 | p03693 | C++ | main :: IO()
main = do
[r,g,b] <- map read . words <$> getLine
putStrLn $ if (mod (10*g+b) 4 == 0) then "YES" else "NO" | a.cc:1:1: error: 'main' does not name a type
1 | main :: IO()
| ^~~~
|
s195028244 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>C;
int x=a*100+b*10+c;
if(x%4==0){
cout<<"YES"<<endl;
}
else cout<<"NO"<<endl;
}
| a.cc: In function 'int main()':
a.cc:5:14: error: 'C' was not declared in this scope
5 | cin>>a>>b>>C;
| ^
|
s085417350 | p03693 | C++ | #include <bits/stdc++.c>
using namespace std;
int main() {
int r, g, b; cin >> r >> g >> b;
if ((g * 10 + b) % 4 == 0) cout << "YES" << endl;
else cout << "NO" << endl;
return 0;
} | a.cc:1:10: fatal error: bits/stdc++.c: No such file or directory
1 | #include <bits/stdc++.c>
| ^~~~~~~~~~~~~~~
compilation terminated.
|
s826949328 | p03693 | C++ | 8 int main()
9 {
10 int a, b, c;
11
12 cin >> a >> b >> c;
13
14 if((a * 100 + b * 10 + c) % 4) {
15 puts("NO");
16 } else {
17 puts("YES");
18 }
19 return 0;
20 }
21 #el | a.cc:14:5: error: stray '#' in program
14 | 21 #el
| ^
a.cc:1:3: error: expected unqualified-id before numeric constant
1 | 8 int main()
| ^
a.cc:14:2: error: expected unqualified-id before numeric constant
14 | 21 #el
| ^~
|
s416927215 | p03693 | C++ | 771+#include <bits/stdc++.h>
using namespace std;
int main() {
int r,g,b;
cin >>r>>g>>b;
if (((r*100)+(g*10)+b)%4==0){
cout <<"YES"<<endl;
}
else {
cout <<"NO"<<endl;
}
} | a.cc:1:5: error: stray '#' in program
1 | 771+#include <bits/stdc++.h>
| ^
a.cc:1:1: error: expected unqualified-id before numeric constant
1 | 771+#include <bits/stdc++.h>
| ^~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
5 | cin >>r>>g>>b;
| ^~~
a.cc:7:5: error: 'cout' was not declared in this scope
7 | cout <<"YES"<<endl;
| ^~~~
a.cc:7:19: error: 'endl' was not declared in this scope
7 | cout <<"YES"<<endl;
| ^~~~
a.cc:10:5: error: 'cout' was not declared in this scope
10 | cout <<"NO"<<endl;
| ^~~~
a.cc:10:18: error: 'endl' was not declared in this scope
10 | cout <<"NO"<<endl;
| ^~~~
|
s068427832 | p03693 | C++ | #include <iostream>
using namespace std;
int main(){
int g,b;
cin >> g>>b;
int c = 10g + b;
if(c % 4 == 0)cout <<"YES"<<end1;
else cout<<"NO"<<end1
}
| a.cc: In function 'int main()':
a.cc:8:11: error: unable to find numeric literal operator 'operator""g'
8 | int c = 10g + b;
| ^~~
a.cc:9:31: error: 'end1' was not declared in this scope
9 | if(c % 4 == 0)cout <<"YES"<<end1;
| ^~~~
a.cc:10:20: error: 'end1' was not declared in this scope
10 | else cout<<"NO"<<end1
| ^~~~
|
s235662904 | p03693 | C++ | #include stdio.h
int main(){
int g,b;
cin >> g>>b;
int c = 10g + b;
if(c % 4 == 0)cout <<"YES"<<end1;
else cout<<"NO"<<end1
}
| a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
1 | #include stdio.h
| ^~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
6 | cin >> g>>b;
| ^~~
a.cc:7:11: error: unable to find numeric literal operator 'operator""g'
7 | int c = 10g + b;
| ^~~
a.cc:8:17: error: 'cout' was not declared in this scope
8 | if(c % 4 == 0)cout <<"YES"<<end1;
| ^~~~
a.cc:8:31: error: 'end1' was not declared in this scope
8 | if(c % 4 == 0)cout <<"YES"<<end1;
| ^~~~
a.cc:9:8: error: 'cout' was not declared in this scope
9 | else cout<<"NO"<<end1
| ^~~~
a.cc:9:20: error: 'end1' was not declared in this scope
9 | else cout<<"NO"<<end1
| ^~~~
|
s206866158 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int r, g,b ;
cin >> r>> g >> b;
if ((100*r + 10*g + b) % 4 == 0){
cout<< "YES" << endl;
else {
cout << "NO" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:10:5: error: expected '}' before 'else'
10 | else {
| ^~~~
a.cc:8:35: note: to match this '{'
8 | if ((100*r + 10*g + b) % 4 == 0){
| ^
|
s681656942 | p03693 | C++ | 4 3 2 | a.cc:1:1: error: expected unqualified-id before numeric constant
1 | 4 3 2
| ^
|
s991045675 | p03693 | C | #include<stdio.h>
int main(void)
{
int r,g,b,total;
scanf("%d %d %d",&r,&g,&b);
total=r*100+g*10+b;
if(total%4==0){
printf("YES\n");
else{
printf("NO\n");
}
return 0;
} | main.c: In function 'main':
main.c:9:6: error: expected '}' before 'else'
9 | else{
| ^~~~
|
s173127851 | p03693 | C | #include<stdio.h>
int main()
{
int r,g,b,total;
scanf("%d %d %d",&r,&g,&b);
total=r*100+g*10+b;
if(total%4==0){
printf("YES\n");
else{
printf("NO\n");
}
return 0;
} | main.c: In function 'main':
main.c:9:6: error: expected '}' before 'else'
9 | else{
| ^~~~
|
s983101416 | p03693 | Java | import java.util.Scanner;
import java.util.List;
import java.util.ArrayList;
import java.util.Collections;
class Main {
public static void main(string args[]) {
Scanner std = new Scanner(System.in);
List<Integer> list = new ArrayList<>();
int N = std.nextInt();
for(int i = 0; i < N; i++) {
int a = std.nextInt();
list.add(a);
}
Integer x = Collections.max(list);
Integer y = Collections.min(list);
}
} | Main.java:7: error: cannot find symbol
public static void main(string args[]) {
^
symbol: class string
location: class Main
1 error
|
s208024071 | p03693 | C++ | using namespace std;
#include <bits/stdc++.h>
#define rep(i, s) for (int i = 0; i < s; ++i)
#define repr(i, n) for(int i = n; i >= 0; i--)
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define all(v) (v.begin(), v.end())
#define EACH(i, s) for (__typeof__((s).begin()) i = (s).begin(); i != (s).end(); ++i)
#define VEC(a, n) vector<int>a(n)
#define PQ(a) priority_queue<int>a
#define PQmin(a) priority_queue< int, :vector<int>, greater<int> >a
#define PAIR pair<int, int>
typedef long long ll;
typedef pair<ll, ll> l_l;
typedef pair<int, int> i_i;
#define EPS (1e-7)
#define INF (1e10)
#define PI (acos(-1))
const ll mod = 1000000007;
int main(){
ios::sync_with_stdio(false);
cin.tie(0);
int N;
cin>>N;
VEC(A,N);
rep(i,N)
cin>>A[i];
sort(all(A));
cout<<A[N-1]-A[0]<<endl;
}
| a.cc: In function 'int main()':
a.cc:6:24: warning: ignoring return value of 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::begin() [with _Tp = int; _Alloc = std::allocator<int>; iterator = std::vector<int>::iterator]', declared with attribute 'nodiscard' [-Wunused-result]
6 | #define all(v) (v.begin(), v.end())
| ^
a.cc:28:8: note: in expansion of macro 'all'
28 | sort(all(A));
| ^~~
In file included from /usr/include/c++/14/vector:66,
from /usr/include/c++/14/functional:64,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
from a.cc:2:
/usr/include/c++/14/bits/stl_vector.h:873:7: note: declared here
873 | begin() _GLIBCXX_NOEXCEPT
| ^~~~~
a.cc:28:7: error: no matching function for call to 'sort(std::vector<int>::iterator)'
28 | sort(all(A));
| ~~~~^~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/bits/stl_algo.h:4762:5: note: candidate: 'template<class _RAIter> void std::sort(_RAIter, _RAIter)'
4762 | sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
| ^~~~
/usr/include/c++/14/bits/stl_algo.h:4762:5: note: candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algo.h:4793:5: note: candidate: 'template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)'
4793 | sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
| ^~~~
/usr/include/c++/14/bits/stl_algo.h:4793:5: note: candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:292:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator, class _Compare> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator, _Compare)'
292 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp);
| ^~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:292:1: note: candidate expects 4 arguments, 1 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator)'
296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
| ^~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: candidate expects 3 arguments, 1 provided
|
s654522778 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int r, g, b;
cin >> r >> g >> b;
int s = 100 * r + 10 * g + b;
if (s%4 == 0) {
cout << "YES" << endl;
} else {
cout << "NO" <<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:16:2: error: expected '}' at end of input
16 | }
| ^
a.cc:4:12: note: to match this '{'
4 | int main() {
| ^
|
s455254945 | p03693 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int r,g,b;
cin >> r >> g >> b;
if((10*g+b)%4==0){
cout << "YES" << endl;
}else if{
cout << "NO" << endl;
}
} | a.cc: In function 'int main()':
a.cc:9:11: error: expected '(' before '{' token
9 | }else if{
| ^
| (
|
s474055713 | p03693 | C++ | include<bits/stdc++.h>
using namespace std;
int main(){
int r,g,b;
cin >> r >> g >> b;
if((10*g+b)%4==0){
cout << "YES" << endl;
}else if{
cout << "NO" << endl;
}
} | a.cc:1:1: error: 'include' does not name a type
1 | include<bits/stdc++.h>
| ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
6 | cin >> r >> g >> b;
| ^~~
a.cc:8:5: error: 'cout' was not declared in this scope
8 | cout << "YES" << endl;
| ^~~~
a.cc:8:22: error: 'endl' was not declared in this scope
8 | cout << "YES" << endl;
| ^~~~
a.cc:9:11: error: expected '(' before '{' token
9 | }else if{
| ^
| (
|
s052470549 | p03693 | C++ | include<bits/stdc++.h>
using namespace std;
int main(){
int r,g,b;
cin >> r >> g >> b >>endl;
if((10*g+b)%4==0){
cout << "YES" << endl;
}else if{
cout << "NO" << endl;
}
} | a.cc:1:1: error: 'include' does not name a type
1 | include<bits/stdc++.h>
| ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
6 | cin >> r >> g >> b >>endl;
| ^~~
a.cc:6:24: error: 'endl' was not declared in this scope
6 | cin >> r >> g >> b >>endl;
| ^~~~
a.cc:8:5: error: 'cout' was not declared in this scope
8 | cout << "YES" << endl;
| ^~~~
a.cc:9:11: error: expected '(' before '{' token
9 | }else if{
| ^
| (
|
s650098750 | p03693 | C++ | include<bits/stdc++.h>
using namespace std;
int(){
int r,g,b;
cin >> r >> g >> b >>endl;
if((10*g+b)%4==0){
cout << "YES" << endl;
}else if{
cout << "NO" << endl;
}
} | a.cc:1:1: error: 'include' does not name a type
1 | include<bits/stdc++.h>
| ^~~~~~~
a.cc:4:5: error: expected unqualified-id before ')' token
4 | int(){
| ^
|
s743397664 | p03693 | C++ | include<bits/stdc++.h>
using namespace std;
int(){
int r,g,b;
cin >> r >> g >> b >>endl;
if((10g+b)%4==0){
cout << "YES" << endl;
}else if{
cout << "NO" << endl;
}
} | a.cc:1:1: error: 'include' does not name a type
1 | include<bits/stdc++.h>
| ^~~~~~~
a.cc:4:5: error: expected unqualified-id before ')' token
4 | int(){
| ^
|
s061163727 | p03693 | C++ | #include <bits/stdc++.h>
#include<algorithm>
#include<math.h>
using namespace std;
template <class T> using V = vector<T>;
using ll = long long;
using db = double;
using st = string;
using ch = char;
using vll = V<ll>;
using vpll =V<pair<ll,ll>>;
using vst = V<st>;
using vdb = V<db>;
using vch = V<ch>;
#define FOR(i,a,b) for(ll i=(a);i<(ll)(b);i++)
#define rFOR(i,a,b) for(ll i=(a);i>(ll)(b);i--)
#define oFOR(i,a,b) for(ll i=(a);i<(ll)(b);i+=2)
#define bgn begin()
#define en end()
#define SORT(a) sort((a).bgn,(a).en)
#define REV(a) reverse((a).bgn,(a).en)
#define M(a,b) max(a,b)
#define rM(a,b) min(a,b)
#define fi first
#define se second
#define sz size()
#define gcd(a,b) __gcd(a,b)
#define co(a) cout<<a<<endl;
#define ci(a) cin>>a;
ll sum(ll n) {
ll m=0;
FOR(i,0,20){
m+=n%10;
n/=10;
if(n==0){
break;
}
}
return m;
}
ll combi(ll n,ll m) {
ll ans=1;
rFOR(i,n,n-m){
ans*=i;
}
FOR(i,1,m+1){
ans/=i;
}
return ans;
}
ll lcm(ll a,ll b){
ll n;
n=a/gcd(a,b)*b;
return n;
}
/****************************************\
| Thank you for viewing my code:) |
| Written by RedSpica a.k.a. RanseMirage |
| Twitter:@asakaakasaka |
\****************************************/
signed main() {
ll a,b,c;
ci(a>>b>>c);
ll ans=10*b+c;
if(ans%4==0) co("YES")
elese co("NO")
} | a.cc: In function 'int main()':
a.cc:80:5: error: 'elese' was not declared in this scope
80 | elese co("NO")
| ^~~~~
|
s371235029 | p03693 | C++ | using namespace std;
int main() {
int a, b;
cin >> a >> b;
int c = a * b;
if (c % 2 == 0) cout << "Even" << endl;
else cout << "Odd" << endl;
}
| a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope
5 | cin >> a >> b;
| ^~~
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:7:21: error: 'cout' was not declared in this scope
7 | if (c % 2 == 0) cout << "Even" << endl;
| ^~~~
a.cc:7:21: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:39: error: 'endl' was not declared in this scope
7 | if (c % 2 == 0) cout << "Even" << endl;
| ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
+++ |+#include <ostream>
1 | using namespace std;
a.cc:8:10: error: 'cout' was not declared in this scope
8 | else cout << "Odd" << endl;
| ^~~~
a.cc:8:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:27: error: 'endl' was not declared in this scope
8 | else cout << "Odd" << endl;
| ^~~~
a.cc:8:27: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
|
s017352710 | p03693 | C++ | #include <iostream>
using namespace std;
int main(){
int r,g,b;
cin>>r>>g>>b
r = g*10+b;
if(r%4 == 0){
cout<<"YES"<<endl;
}else{
cout<<"NO"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:5:15: error: expected ';' before 'r'
5 | cin>>r>>g>>b
| ^
| ;
6 | r = g*10+b;
| ~
|
s088672451 | p03693 | C++ | #include <iostream>
using namespace std;
int main()
{
//
int r, b, b;
cin >> r >> g >> b;
if ((r * 100 + g * 10 + b) % 4 == 0)
{
cout << "Yes" << endl;
}
else
{
cout << "No" << endl;
}
} | a.cc: In function 'int main()':
a.cc:8:19: error: redeclaration of 'int b'
8 | int r, b, b;
| ^
a.cc:8:16: note: 'int b' previously declared here
8 | int r, b, b;
| ^
a.cc:9:21: error: 'g' was not declared in this scope
9 | cin >> r >> g >> b;
| ^
|
s707619953 | p03693 | C++ | #include <iostream>
using namespace std;
int main()
{
//
int r, b, b;
cin >> r >> g >> b;
if (((r * 100 + g * 10 + b) % 4) == 0)
{
cout << "Yes" << endl;
}
else
{
cout << "No" << endl;
}
} | a.cc: In function 'int main()':
a.cc:8:19: error: redeclaration of 'int b'
8 | int r, b, b;
| ^
a.cc:8:16: note: 'int b' previously declared here
8 | int r, b, b;
| ^
a.cc:9:21: error: 'g' was not declared in this scope
9 | cin >> r >> g >> b;
| ^
|
s048960285 | p03693 | C++ | #include <iostream>
using namespace std;
int main()
{
//
int r, b, b;
cin >> r >> g >> b;
if (((r * 100 + g * 10 + b) % 4) == 0)
{
cout << "Yes" << endl;
}
else
{
cout << "No" << endl;
}
} | a.cc: In function 'int main()':
a.cc:8:19: error: redeclaration of 'int b'
8 | int r, b, b;
| ^
a.cc:8:16: note: 'int b' previously declared here
8 | int r, b, b;
| ^
a.cc:9:21: error: 'g' was not declared in this scope
9 | cin >> r >> g >> b;
| ^
|
s783867742 | p03693 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int r,g,b;
cin>>r>>g>>b;
if((10*g+b)/4==0){
cout<<"YES"<<endl;
}
else{
cout<<""NO<<endl;
}
}
| a.cc: In function 'int main()':
a.cc:10:11: error: unable to find string literal operator 'operator""NO' with 'const char [1]', 'long unsigned int' arguments
10 | cout<<""NO<<endl;
| ^~~~
|
s856739970 | p03693 | C++ | #include <iostream>
using namespace std;
int main()
{
int card[3];
scanf("%d %d %d", &card[0], &card[1], &card[2]);
if (card[] % 4 == 0)
{
cout << "YES" << endl;
}
else
{
cout << "NO" << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:9:18: error: expected primary-expression before ']' token
9 | if (card[] % 4 == 0)
| ^
|
s085352193 | p03693 | C++ |
int a, b, c;
string s;
cin >> a >> b >> c;
int num = a * 100 + b * 10 + c;
s = num % 4 == 0 ? "YES" : "NO";
cout << s << endl; | a.cc:3:9: error: 'string' does not name a type
3 | string s;
| ^~~~~~
a.cc:4:9: error: 'cin' does not name a type
4 | cin >> a >> b >> c;
| ^~~
a.cc:8:9: error: 's' does not name a type
8 | s = num % 4 == 0 ? "YES" : "NO";
| ^
a.cc:10:9: error: 'cout' does not name a type
10 | cout << s << endl;
| ^~~~
|
s400281052 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int r,g,b;
cin >> r >> g >> b ;
int A = r*100 + g*10 + b;
if(A % 4 == 0) {
cout << "YES" << endl;
}
else {
cout << "NO" << emdl;
}
}
| a.cc: In function 'int main()':
a.cc:12:21: error: 'emdl' was not declared in this scope
12 | cout << "NO" << emdl;
| ^~~~
|
s762729976 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int r,g,b;
cin >> r >> g >> b ;
int A = r*100 + g*10 + b;
if(A % 4 == 0) {
cout << "Yes" << endl;
}
else {
cout << "No" << emdl;
}
} | a.cc: In function 'int main()':
a.cc:12:21: error: 'emdl' was not declared in this scope
12 | cout << "No" << emdl;
| ^~~~
|
s571863043 | p03693 | C++ | #include<iostream>
using namespace std;
main(){
int r, g, b ;
cin >> r >> g >> b ;
int ans = (r *100 + g * 10 + b )/ 4 ;
if (ans % 4 ){
cout << "YES" << endl;
}
else
{
cout << "NO" < endl;
}
} | a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
4 | main(){
| ^~~~
a.cc: In function 'int main()':
a.cc:15:20: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
15 | cout << "NO" < endl;
| ~~~~~~~~~~~~~^~~~~~
In file included from /usr/include/c++/14/string:48,
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,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/stl_iterator.h:448:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_Iterator>&)'
448 | operator<(const reverse_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:448:5: note: template argument deduction/substitution failed:
a.cc:15:22: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
15 | cout << "NO" < endl;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:493:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const reverse_iterator<_Iterator>&, const reverse_iterator<_IteratorR>&)'
493 | operator<(const reverse_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:493:5: note: template argument deduction/substitution failed:
a.cc:15:22: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_Iterator>'
15 | cout << "NO" < endl;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:1694:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)'
1694 | operator<(const move_iterator<_IteratorL>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1694:5: note: template argument deduction/substitution failed:
a.cc:15:22: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
15 | cout << "NO" < endl;
| ^~~~
/usr/include/c++/14/bits/stl_iterator.h:1760:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)'
1760 | operator<(const move_iterator<_Iterator>& __x,
| ^~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1760:5: note: template argument deduction/substitution failed:
a.cc:15:22: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>'
15 | cout << "NO" < endl;
| ^~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:64,
from /usr/include/c++/14/string:51:
/usr/include/c++/14/bits/stl_pair.h:1045:5: note: candidate: 'template<class _T1, class _T2> constexpr bool std::operator<(const pair<_T1, _T2>&, const pair<_T1, _T2>&)'
1045 | operator<(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
| ^~~~~~~~
/usr/include/c++/14/bits/stl_pair.h:1045:5: note: template argument deduction/substitution failed:
a.cc:15:22: note: 'std::basic_ostream<char>' is not derived from 'const std::pair<_T1, _T2>'
15 | cout << "NO" < endl;
| ^~~~
In file included from /usr/include/c++/14/bits/basic_string.h:47,
from /usr/include/c++/14/string:54:
/usr/include/c++/14/string_view:673:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)'
673 | operator< (basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:673:5: note: template argument deduction/substitution failed:
a.cc:15:22: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
15 | cout << "NO" < endl;
| ^~~~
/usr/include/c++/14/string_view:680:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)'
680 | operator< (basic_string_view<_CharT, _Traits> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:680:5: note: template argument deduction/substitution failed:
a.cc:15:22: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>'
15 | cout << "NO" < endl;
| ^~~~
/usr/include/c++/14/string_view:688:5: note: candidate: 'template<class _CharT, class _Traits> constexpr bool std::operator<(__type_identity_t<basic_string_view<_CharT, _Traits> >, basic_string_view<_CharT, _Traits>)'
688 | operator< (__type_identity_t<basic_string_view<_CharT, _Traits>> __x,
| ^~~~~~~~
/usr/include/c++/14/string_view:688:5: note: template argument deduction/substitution failed:
a.cc:15:22: note: couldn't deduce template parameter '_CharT'
15 | cout << "NO" < endl;
| ^~~~
/usr/include/c++/14/bits/basic_string.h:3874:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3874 | operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3874:5: note: template argument deduction/substitution failed:
a.cc:15:22: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
15 | cout << "NO" < endl;
| ^~~~
/usr/include/c++/14/bits/basic_string.h:3888:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)'
3888 | operator<(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3888:5: note: template argument deduction/substitution failed:
a.cc:15:22: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>'
15 | cout << "NO" < endl;
| ^~~~
/usr/include/c++/14/bits/basic_string.h:3901:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> bool std::operator<(const _CharT*, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
3901 | operator<(const _CharT* __lhs,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.h:3901:5: note: template argument deduction/substitution failed:
a.cc:15:22: note: mismatched types 'const _CharT*' and 'std::basic_ostream<char>'
15 | cout << "NO" < endl;
| ^~~~
In file included from /usr/include/c++/14/bits/memory_resource.h:47,
from /usr/include/c++/14/string:68:
/usr/include/c++/14/tuple:2600:5: note: candidate: 'template<class ... _TElements, class ... _UElements> constexpr bool std::operator<(const tuple<_UTypes ...>&, const tuple<_Elements ...>&)'
2600 | operator<(const tuple<_TElements...>& __t,
| ^~~~~~~~
/usr/include/c++/14/tuple:2600:5: note: template argument deduction/substitution failed:
a.cc:15:22: note: 'std::basic_ostream<char>' is not derived from 'const std::tuple<_UTypes ...>'
15 | cout << "NO" < endl;
| ^~~~
In file included from /usr/include/c++/14/bits/ios_base.h:46:
/usr/include/c++/14/system_error:324:3: note: candidate: 'bool std::operator<(const error_code&, const error_code&)'
324 | operator<(const error_code& __lhs, const error_code& __rhs) noexcept
| ^~~~~~~~
/usr/include/c++/14/system_error:324:31: note: no known conversion for argument 1 from 'std::basic_ostream<char>' to 'const std::error_code&'
324 | operator<(const error_code& __lhs, const error_code& __rhs) noexcept
| ~~~~~~~~~~~~~~~~~~^~~~~
/usr/include/c++/14/system_error:507:3: note: candidate: 'bool std::operator<(const error_condition&, const error_condition&)'
507 | operator<(const error_condition& __lhs,
| ^~~~~~~~
/usr/include/c++/14/system_error:507:36: note: no known conversion for argument 1 from 'std::basic_ostream<char>' to 'const std::error_condition&'
507 | operator<(const error_condition& __lhs,
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~
|
s857256380 | p03693 | C++ | #include<iostream>
using namespace std;
main(){
int r , g, b ;
cin << r << g << b ;
int ans = (r *100 + g * 10 + b )/ 4 ;
if (ans % 4 ){
cout << "YES" << endl;
}
else
{
cout << "NO" < endl;
}
} | a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
4 | main(){
| ^~~~
a.cc: In function 'int main()':
a.cc:6:8: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int')
6 | cin << r << g << b ;
| ~~~ ^~ ~
| | |
| | int
| std::istream {aka std::basic_istream<char>}
a.cc:6:8: note: candidate: 'operator<<(int, int)' (built-in)
6 | cin << r << g << b ;
| ~~~~^~~~
a.cc:6:8: 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/bits/basic_string.h:47,
from /usr/include/c++/14/string:54,
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,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/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:6:11: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << r << g << b ;
| ^
/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:6:11: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << r << g << b ;
| ^
In file included from /usr/include/c++/14/bits/memory_resource.h:38,
from /usr/include/c++/14/string:68:
/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:6:4: note: cannot convert 'std::cin' (type 'std::istream' {aka 'std::basic_istream<char>'}) to type 'std::byte'
6 | cin << r << g << b ;
| ^~~
In file included from /usr/include/c++/14/bits/ios_base.h:46:
/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:6:11: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << r << g << b ;
| ^
/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:6:11: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << r << g << b ;
| ^
/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:6:11: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << r << g << b ;
| ^
/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:6:11: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << r << g << b ;
| ^
/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:6:11: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << r << g << b ;
| ^
/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:6:11: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << r << g << b ;
| ^
/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:6:11: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << r << g << b ;
| ^
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:6:11: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << r << g << b ;
| ^
/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:6:11: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << r << g << b ;
| ^
/usr/include/c++/14/ostream:684:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const signed char*)'
684 | operator<<(basic_ostream<char, _Traits>& __out, const signed char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:684:5: note: template argument deduction/substitution failed:
a.cc:6:11: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << r << g << b ;
| ^
/usr/include/c++/14/ostream:689:5: note: candidate: 'template<class _Traits> std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const unsigned char*)'
689 | operator<<(basic_ostream<char, _Traits>& __out, const unsigned char* __s)
| ^~~~~~~~
/usr/include/c++/14/ostream:689:5: note: template argument deduction/substitution failed:
a.cc:6:11: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << r << g << b ;
| ^
/usr/include/c++/14/ostream:810:5: note: candidate: 'template<class _Ostream, class _Tp> _Ostream&& std::operator<<(_Ostream&&, const _Tp&)'
810 | operator<<(_Ostream&& __os, const _Tp& __x)
| ^~~~~~~~
/usr/include/c++/14/ostream:810:5: note: template argument deduction/substitution failed:
/usr/include/c++/14/ostream: In substitution of 'template<class _Ostream, class _Tp> _Ostream&& std::operator<<(_Ostream&&, const _Tp&) [with _Ostream = std::basic_istream<char>&; _Tp = int]':
a.cc:6:11: required from here
6 | cin << r << g << b ;
| ^
/usr/include/c++/14/ostream:810:5: error: no type named 'type' in 'struct std::enable_if<false, void>'
810 | operator<<(_Ostream&& __os, const _Tp& __x)
| ^~~~~~~~
a.cc:15:20: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
15 | cout << "NO" < endl;
| ~~~~~~~~~~~~~^~~~~~
In file included from /usr/include/c++/14/string:48:
/usr/include/c++/14/bits/stl_iterator.h:448:5: note: candidate: 'template<class _Iterator> constexpr bool std::operator<( |
s894121056 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
main(){
int r , g, b ;
cin << r << g << b ;
int ans = (r *100 + g * 10 + b )/ 4 ;
if (ans % 4 ){
cout << "YES" << endl;
}
else
{
cout << "NO" < endl;
}
} | a.cc:4:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
4 | main(){
| ^~~~
a.cc: In function 'int main()':
a.cc:6:8: error: no match for 'operator<<' (operand types are 'std::istream' {aka 'std::basic_istream<char>'} and 'int')
6 | cin << r << g << b ;
| ~~~ ^~ ~
| | |
| | int
| std::istream {aka std::basic_istream<char>}
a.cc:6:8: note: candidate: 'operator<<(int, int)' (built-in)
6 | cin << r << g << b ;
| ~~~~^~~~
a.cc:6:8: 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:1:
/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:6:11: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << r << g << b ;
| ^
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:6:4: note: cannot convert 'std::cin' (type 'std::istream' {aka 'std::basic_istream<char>'}) to type 'std::byte'
6 | cin << r << g << b ;
| ^~~
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:6:11: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << r << g << b ;
| ^
/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:6:11: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << r << g << b ;
| ^
/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:6:11: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << r << g << b ;
| ^
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:6:11: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << r << g << b ;
| ^
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:6:11: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << r << g << b ;
| ^
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:6:11: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << r << g << b ;
| ^
/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:6:11: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << r << g << b ;
| ^
/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:6:11: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << r << g << b ;
| ^
/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:6:11: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << r << g << b ;
| ^
/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:6:11: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<char, _Traits>'
6 | cin << r << g << b ;
| ^
/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:6:11: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << r << g << b ;
| ^
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:6:11: note: 'std::istream' {aka 'std::basic_istream<char>'} is not derived from 'std::basic_ostream<_CharT, _Traits>'
6 | cin << r << g << b ;
| ^
/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:6:11: note: 'st |
s116369197 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
main{
int r , g, b ;
cin << r << g << b ;
int ans = (r *100 + g * 10 + b )/ 4 ;
if (ans % 4 ){
cout << "YES" << endl;
}
else
{
cout << "NO" < endl;
}
} | a.cc:4:1: error: 'main' does not name a type
4 | main{
| ^~~~
|
s780561002 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
int r , g, b ;
cin << r << g << b ;
int ans = (r *100 + g * 10 + b )/ 4 ;
if (ans % 4 ){
cout << "YES" << endl;
}
else
{
cout << "NO" < endl;
}
} | a.cc:5:2: error: 'cin' does not name a type
5 | cin << r << g << b ;
| ^~~
a.cc:9:2: error: expected unqualified-id before 'if'
9 | if (ans % 4 ){
| ^~
a.cc:12:9: error: expected unqualified-id before 'else'
12 | else
| ^~~~
a.cc:16:2: error: expected declaration before '}' token
16 | }
| ^
|
s569139949 | p03693 | C++ | using namespace std;
int r , g, b ;
cin << r << g << b ;
int ans == (r *100 + g * 10 + b )/ 4 ;
if (ans % 4 ){
cout << "YES" << endl;
}
else
{
cout << "NO" < endl;
}
} | a.cc:4:2: error: 'cin' does not name a type
4 | cin << r << g << b ;
| ^~~
a.cc:6:10: error: expected initializer before '==' token
6 | int ans == (r *100 + g * 10 + b )/ 4 ;
| ^~
a.cc:8:2: error: expected unqualified-id before 'if'
8 | if (ans % 4 ){
| ^~
a.cc:11:9: error: expected unqualified-id before 'else'
11 | else
| ^~~~
a.cc:15:2: error: expected declaration before '}' token
15 | }
| ^
|
s678681193 | p03693 | C++ | #include <bits/std++.h>
using namespace std;
int r , g, b ;
cin << r << g << b ;
int ans == (r *100 + g * 10 + b )/ 4 ;
if (ans % 4 ){
cout << "YES" << endl;
}
else
{
cout << "NO" < endl;
}
} | a.cc:1:10: fatal error: bits/std++.h: No such file or directory
1 | #include <bits/std++.h>
| ^~~~~~~~~~~~~~
compilation terminated.
|
s614937442 | p03693 | C++ | #include <bits/std++.h>
using namespace std;
int r , g, b ;
cin << r << g << b ;
int ans == (r *100 + g * 10 + b )/ 4 ;
if (ans % 4 ){
cout << "YES" << endl;
}
else
{
cout << "NO" < endl;
}
} | a.cc:1:10: fatal error: bits/std++.h: No such file or directory
1 | #include <bits/std++.h>
| ^~~~~~~~~~~~~~
compilation terminated.
|
s677404798 | p03693 | Java | import java.util.*;
public class Main{
public static void main(String[] args){
Scaner sc = new Scanner(System.in);
int r = sc.nextInt();
int g = sc.nextInt();
int b = sc.nextInt();
int ans = r*100 + g*10 + b;
if(ans%4 == 0){
System.out.println("YES");
}else{
System.out.println("NO");
}
}
}
| Main.java:5: error: cannot find symbol
Scaner sc = new Scanner(System.in);
^
symbol: class Scaner
location: class Main
1 error
|
s321135795 | p03693 | Java | import java.util.*;
public class Main{
public static void main(String[] args){
Scaner sc = new Scanner(System.in);
int r = sc.nextInt();
int g = sc.nextInt();
int b = sc.nextInt();
int ans = r*100 g*10 + b;
if(ans%4 == 0){
System.out.println("YES");
}else{
System.out.println("NO");
}
}
} | Main.java:9: error: ';' expected
int ans = r*100 g*10 + b;
^
Main.java:9: error: not a statement
int ans = r*100 g*10 + b;
^
2 errors
|
s539161998 | p03693 | C++ | #include<bits/stdc++.h>
using namespace std;
int main() {
int r,g,b,t;
cin >> r >> g >> b;
r=r*100;
g=g*10;
t=r+g+b;
if(t%4==0) cout << "YES"<<endl;
else cout << "NO" << endl;
return 0;
}
| a.cc:9:1: error: extended character is not valid in an identifier
9 | r=r*100;
| ^
a.cc: In function 'int main()':
a.cc:9:1: error: '\U00003000r' was not declared in this scope
9 | r=r*100;
| ^~~
|
s837586593 | p03693 | C++ | #include<bits/stdc++.h>
using namespace std;
int main() {
int r,g,b,t;
cin >> r >> g >> b;
r=r*100;
g=g*10;
t=r+g+b;
if(t%4==0) cout << "YES"<<endl;
else cout << "NO" << endl;
}
| a.cc:8:1: error: extended character is not valid in an identifier
8 | r=r*100;
| ^
a.cc: In function 'int main()':
a.cc:8:1: error: '\U00003000r' was not declared in this scope
8 | r=r*100;
| ^~~
|
s298019054 | p03693 | C++ | #include<bits/stdc++.h>
using namespace std;
int main() {
int r,g,b,t;
cin >> r >> g >> b;
r=r*100;
g=g*10;
t=r+g+b;
if(t%4==0) cout << "YES"<<endl;
else cout << "NO" << endl;
}
| a.cc:8:1: error: extended character is not valid in an identifier
8 | r=r*100;
| ^
a.cc: In function 'int main()':
a.cc:8:1: error: '\U00003000r' was not declared in this scope
8 | r=r*100;
| ^~~
|
s808613884 | p03693 | C++ | #include<bits/stdc++.h>
using namespace std;
int main() {
int r,g,b,t;
r=r*100;
g=g*10;
t=r+g+b;
if(t%4==0) cout << "YES"<<endl;
else cout << "NO" << endl;
}
| a.cc:6:1: error: extended character is not valid in an identifier
6 | r=r*100;
| ^
a.cc: In function 'int main()':
a.cc:6:1: error: '\U00003000r' was not declared in this scope
6 | r=r*100;
| ^~~
|
s866768802 | p03693 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int r, g, b;
cin >> r >> g >> b;
int c = 10*g + b;
str = re;
if(c%4 == 0){
re = 'YES';
} else {
re = 'NO';
}
cout << re << endl;
return 0;
} | a.cc:11:10: warning: multi-character character constant [-Wmultichar]
11 | re = 'YES';
| ^~~~~
a.cc:13:10: warning: multi-character character constant [-Wmultichar]
13 | re = 'NO';
| ^~~~
a.cc: In function 'int main()':
a.cc:9:3: error: 'str' was not declared in this scope; did you mean 'std'?
9 | str = re;
| ^~~
| std
a.cc:9:9: error: 're' was not declared in this scope; did you mean 'r'?
9 | str = re;
| ^~
| r
|
s362009405 | p03693 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int r, g, b;
cin >> r >> g >> b;
int c = 10*g + b;
if(c%4 == 0){
re = 'YES';
} else {
re = 'NO';
}
cout << re << endl;
return 0;
} | a.cc:10:10: warning: multi-character character constant [-Wmultichar]
10 | re = 'YES';
| ^~~~~
a.cc:12:10: warning: multi-character character constant [-Wmultichar]
12 | re = 'NO';
| ^~~~
a.cc: In function 'int main()':
a.cc:10:5: error: 're' was not declared in this scope; did you mean 'r'?
10 | re = 'YES';
| ^~
| r
a.cc:12:5: error: 're' was not declared in this scope; did you mean 'r'?
12 | re = 'NO';
| ^~
| r
a.cc:15:11: error: 're' was not declared in this scope; did you mean 'r'?
15 | cout << re << endl;
| ^~
| r
|
s500684913 | p03693 | C++ | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)n; i++)
#define repb(i, n) for (int i = (int)n; i >= 0; i--)
#define reps(i, m, n) for (int i = (int)m; i < (int)n; i++)
#define repsb(i, m, n) for (int i = (int)m; i >= (int)n; i--)
#define SORT(v, n) sort(v, v + n);
#define VSORT(v) sort(v.begin(), v.end());
#define pb(a) push_back(a)
#define INF 999999999999999999
int dy[] = {0, 0, 1, -1, 0};
int dx[] = {1, -1, 0, 0, 0};
using namespace std;
int main(int argc, char const *argv[])
{
int a, b, c;
cin >> a >> b >> c;
if ((100 * a + 10b + c) % 4 == 0)
{
cout << "YES" << endl;
}
else
{
cout << "NO" << endl;
}
return 0;
}
| a.cc: In function 'int main(int, const char**)':
a.cc:17:20: error: unable to find numeric literal operator 'operator""b'
17 | if ((100 * a + 10b + c) % 4 == 0)
| ^~~
|
s276862431 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int r,g,b;
cin >> r >> g >> b;
num = 10*g+b
if(num%4==0)cout <<"Yes";
else cout <<"No";
} | a.cc: In function 'int main()':
a.cc:7:3: error: 'num' was not declared in this scope; did you mean 'enum'?
7 | num = 10*g+b
| ^~~
| enum
a.cc:9:5: error: 'else' without a previous 'if'
9 | else cout <<"No";
| ^~~~
|
s798097295 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int N;
cin >> N;
int R;
int C[9]={};
for (int i=0;i<N;i++){
cin >> R;
C[R>=3200?8:R/400]++;
}
int ans=0;
for (int i=0;i<8;i++){
ans+=C[i]>0?1:0;
}
cout << ans << " " << ans+c[8] << endl;
}
| a.cc: In function 'int main()':
a.cc:17:29: error: 'c' was not declared in this scope
17 | cout << ans << " " << ans+c[8] << endl;
| ^
|
s959732597 | p03693 | C++ | #include <vector>
#include <iostream>
#include <iomanip>
#include <sstream>
#include <math.h>
#include <list>
using namespace std;
int sum_digit(int n) {
if (n == 0) return 0;
else return n % 10 + sum_digit(n / 10);
}
int absolute(int a) {
if (a < 0) return -a;
else return a;
}
int main()
{
int N; cin >> N;
vector<int> rate_count(9,0);
for(int i = 0; i < N; i++){
int x; cin >> x;
int rate = x / 400;
if(rate > 8) rate = 8;
rate_count.at(rate)++;
}
int min = 0 , max = 0;
for(int i = 0; i < 8 ; i++){
if(rate_count.at(i) != 0) min++;
}
int upper3200 = rate_count.at(8);
max = min;
while(upper3200 > 0 && max < 8){
max++;
upper3200--;
}
if(min == 0) min++;
cout << max(min,1) << ' ' << max << endl;
} | a.cc: In function 'int main()':
a.cc:44:14: error: 'max' cannot be used as a function
44 | cout << max(min,1) << ' ' << max << endl;
| ~~~^~~~~~~
|
s931402487 | p03693 | C++ | #include <bits/stdc++.h>
using namepace std;
int main(){
int r,g,b;
cin >>r >>g >>b;
if((g*10+b)%4==0)
cout <<"YES" <<endl;
else
cout <<"NO" <<endl;
} | a.cc:2:7: error: expected nested-name-specifier before 'namepace'
2 | using namepace std;
| ^~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
6 | cin >>r >>g >>b;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
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:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
8 | cout <<"YES" <<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:8:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
8 | cout <<"YES" <<endl;
| ^~~~
| std::endl
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:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
a.cc:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
10 | cout <<"NO" <<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:10:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
10 | cout <<"NO" <<endl;
| ^~~~
| std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
744 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~
|
s598651175 | p03693 | C++ | #include<iostream>
using namespace std;
int main(){
int r,g,b;
cin >>r>>g>>b;
ans = 100 * r + 10 * g + b;
if (ans % 4)cout<<"YES"<<endl;
else cout <<"NO"<<endl;
} | a.cc: In function 'int main()':
a.cc:7:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
7 | ans = 100 * r + 10 * g + b;
| ^~~
| abs
|
s744178527 | p03693 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int a,c,b;
cin>>a>>c>>b;
a=c*10+b
if(a%4==0){
cout<<"YES"<<endl;
}
else{
cout<<"NO"<<endl;
}
}
| a.cc: In function 'int main()':
a.cc:8:11: error: expected ';' before 'if'
8 | a=c*10+b
| ^
| ;
9 | if(a%4==0){
| ~~
a.cc:12:5: error: 'else' without a previous 'if'
12 | else{
| ^~~~
|
s253465720 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int r,g,b;
cin >> r >> g >> b;
n = 100*r + 10 * g + b;
if (n%4==0){
cout <<"YES"<<endl;
}
else {
cout <<"NO"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:6:3: error: 'n' was not declared in this scope
6 | n = 100*r + 10 * g + b;
| ^
|
s662375673 | p03693 | C++ | #include <iosteram>
using namespace std;
int main(){
int r, g, b;
cin >> r >> g >> b;
int x = r * 100 + g * 10 + b;
if (x % 4 == 0) cout << "YES" << endl;
else cout << "NO" << endl;
} | a.cc:1:10: fatal error: iosteram: No such file or directory
1 | #include <iosteram>
| ^~~~~~~~~~
compilation terminated.
|
s342221868 | p03693 | C++ | #include <iostream>
using namespace std;
int main(){
int g,b;
cin>>g>>g>>b;
if((g*10+b)%4=0) cout<<"YES"<<endl;
else cout<<"NO"<<endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:6:14: error: lvalue required as left operand of assignment
6 | if((g*10+b)%4=0) cout<<"YES"<<endl;
| ~~~~~~~~^~
|
s450616400 | p03693 | C++ | #include <iostream>
using namespace std;
int main(){
int g,b;
cin>>g>>g>>b;
if((g*10+b)%4=0) cout<<"YES"<<endl;
else cout<<"NO"<<endl
return 0;
} | a.cc: In function 'int main()':
a.cc:6:14: error: lvalue required as left operand of assignment
6 | if((g*10+b)%4=0) cout<<"YES"<<endl;
| ~~~~~~~~^~
a.cc:7:24: error: expected ';' before 'return'
7 | else cout<<"NO"<<endl
| ^
| ;
8 | return 0;
| ~~~~~~
|
s617706757 | p03693 | C++ | #include <iostream>
using namespace std;
int main()
{
int r, g, b;
cin >> r >> g >> b;
int c = (100 * r + 10 * g + b) ;
if(c % 4 == 0)
cout << "YES" << endl;
else cout << "NO" << endl;
} | a.cc:3:1: error: extended character is not valid in an identifier
3 | int main()
| ^
a.cc:3:1: error: '\U00003000int' does not name a type
3 | int main()
| ^~~~~
|
s002730424 | p03693 | C++ | #include <iostream>
using namespace std;
int main()
{
int r, g, b;
cin >> r >> g >> b;
int c = 100 * r + 10 * g + b;
if(c % 4 == 0)
cout << "YES" << endl;
else cout << "NO" << endl;
} | a.cc:3:1: error: extended character is not valid in an identifier
3 | int main()
| ^
a.cc:3:1: error: '\U00003000int' does not name a type
3 | int main()
| ^~~~~
|
s195869798 | p03693 | C++ | #include <iostream>
using namespace std;
int main()
{
int r, g, b;
cin >> r >> g >> b;
int c = 100*r + 10*g + b;
if(c % 4 == 0)
cout << "YES" << endl;
else cout << "NO" << endl;
} | a.cc:3:1: error: extended character is not valid in an identifier
3 | int main()
| ^
a.cc:3:1: error: '\U00003000int' does not name a type
3 | int main()
| ^~~~~
|
s421251262 | p03693 | C++ | #include <iostream>
using namespace std;
int main()
{
int r, g, b;
cin >> r >> g >> b;
int c = 100*r + 10*g + b;
if(c % 4 == 0)
cout << "YES" << endl;
else cout << "NO" << end;
} | a.cc:3:1: error: extended character is not valid in an identifier
3 | int main()
| ^
a.cc:3:1: error: '\U00003000int' does not name a type
3 | int main()
| ^~~~~
|
s085039055 | p03693 | Java | import java.util.*;
class Main{
public static void main(String[]args)throws IOException{
Scanner sc = new Scanner(System.in);
int r = sc.nextInt();
int g = sc.nextInt();
int b = sc.nextInt();
int sum = r*100+g*10+b;
if(sum%4==0)System.out.println("YES");
else System.out.println("NO");
}
}
| Main.java:3: error: cannot find symbol
public static void main(String[]args)throws IOException{
^
symbol: class IOException
location: class Main
1 error
|
s146416389 | p03693 | C++ | r,g,b = gets.chomp.split(" ").map(&:to_i)
if (100*r + 10*g + b) %4 == 0
puts 'YES'
else
puts 'NO'
end
| a.cc:4:8: warning: multi-character character constant [-Wmultichar]
4 | puts 'YES'
| ^~~~~
a.cc:6:8: warning: multi-character character constant [-Wmultichar]
6 | puts 'NO'
| ^~~~
a.cc:1:1: error: 'r' does not name a type
1 | r,g,b = gets.chomp.split(" ").map(&:to_i)
| ^
|
s391600738 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
cout<<((10*b+c)%4==0)?"YES":"NO")<<endl;
}
| a.cc: In function 'int main()':
a.cc:6:41: error: expected ';' before ')' token
6 | cout<<((10*b+c)%4==0)?"YES":"NO")<<endl;
| ^
| ;
|
s871722812 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
cout<<((10*b+c)%4==0)?"YES":"NO"<<endl;
} | a.cc: In function 'int main()':
a.cc:6:41: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
6 | cout<<((10*b+c)%4==0)?"YES":"NO"<<endl;
| ~~~~^~~~~~
|
s791427175 | p03693 | C++ | #include <iostream>
using namespace std;
int A, B, C;
int main() {
cin>>A>>B>>C;
if ((A*100+B*10+C)%4==0)cout<<"YES"<<endl;
else cout<<"NO"<<endl;
return;
}
| a.cc: In function 'int main()':
a.cc:8:1: error: return-statement with no value, in function returning 'int' [-fpermissive]
8 | return;
| ^~~~~~
|
s381097709 | p03693 | C++ | #include <iostream>
using namespace std;
int main(){
int r, g, b;
cin >> r >> g >> b;
cout << ((r*100 + g*10 + b % 4 == 0) ? "YES" : "NO" << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:8:55: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
8 | cout << ((r*100 + g*10 + b % 4 == 0) ? "YES" : "NO" << endl;
| ~~~~~^~~~~~~
a.cc:8:62: error: expected ')' before ';' token
8 | cout << ((r*100 + g*10 + b % 4 == 0) ? "YES" : "NO" << endl;
| ~ ^
| )
|
s569191049 | p03693 | C++ | #include<iostream>
using namespace std;
int main(){
int r,g,m; cin>>r>>g>>m;
if((g*10+m))/4==0){
cout<<"YES"<<endl;
}
else {
cout<<"NO"<<endl;}
return 0;
}
| a.cc: In function 'int main()':
a.cc:6:15: error: expected primary-expression before '/' token
6 | if((g*10+m))/4==0){
| ^
|
s036590531 | p03693 | C++ | #include<iostream>
using namespace std;
int main(){
int r,g,m; cin>>r>>g>>m;
if((g*10+m))%4==0){
cout<<"YES"<<endl;
}
else {
cout<<"NO"<<endl;}
return 0;
}
| a.cc: In function 'int main()':
a.cc:6:15: error: expected primary-expression before '%' token
6 | if((g*10+m))%4==0){
| ^
|
s338155973 | p03693 | C++ | #include<iostream>
using namespace std;
int main(){
int r,g,m;
if((g*10+m))%4==0){
cout<<"YES"<<endl;
}
else {
cout<<"NO"<<endl;}
return 0;
} | a.cc: In function 'int main()':
a.cc:6:15: error: expected primary-expression before '%' token
6 | if((g*10+m))%4==0){
| ^
|
s368304442 | p03693 | C++ | #include <iostream>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c;
if((b*10+c)%==0){
cout<<"YES"<<endl;
}
else{
cout<<"NO"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:6:18: error: expected primary-expression before '=' token
6 | if((b*10+c)%==0){
| ^
|
s815899210 | p03693 | C++ | #include <iostream>
using namespace std;
int main(){
int a,b,c;
cin>>a>>b>>c
if((b*10+c)%==0){
cout<<"YES"<<endl;
}
else{
cout<<"NO"<<endl;
}
} | a.cc: In function 'int main()':
a.cc:5:15: error: expected ';' before 'if'
5 | cin>>a>>b>>c
| ^
| ;
6 | if((b*10+c)%==0){
| ~~
a.cc:9:3: error: 'else' without a previous 'if'
9 | else{
| ^~~~
|
s536486104 | p03693 | C++ | #include <iostream>
using namespace std;
int A, B, C;
int main(){
cin >> A >> B >> C;
if((A * 100 + B * 10 + C) % 4 ==0) cout << "YES" << endl;
else cout << NO << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:17: error: 'NO' was not declared in this scope
7 | else cout << NO << endl;
| ^~
|
s264201817 | p03693 | C++ | #include <iostream>
using namespace std;
int A, B, C;
int main(){
cin >> A >> B >> C;
if((A * 100 + B * 10 + C) % 4 ==0) cout << "YES" << endl;
else cout << NO << endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:17: error: 'NO' was not declared in this scope
7 | else cout << NO << endl;
| ^~
|
s811650380 | p03693 | C++ | #include <iostream>
using namespace std;
int A,B,C;
int main{
cin >> A >> B >> C;
if((A * 100 + B * 10 + C) % 4 ==0) cout << "YES" << endl;
else cout << NO << endl;
return 0;
}
| a.cc:4:5: error: cannot declare '::main' to be a global variable
4 | int main{
| ^~~~
a.cc:5:22: error: expected '}' before ';' token
5 | cin >> A >> B >> C;
| ^
a.cc:4:9: note: to match this '{'
4 | int main{
| ^
a.cc:5:18: error: invalid user-defined conversion from 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} to 'int' [-fpermissive]
5 | cin >> A >> B >> C;
| ~~~~~~~~~~~~~~^~~~
In file included from /usr/include/c++/14/ios:46,
from /usr/include/c++/14/ostream:40,
from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/include/c++/14/bits/basic_ios.h:121:16: note: candidate is: 'std::basic_ios<_CharT, _Traits>::operator bool() const [with _CharT = char; _Traits = std::char_traits<char>]' (near match)
121 | explicit operator bool() const
| ^~~~~~~~
/usr/include/c++/14/bits/basic_ios.h:121:16: note: return type 'bool' of explicit conversion function cannot be converted to 'int' with a qualification conversion
a.cc:6:4: error: expected unqualified-id before 'if'
6 | if((A * 100 + B * 10 + C) % 4 ==0) cout << "YES" << endl;
| ^~
a.cc:7:4: error: expected unqualified-id before 'else'
7 | else cout << NO << endl;
| ^~~~
a.cc:8:4: error: expected unqualified-id before 'return'
8 | return 0;
| ^~~~~~
a.cc:9:1: error: expected declaration before '}' token
9 | }
| ^
|
s428309134 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int r, g, b, S;
cin >> r >> g >> b;
S = 100*r + 10*g + b
if ( S%4 == 0 ){
cout << "YES" << endl;
}
else {
cout << "NO" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:7:23: error: expected ';' before 'if'
7 | S = 100*r + 10*g + b
| ^
| ;
8 | if ( S%4 == 0 ){
| ~~
a.cc:11:3: error: 'else' without a previous 'if'
11 | else {
| ^~~~
|
s894535377 | p03693 | C++ | #include <iostream>
using namespace std;
int main() {
int r, g, b; cin >> r >> g >> b;
n = r * 100 + g * 10 + b;
cout << (n % 4 == 0 ? "YES" : "NO") << endl;
return 0
}
| a.cc: In function 'int main()':
a.cc:7:3: error: 'n' was not declared in this scope
7 | n = r * 100 + g * 10 + b;
| ^
a.cc:10:11: error: expected ';' before '}' token
10 | return 0
| ^
| ;
11 | }
| ~
|
s181029755 | p03693 | C++ | #include <iostream>
int main() {
int r, g, b; cin >> r >> g >> b;
n = r * 100 + g * 10 + b;
cout << (n % 4 == 0 ? "YES" : "NO") << endl;
return 0
}
| a.cc: In function 'int main()':
a.cc:4:16: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
4 | int r, g, b; cin >> r >> g >> b;
| ^~~
| 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:5:3: error: 'n' was not declared in this scope
5 | n = r * 100 + g * 10 + b;
| ^
a.cc:6:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
6 | cout << (n % 4 == 0 ? "YES" : "NO") << 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:6:42: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
6 | cout << (n % 4 == 0 ? "YES" : "NO") << 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)
| ^~~~
a.cc:8:11: error: expected ';' before '}' token
8 | return 0
| ^
| ;
9 | }
| ~
|
s085543551 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int r, g, b;
cin >> r >> g >> b;
if ((g * 10) + b) % 4 == 0) {
cout << "YES" << endl;
}
else {
cout << "NO" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:7:21: error: expected primary-expression before '%' token
7 | if ((g * 10) + b) % 4 == 0) {
| ^
|
s466668318 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int r, g, b;
vector<int> vec = {r, g, b};
cin >> r >> g >> b;
if ((vec[1] * 10) + vec[2]) % 4 == 0) {
cout << "YES" << endl;
}
else {
cout << "NO" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:8:31: error: expected primary-expression before '%' token
8 | if ((vec[1] * 10) + vec[2]) % 4 == 0) {
| ^
|
s571842159 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
vector<int> vec = {r, g, b};
cin >> r >> g >> b;
if ((vec[1] * 10) + vec[2]) % 4 == 0) {
cout << "YES" << endl;
}
else {
cout << "NO" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:5:24: error: 'r' was not declared in this scope
5 | vector<int> vec = {r, g, b};
| ^
a.cc:5:27: error: 'g' was not declared in this scope
5 | vector<int> vec = {r, g, b};
| ^
a.cc:5:30: error: 'b' was not declared in this scope
5 | vector<int> vec = {r, g, b};
| ^
a.cc:5:31: error: could not convert '{<expression error>, <expression error>, <expression error>}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
5 | vector<int> vec = {r, g, b};
| ^
| |
| <brace-enclosed initializer list>
a.cc:7:31: error: expected primary-expression before '%' token
7 | if ((vec[1] * 10) + vec[2]) % 4 == 0) {
| ^
|
s303344730 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
vector<int> vec = {r, g, b};
cin >> r >> g >> b;
if ((vec[1] * 10) + vec[2]) / 4) {
cout << "YES" << endl;
}
else {
cout << "NO" << endl;
}
}
| a.cc: In function 'int main()':
a.cc:5:24: error: 'r' was not declared in this scope
5 | vector<int> vec = {r, g, b};
| ^
a.cc:5:27: error: 'g' was not declared in this scope
5 | vector<int> vec = {r, g, b};
| ^
a.cc:5:30: error: 'b' was not declared in this scope
5 | vector<int> vec = {r, g, b};
| ^
a.cc:5:31: error: could not convert '{<expression error>, <expression error>, <expression error>}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
5 | vector<int> vec = {r, g, b};
| ^
| |
| <brace-enclosed initializer list>
a.cc:7:31: error: expected primary-expression before '/' token
7 | if ((vec[1] * 10) + vec[2]) / 4) {
| ^
|
s897037951 | p03693 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c;
cin >>a>>b>>c;
if((2*b+c)%4==0){
cout >> "YES" >> endl;
}
else{
cout >> "NO" >> endl;
}
}
| a.cc: In function 'int main()':
a.cc:8:10: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'const char [4]')
8 | cout >> "YES" >> endl;
| ~~~~ ^~ ~~~~~
| | |
| | const char [4]
| std::ostream {aka std::basic_ostream<char>}
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41,
from a.cc:1:
/usr/include/c++/14/cstddef:131:5: note: candidate: 'template<class _IntegerType> constexpr std::__byte_op_t<_IntegerType> std::operator>>(byte, _IntegerType)'
131 | operator>>(byte __b, _IntegerType __shift) noexcept
| ^~~~~~~~
/usr/include/c++/14/cstddef:131:5: note: template argument deduction/substitution failed:
a.cc:8:5: note: cannot convert 'std::cout' (type 'std::ostream' {aka 'std::basic_ostream<char>'}) to type 'std::byte'
8 | cout >> "YES" >> endl;
| ^~~~
In file included from /usr/include/c++/14/string:55,
from /usr/include/c++/14/bitset:52,
from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52:
/usr/include/c++/14/bits/basic_string.tcc:835:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, __cxx11::basic_string<_CharT, _Traits, _Allocator>&)'
835 | operator>>(basic_istream<_CharT, _Traits>& __in,
| ^~~~~~~~
/usr/include/c++/14/bits/basic_string.tcc:835:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
8 | cout >> "YES" >> endl;
| ^~~~~
/usr/include/c++/14/bitset:1597:5: note: candidate: 'template<class _CharT, class _Traits, long unsigned int _Nb> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, bitset<_Nb>&)'
1597 | operator>>(std::basic_istream<_CharT, _Traits>& __is, bitset<_Nb>& __x)
| ^~~~~~~~
/usr/include/c++/14/bitset:1597:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
8 | cout >> "YES" >> endl;
| ^~~~~
In file included from /usr/include/c++/14/istream:1109,
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/bits/istream.tcc:978:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT&)'
978 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT& __c)
| ^~~~~~~~
/usr/include/c++/14/bits/istream.tcc:978:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
8 | cout >> "YES" >> endl;
| ^~~~~
/usr/include/c++/14/istream:849:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char&)'
849 | operator>>(basic_istream<char, _Traits>& __in, unsigned char& __c)
| ^~~~~~~~
/usr/include/c++/14/istream:849:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
8 | cout >> "YES" >> endl;
| ^~~~~
/usr/include/c++/14/istream:854:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char&)'
854 | operator>>(basic_istream<char, _Traits>& __in, signed char& __c)
| ^~~~~~~~
/usr/include/c++/14/istream:854:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
8 | cout >> "YES" >> endl;
| ^~~~~
/usr/include/c++/14/istream:896:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _CharT*)'
896 | operator>>(basic_istream<_CharT, _Traits>& __in, _CharT* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:896:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
8 | cout >> "YES" >> endl;
| ^~~~~
/usr/include/c++/14/istream:939:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, unsigned char*)'
939 | operator>>(basic_istream<char, _Traits>& __in, unsigned char* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:939:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
8 | cout >> "YES" >> endl;
| ^~~~~
/usr/include/c++/14/istream:945:5: note: candidate: 'template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(basic_istream<char, _Traits>&, signed char*)'
945 | operator>>(basic_istream<char, _Traits>& __in, signed char* __s)
| ^~~~~~~~
/usr/include/c++/14/istream:945:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<char, _Traits>'
8 | cout >> "YES" >> endl;
| ^~~~~
/usr/include/c++/14/istream:1099:5: note: candidate: 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&)'
1099 | operator>>(_Istream&& __is, _Tp&& __x)
| ^~~~~~~~
/usr/include/c++/14/istream:1099:5: note: template argument deduction/substitution failed:
/usr/include/c++/14/istream: In substitution of 'template<class _Istream, class _Tp> _Istream&& std::operator>>(_Istream&&, _Tp&&) [with _Istream = std::basic_ostream<char>&; _Tp = const char (&)[4]]':
a.cc:8:13: required from here
8 | cout >> "YES" >> endl;
| ^~~~~
/usr/include/c++/14/istream:1099:5: error: no type named 'type' in 'struct std::enable_if<false, void>'
1099 | operator>>(_Istream&& __is, _Tp&& __x)
| ^~~~~~~~
/usr/include/c++/14/complex:509:5: note: candidate: 'template<class _Tp, class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, complex<_Tp>&)'
509 | operator>>(basic_istream<_CharT, _Traits>& __is, complex<_Tp>& __x)
| ^~~~~~~~
/usr/include/c++/14/complex:509:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
8 | cout >> "YES" >> endl;
| ^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:143:
/usr/include/c++/14/iomanip:76:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Resetiosflags)'
76 | operator>>(basic_istream<_CharT, _Traits>& __is, _Resetiosflags __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:76:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
8 | cout >> "YES" >> endl;
| ^~~~~
/usr/include/c++/14/iomanip:106:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setiosflags)'
106 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setiosflags __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:106:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
8 | cout >> "YES" >> endl;
| ^~~~~
/usr/include/c++/14/iomanip:137:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setbase)'
137 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setbase __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:137:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
8 | cout >> "YES" >> endl;
| ^~~~~
/usr/include/c++/14/iomanip:177:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setfill<_CharT>)'
177 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setfill<_CharT> __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:177:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
8 | cout >> "YES" >> endl;
| ^~~~~
/usr/include/c++/14/iomanip:207:5: note: candidate: 'template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(basic_istream<_CharT, _Traits>&, _Setprecision)'
207 | operator>>(basic_istream<_CharT, _Traits>& __is, _Setprecision __f)
| ^~~~~~~~
/usr/include/c++/14/iomanip:207:5: note: template argument deduction/substitution failed:
a.cc:8:13: note: 'std::ostream' {aka 'std::basic_ostream<char>'} is not derived from 'std::basic_istream<_CharT, _Traits>'
8 | |
s471899439 | p03693 | Java |
public class Main {
private static Scanner sc;
public static void main(String[] args) {
sc = new Scanner(System.in);
StringBuilder sb = new StringBuilder();
sb.append(sc.next()).append(sc.next()).append(sc.next());
int a = Integer.valueOf(sb.toString());
if (a % 4 == 0) {
System.out.print("YES");
} else {
System.out.print("NO");
}
}
}
| Main.java:4: error: cannot find symbol
private static Scanner sc;
^
symbol: class Scanner
location: class Main
Main.java:8: error: cannot find symbol
sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
2 errors
|
s011065520 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
int main() {
int r, g, b;
cin >> r >> g >> b;
num = 100*r + 10*g + b;
if (num % 4 == 0) {
cout << "YES" << endl;
} else {
cout << "NO" << endl;
}
return 0;
} | a.cc: In function 'int main()':
a.cc:7:5: error: 'num' was not declared in this scope; did you mean 'enum'?
7 | num = 100*r + 10*g + b;
| ^~~
| enum
|
s072397915 | p03693 | C++ | #include <bits/stdc++.h>
using namespace std;
int main () {
int r, g, b;
cin >> r >> g >> b;
if ( rgb%4 == 0) {
cout << "YES" << endl;
}
else {
cout "NO" << endl;
}
} | a.cc: In function 'int main()':
a.cc:8:8: error: 'rgb' was not declared in this scope
8 | if ( rgb%4 == 0) {
| ^~~
a.cc:12:9: error: expected ';' before string constant
12 | cout "NO" << endl;
| ^~~~~
| ;
|
s660328811 | p03693 | C++ | #include <iostream>
using namespace std;
int r, g, b;
int main() {
cin >> r >> g >> b;
if ((a * 100 + b * 10 + c) % 4 == 0)
cout << "YES" << endl;
else
cout << "NO" << endl;
} | a.cc: In function 'int main()':
a.cc:8:8: error: 'a' was not declared in this scope
8 | if ((a * 100 + b * 10 + c) % 4 == 0)
| ^
a.cc:8:27: error: 'c' was not declared in this scope
8 | if ((a * 100 + b * 10 + c) % 4 == 0)
| ^
|
s277035133 | p03693 | Java | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
String a=sc.nextLine();
a=a.replace(" ","");
int po=Integer.parseint(a);
System.out.println((po%4==0)?"YES":"NO");
}
}
| Main.java:9: error: cannot find symbol
int po=Integer.parseint(a);
^
symbol: method parseint(String)
location: class Integer
1 error
|
s739373727 | p03693 | C | #include <stdio.h>
int main(void){
int a,b,c,d;
scanf("%d %d %d ",&a,&b,&c);
d=100*a+10*b+c
if(d%4==0){
printf("YES");}
else{printf("NO");}
return 0;
} | main.c: In function 'main':
main.c:5:17: error: expected ';' before 'if'
5 | d=100*a+10*b+c
| ^
| ;
6 | if(d%4==0){
| ~~
|
s623039358 | p03693 | C | #include <stdio.h>
int main(){
int r,g,b;
if (10*g+b)%4==0{
printf("YES");
}else{
printf("NO");
}
end | main.c: In function 'main':
main.c:4:16: error: expected expression before '%' token
4 | if (10*g+b)%4==0{
| ^
main.c:9:1: error: expected declaration or statement at end of input
9 | end
| ^~~
|
s482763588 | p03693 | C++ | #include <stdio.h>
int main(){
int r,g,b;
scanf('r','g','b');
if (g*10+b)%4 == 0{
printf("YES");
}else{
plitnf("NO")
}
}
| a.cc: In function 'int main()':
a.cc:4:7: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
4 | scanf('r','g','b');
| ^~~
| |
| char
In file included from a.cc:1:
/usr/include/stdio.h:428:42: note: initializing argument 1 of 'int scanf(const char*, ...)'
428 | extern int scanf (const char *__restrict __format, ...) __wur;
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:5:12: error: expected primary-expression before '%' token
5 | if (g*10+b)%4 == 0{
| ^
a.cc:8:1: error: 'plitnf' was not declared in this scope; did you mean 'printf'?
8 | plitnf("NO")
| ^~~~~~
| printf
|
s445622442 | p03693 | C++ | #include <stdio.h>
#include <iostream>
#include <string>
#include <stdlib.h>
using namespace std;
int main(void)
{
char r[10];
char g[10];
char b[10];
char s[20];
cin >> r >> g >> b;
sprintf_s (s,"%s%s%s",r,g,b);
int i = atoi(s);
if (i % 4 == 0)
{
cout << "YES";
}
else
{
cout<<"NO";
}
return 0;
} | a.cc: In function 'int main()':
a.cc:13:9: error: 'sprintf_s' was not declared in this scope; did you mean 'sprintf'?
13 | sprintf_s (s,"%s%s%s",r,g,b);
| ^~~~~~~~~
| sprintf
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.