submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s316092419 | p00323 | C++ | #include <iostream>
#include <cmath>
#include <vector>
using namespace std;
int main() {
int n, a, b;
vector<int> v, t;
cin >> n;
for (int i = 0; i < n; ++i) {
cin >> a >> b;
v.push_back(a + b);
}
sort(v.begin(), v.end());
while (1) {
int cnt = 1;
... | a.cc: In function 'int main()':
a.cc:17:5: error: 'sort' was not declared in this scope; did you mean 'sqrt'?
17 | sort(v.begin(), v.end());
| ^~~~
| sqrt
|
s221364530 | p00324 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
????long long n,i,j,c,k,m,l;
????cin>>n;
????long long a[n];
????for(i=l=0;i<n;i++)cin>>a[i];
????for(i=0;i<n;i++){
????????for(j=i,c=m=k=0;j<n;j++){
????????????c+=a[j];
????????????if(c==0)k=j-i;
????????????m=max(k,m);
????????}
????????l=max(m,l);
????}
????... | a.cc: In function 'int main()':
a.cc:4:1: error: expected primary-expression before '?' token
4 | ????long long n,i,j,c,k,m,l;
| ^
a.cc:4:2: error: expected primary-expression before '?' token
4 | ????long long n,i,j,c,k,m,l;
| ^
a.cc:4:3: error: expected primary-expression before '?' token
4 |... |
s007710814 | p00324 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
long long n,i,j,c,k,m,l;
cin>>n;
long long a[n];
for(i=l=0;i<n;i++)cin>>a[i];
for(i=0;i<n;i++){
for(j=i,c=m=k=0;j<n;j++){
c+=a[j];
if(c==0)k=j-i+1;
m=max(k,m);
}
l=max(m,l);
}
for(i=n-1;i>=0;i--){
for(j=i,c=m=k=0;j... | a.cc: In function 'int main()':
a.cc:24:3: error: 'else' without a previous 'if'
24 | else cout<<l<<endl;
| ^~~~
|
s892265838 | p00324 | C++ | #include <map>
#include <algorithm>
#include <cstdio>
using namespace std;
int main(){
map<long long,int>m={0,-1};
long long s=0,x;
int N;
scanf("%d",&N);
for(int i=0;i<N;i++){
scanf("%lld",&x);
s+=x;
if(m.find(s)==m.end())m[s]=i;
r=max(r,i-m[s]);
}
printf("%lld\n",r);
} | a.cc: In function 'int main()':
a.cc:15:17: error: 'r' was not declared in this scope
15 | r=max(r,i-m[s]);
| ^
a.cc:17:25: error: 'r' was not declared in this scope
17 | printf("%lld\n",r);
| ^
In file included from /usr/include/c++/14/m... |
s544591260 | p00324 | C++ | #include <map>
#include <algorithm>
#include <cstdio>
using namespace std;
int main(){
map<long long,int>m={0,-1};
long long s=0,x;
int N;
scanf("%d",&N);
for(int i=0;i<N;i++){
scanf("%lld",&x);
s+=x;
if(m.find(s)==m.end())m[s]=i;
r=max(r,i-m[s]);
}
printf("%lld\n",r);
} | a.cc: In function 'int main()':
a.cc:15:17: error: 'r' was not declared in this scope
15 | r=max(r,i-m[s]);
| ^
a.cc:17:25: error: 'r' was not declared in this scope
17 | printf("%lld\n",r);
| ^
In file included from /usr/include/c++/14/m... |
s862654799 | p00324 | C++ | #include <map>
#include <algorithm>
#include <cstdio>
using namespace std;
int main(){
map<long long,int>m={0,-1};
long long s=0,x;
int N,r=0;
scanf("%d",&N);
for(int i=0;i<N;i++){
scanf("%lld",&x);
s+=x;
if(m.find(s)==m.end())m[s]=i;
r=max(r,i-m[s]);
}
printf("%d\n",r);
} | In file included from /usr/include/c++/14/map:63,
from a.cc:1:
/usr/include/c++/14/bits/stl_map.h: In instantiation of 'std::map<_Key, _Tp, _Compare, _Alloc>::map(_InputIterator, _InputIterator) [with _InputIterator = int; _Key = long long int; _Tp = int; _Compare = std::less<long long int>; _Alloc = s... |
s139451462 | p00324 | C++ | #include <iostream>
#include <algorithm>
#include <array>
#include <cstdint>
#include <functional>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stdlib.h>
#include <string>
#include <utility>
#include <vector>
#define INF 1000000000
#define MOD 1000000007
#define rep(i,a,b) for(uint32 i = ... | a.cc: In function 'int main()':
a.cc:20:15: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
20 | #define scanf scanf_s
| ^~~~~~~
a.cc:125:9: note: in expansion of macro 'scanf'
125 | scanf("%u", &n);
| ^~~~~
|
s207202442 | p00324 | C++ | #include <iostream>
#include <algorithm>
#include <array>
#include <cstdint>
#include <functional>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stdlib.h>
#include <string>
#include <utility>
#include <vector>
#define NOMINMAX
#include <windows.h>
#define INF 1000000000
#define MOD 1000000... | a.cc:15:10: fatal error: windows.h: No such file or directory
15 | #include <windows.h>
| ^~~~~~~~~~~
compilation terminated.
|
s738775168 | p00324 | C++ | #include <iostream>
#include <algorithm>
#include <array>
#include <cstdint>
#include <functional>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <stdlib.h>
#include <string>
#include <utility>
#include <vector>
#define NOMINMAX
#include <Windows.h>
#define INF 1000000000
#define MOD 1000000... | a.cc:15:10: fatal error: Windows.h: No such file or directory
15 | #include <Windows.h>
| ^~~~~~~~~~~
compilation terminated.
|
s231000268 | p00325 | C++ | #include <stdio.h>
#include <cmath>
#include <algorithm>
#include <cfloat>
#include <stack>
#include <queue>
#include <vector>
#include <string>
#include <iostream>
#include <set>
#include <map>
typedef long long int ll;
typedef unsigned long long int ull;
#define BIG_NUM 2000000000
#define MOD 1000000007
#define EPS 0... | a.cc: In function 'int main()':
a.cc:202:33: error: lvalue required as left operand of assignment
202 | HALT = true;
| ^~~~
|
s778624970 | p00325 | C++ | #include <bits/stdc++.h>
using namespace std;
vector<vector<string> > orders;
vector<int> lists;
map<string,int> m;
map<string,int> bif;
bool is_inf = false;
std::vector<std::string> split(const std::string &str, char sep){
std::vector<std::string> v;
std::stringstream ss(str);
std::string buffer;
wh... | a.cc: In function 'bool ADD(std::vector<std::__cxx11::basic_string<char> >, bool)':
a.cc:27:15: error: no matching function for call to 'isdigit(__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type&)'
27 | if(isdigit(vec[3])){
| ... |
s314235513 | p00327 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
#define pb push_back
#define rep(i, a, n) for(int i = (a); i < (n); i++)
#define dep(i, a, n) for(int i = (a); i >= (n); i--)
#define mod 1e9+7
__attribute__((constructor))
void initial() {
cin.tie(0);
ios::sync_with_st... | a.cc: In function 'int main()':
a.cc:35:11: error: invalid use of non-static member function 'void std::stack<_Tp, _Sequence>::pop() [with _Tp = int; _Sequence = std::deque<int, std::allocator<int> >]'
35 | s.pop, r = false, i--;
| ~~^~~
In file included from /usr/include/c++/14/stack:63,
... |
s162087620 | p00328 | C++ | #include<vector>
#include<unordered_map>
#include<algorithm>
class Compression {
public:
Compression(const std::vector<int>& list) : value_(list) {
std::sort(begin(value_), end(value_));
value_.erase(std::unique(begin(value_), end(value_)), end(value_));
for(int i = 0; i < value_.size(); ++i) index_[valu... | a.cc: In instantiation of 'main()::<lambda(auto:28&, auto:29, auto:30)> [with auto:28 = std::set<std::pair<int, bool> >; auto:29 = int; auto:30 = int]':
a.cc:83:53: required from here
83 | if(sh.find(px[i], px[i], py[i], qy[i]) || dual(pv[px[i]], py[i], qy[i])) {
| ... |
s884076211 | p00329 | C++ | #include "bits/stdc++.h"
using namespace std;
typedef vector<short> Weight;
struct Edge {
int src, dest;
int cap, rev;
Weight weight;
bool operator < (const Edge &rhs) const {
for (int i = 0; i < weight.size(); ++i) {
if (weight[i] > rhs.weight[i])return true;
else if (weight[i] < rhs.weight[i])return fals... | a.cc: In function 'Weight min_cost_flow(Graph&, int, int, int)':
a.cc:85:43: error: could not convert 'std::vector<int>(0, 0, std::allocator<int>())' from 'vector<int>' to 'vector<short int>'
85 | if (dist[t] == INF)return vector<int>(0, 0);
| ^~~~~~~~~... |
s306216090 | p00330 | Java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.UncheckedIOException;
import java.util.StringTokenizer;
public class D58 {
public static void main(String[] args) {
SC sc=new SC(System.in);
int a=sc.nextInt();
pl(a*32);
}
s... | Main.java:8: error: class D58 is public, should be declared in a file named D58.java
public class D58 {
^
1 error
|
s272337773 | p00330 | Java | import java.*;
class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int W=sc.nextInt();
System.out.println(W*4);
}
} | Main.java:1: error: package java does not exist
import java.*;
^
Main.java:5: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner
location: class Main
Main.java:5: error: cannot find symbol
Scanner sc = new Scanner(System.in);
^
symbol: class Scanner... |
s926823771 | p00330 | Java | \import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner in=new Scanner(System.in);
System.out.println(32*in.nextInt());
}
}
| Main.java:1: error: illegal character: '\'
\import java.util.*;
^
Main.java:1: error: class, interface, enum, or record expected
\import java.util.*;
^
2 errors
|
s677193058 | p00330 | Java | public class ArithInt {
public static void main(String [] args) {
Scanner stdIn = new Scanner(System.in);
int x = stdIn.nextInt();
system.out.println(x*32);
}
}
| Main.java:1: error: class ArithInt is public, should be declared in a file named ArithInt.java
public class ArithInt {
^
Main.java:4: error: cannot find symbol
Scanner stdIn = new Scanner(System.in);
^
symbol: class Scanner
location: class ArithInt
Main.java:4: error: cannot find symbol
Scanner stdIn... |
s913106976 | p00330 | Java | public class ArithInt {
public static void main(String [] args) {
Scanner stdIn = new Scanner(System.in);
int x = stdIn.nextInt();
system.out.println(+ x*32);
}
}
| Main.java:1: error: class ArithInt is public, should be declared in a file named ArithInt.java
public class ArithInt {
^
Main.java:4: error: cannot find symbol
Scanner stdIn = new Scanner(System.in);
^
symbol: class Scanner
location: class ArithInt
Main.java:4: error: cannot find symbol
Scanner stdIn... |
s306526583 | p00330 | Java | public class ArithInt {
public static void main(String [] args) {
Scanner stdIn = new Scanner(System.in);
int x = stdIn.nextInt();
system.out.println(+ (x*32));
}
}
| Main.java:1: error: class ArithInt is public, should be declared in a file named ArithInt.java
public class ArithInt {
^
Main.java:4: error: cannot find symbol
Scanner stdIn = new Scanner(System.in);
^
symbol: class Scanner
location: class ArithInt
Main.java:4: error: cannot find symbol
Scanner stdIn... |
s018343395 | p00330 | Java | public class ArithInt {
public static void main(String [] args) {
Scanner stdIn = new Scanner(System.in);
int x = stdIn.nextInt();
System.out.println(x*32);
}
}
| Main.java:1: error: class ArithInt is public, should be declared in a file named ArithInt.java
public class ArithInt {
^
Main.java:4: error: cannot find symbol
Scanner stdIn = new Scanner(System.in);
^
symbol: class Scanner
location: class ArithInt
Main.java:4: error: cannot find symbol
Scanner stdIn... |
s248562268 | p00330 | Java | import java.util.Scanner;
public class ArithInt {
public static void main(String [] args) {
Scanner stdIn = new Scanner(System.in);
int x = stdIn.nextInt();
System.out.println(x*32);
}
}
| Main.java:3: error: class ArithInt is public, should be declared in a file named ArithInt.java
public class ArithInt {
^
1 error
|
s258545403 | p00330 | Java | import java.util.Scanner;
public class ArithInt {
public static void main(String [] args) {
Scanner stdIn = new Scanner(System.in);
int x = stdIn.nextInt();
System.out.println(x*32);
}
}
| Main.java:3: error: class ArithInt is public, should be declared in a file named ArithInt.java
public class ArithInt {
^
1 error
|
s283079011 | p00330 | Java | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner stdIn = new Scanner(System.in);
int a = stdIn.nextInt();
int x = stdIn * 32;
System.out.println(x);
}
}
| Main.java:11: error: bad operand types for binary operator '*'
int x = stdIn * 32;
^
first type: Scanner
second type: int
1 error
|
s605847496 | p00330 | C | #include <stdio.h>
int main(void)
{
int W;
scanf("%d",&W);
printf("%d\n",&W*32);
return 0;
} | main.c: In function 'main':
main.c:6:25: error: invalid operands to binary * (have 'int *' and 'int')
6 | printf("%d\n",&W*32);
| ~~^
| |
| int *
|
s316673227 | p00330 | C | #include<algorithm>
#include <iostream>
#include <math.h>
#include <cstdio>
#include <string.h>
using namespace std;
int main(void){
int w;
cin>>w;
cout<<w*32<<endl;
return 0;
}
| main.c:1:9: fatal error: algorithm: No such file or directory
1 | #include<algorithm>
| ^~~~~~~~~~~
compilation terminated.
|
s118071887 | p00330 | C++ | #include<iostream>
using namespace std;
int main(){
int W; cin >> W; cout << W*32 << endl;
return 0
}
| a.cc: In function 'int main()':
a.cc:6:11: error: expected ';' before '}' token
6 | return 0
| ^
| ;
7 | }
| ~
|
s812839917 | p00330 | C++ | #include<iostream>
using namespace std;
int main(){
int N;
cin>>N;
cout<<32*N<<end;
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 '<unresolved overloaded function type>')
7 | cout<<32*N<<end;
| ~~~~~~~~~~^~~~~
In file included from /usr/include/c++/14/iostream:41,
from a.cc:1:
/usr/includ... |
s748389711 | p00330 | C++ | #include <iostream>
using namespace std;
int main(){
int w;
cout<<w*4<<endl:
}
| a.cc: In function 'int main()':
a.cc:5:16: error: expected ';' before ':' token
5 | cout<<w*4<<endl:
| ^
| ;
|
s519618852 | p00330 | C++ | #include <iostream>
using namespace std;
int main(){
int w;
cin>>w
cout<<w*4<<endl:
}
| a.cc: In function 'int main()':
a.cc:5:7: error: expected ';' before 'cout'
5 | cin>>w
| ^
| ;
6 | cout<<w*4<<endl:
| ~~~~
|
s625085710 | p00330 | C++ | #include <iostream>
using namespace std;
int main(){
int w;
cin>>w:
cout<<w*4<<endl:
}
| a.cc: In function 'int main()':
a.cc:5:7: error: found ':' in nested-name-specifier, expected '::'
5 | cin>>w:
| ^
| ::
a.cc:5:6: error: 'w' is not a class, namespace, or enumeration
5 | cin>>w:
| ^
|
s860147605 | p00330 | C++ | #include<bits/stdc++>
using namespace std;
int main(){
int w;
cin >> w;
cout << w*4;
return 0;
}
| a.cc:1:9: fatal error: bits/stdc++: No such file or directory
1 | #include<bits/stdc++>
| ^~~~~~~~~~~~~
compilation terminated.
|
s343040603 | p00330 | C++ | #include <bits/stdc++.h>
using space std;
int main(){
int W;
cin>>W;
int x = W / 32;
cout<<x<<endl;
return 0;
}
| a.cc:3:7: error: expected nested-name-specifier before 'space'
3 | using space std;
| ^~~~~
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
7 | cin>>W;
| ^~~
| std::cin
In file included from /usr/include/x86_64-l... |
s809846578 | p00330 | C++ | #include <bit/stdc++.h>
using namespace std;
int main(){
int W;
cin>>W;
int x = W * 32;
cout<<x<<endl;
return 0;
}
| a.cc:1:10: fatal error: bit/stdc++.h: No such file or directory
1 | #include <bit/stdc++.h>
| ^~~~~~~~~~~~~~
compilation terminated.
|
s560423967 | p00330 | C++ | #include <bit/stdc++.h>
using namespace std;
int main(){
int W;
cin>>W;
cout<<x = W * 32<<endl;
return 0;
}
| a.cc:1:10: fatal error: bit/stdc++.h: No such file or directory
1 | #include <bit/stdc++.h>
| ^~~~~~~~~~~~~~
compilation terminated.
|
s906554397 | p00330 | C++ | #include <bit/stdc++.h>
using namespace std;
int main(){
int W;
cin>>W;
cout<<W * 32<<endl;
return 0;
}
| a.cc:1:10: fatal error: bit/stdc++.h: No such file or directory
1 | #include <bit/stdc++.h>
| ^~~~~~~~~~~~~~
compilation terminated.
|
s989067119 | p00330 | C++ | #include <bit/stdc++.h>
using namespace std;
int main(){
int W;
cin>>W;
cout<<W * 32<<endl;
return 0;
}
| a.cc:1:10: fatal error: bit/stdc++.h: No such file or directory
1 | #include <bit/stdc++.h>
| ^~~~~~~~~~~~~~
compilation terminated.
|
s119070354 | p00330 | C++ | #include <bits/stdc++.h>
using nameplae std;
int main(){
int W;
cin>>W;
cout<<W*32<<endl:
return 0;
}
| a.cc:2:7: error: expected nested-name-specifier before 'nameplae'
2 | using nameplae 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>>W;
| ^~~
| std::cin
In file included from /usr/include/x86_6... |
s253280777 | p00330 | C++ | #include <bits/stdc++.h>
using nameplae std;
int main(){
int W;
cin>>W*32;
return 0;
}
| a.cc:2:7: error: expected nested-name-specifier before 'nameplae'
2 | using nameplae 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>>W*32;
| ^~~
| std::cin
In file included from /usr/include/x8... |
s851394972 | p00330 | C++ | #include <bits/stdc++.h>
using nameplae std;
int main(){
int W;
cin>>W*32;
return 0;
}
| a.cc:2:7: error: expected nested-name-specifier before 'nameplae'
2 | using nameplae 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>>W*32;
| ^~~
| std::cin
In file included from /usr/include/x8... |
s369390651 | p00330 | C++ | #include <bits/stdc++.h>
using nameplace std;
int main(){
int W;
cin>>W;
cout<<W*32<<endl;
return 0;
}
| a.cc:2:7: error: expected nested-name-specifier before 'nameplace'
2 | using nameplace 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>>W;
| ^~~
| std::cin
In file included from /usr/include/x8... |
s490833520 | p00330 | C++ | #include <bits/stdc++.h>
using namespase std;
int main(){
int W;
cin>> W;
cout<< W*32 <<endl;
return 0
}
| a.cc:2:7: error: expected nested-name-specifier before 'namespase'
2 | using namespase std;
| ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
7 | cin>> W;
| ^~~
| std::cin
In file included from /usr/include/x... |
s701248954 | p00330 | C++ | #include <bits/stdc++.h>
using namespase std;
int main(){
int W;
cin>>W;
cout<<W*32<<endl;
return 0
}
| a.cc:2:7: error: expected nested-name-specifier before 'namespase'
2 | using namespase 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>>W;
| ^~~
| std::cin
In file included from /usr/include/x8... |
s391429045 | p00330 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int W;
cin>>W;
cout<<W*32<<endl;
return 0
}
| a.cc: In function 'int main()':
a.cc:8:11: error: expected ';' before '}' token
8 | return 0
| ^
| ;
9 | }
| ~
|
s403556123 | p00330 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int W;
cin>>W;
cout<<W*32<<endl;
return 0
}
| a.cc: In function 'int main()':
a.cc:8:11: error: expected ';' before '}' token
8 | return 0
| ^
| ;
9 | }
| ~
|
s814162296 | p00330 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int W;
cin>>W;
cout<<W*32<<endl;
return 0
}
| a.cc: In function 'int main()':
a.cc:8:11: error: expected ';' before '}' token
8 | return 0
| ^
| ;
9 | }
| ~
|
s408551516 | p00330 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int H;
if(-i000<=H&&H<0){
}else if(H=0){
}else if(0<H&&H<=1000){
}else
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:7: error: 'i000' was not declared in this scope
7 | if(-i000<=H&&H<0){
| ^~~~
|
s288048590 | p00330 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int H;
if(-i000<=H&&H<0){
}else if(H=0){
}else if(0<H&&H<=1000){
}else
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:7: error: 'i000' was not declared in this scope
7 | if(-i000<=H&&H<0){
| ^~~~
|
s127910184 | p00330 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int H;
if(-i000<=H&&H<0){
}else if(H=0){
}else if(0<H&&H<=1000){
}else
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:7: error: 'i000' was not declared in this scope
7 | if(-i000<=H&&H<0){
| ^~~~
|
s289245993 | p00330 | C++ | #incluse <bits/stdc++.h>
using namespace std;
int main(){
int W;
cin>>W;
cout<<32*W<<endl;
return 0;
}
| a.cc:1:2: error: invalid preprocessing directive #incluse; did you mean #include?
1 | #incluse <bits/stdc++.h>
| ^~~~~~~
| include
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
6 | cin>>W;
| ^~~
a.cc:1:1: note: 'std::cin' is defined in header '... |
s176381392 | p00330 | C++ | #incluse <bits/stdc++.h>
using namespace std;
int main(){
int W;
cin>>W;
cout<<32*W<<endl;
return 0;
}
| a.cc:1:2: error: invalid preprocessing directive #incluse; did you mean #include?
1 | #incluse <bits/stdc++.h>
| ^~~~~~~
| include
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
6 | cin>>W;
| ^~~
a.cc:1:1: note: 'std::cin' is defined in header '... |
s285236480 | p00330 | C++ | #include <iostream>
int main() {
int n;
std::cin >> n;
std::out << n * 32 << std::endl;
} | a.cc: In function 'int main()':
a.cc:6:8: error: 'out' is not a member of 'std'; did you mean 'oct'?
6 | std::out << n * 32 << std::endl;
| ^~~
| oct
|
s879654823 | p00330 | C++ | print(input()*32) | a.cc:1:6: error: expected constructor, destructor, or type conversion before '(' token
1 | print(input()*32)
| ^
|
s220595849 | p00330 | C++ | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
#define pb push_back
#define rep(i, a, n) for(int i = (a); i < (n); i++)
#define dep(i, a, n) for(int i = (a); i >= (n); i--)
#define mod 1e9+7
__attribute__((constructor))
void initial() {
cin.tie(0);
ios::sync_with_st... | a.cc: In function 'bool isPrime(int)':
a.cc:27:20: error: 'num' was not declared in this scope; did you mean 'enum'?
27 | double sq = sqrt(num);
| ^~~
| enum
|
s602803232 | p00330 | C++ | int main() {
int w;
cin >> w;
cout << w * 32 << endl;
return 0;
} | a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
5 | cin >> w;
| ^~~
a.cc:7:9: error: 'cout' was not declared in this scope
7 | cout << w * 32 << endl;
| ^~~~
a.cc:7:27: error: 'endl' was not declared in this scope
7 | ... |
s685942343 | p00330 | C++ | import Control.Monad
main = readLn >>= print . (*32)
| a.cc:1:1: error: 'import' does not name a type
1 | import Control.Monad
| ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
|
s119571982 | p00330 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int a,;
cin>>a;
cout<<a*32<<endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:4:15: error: expected unqualified-id before ';' token
4 | int a,;
| ^
|
s122574018 | p00330 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int W;
cin>>W;
cout<<W * 32<endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:9:21: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
9 | cout<<W * 32<endl;
| ~~~~~~~~~~~~^~~~~
In file included from /usr/include/c++/14/regex:68,
from /usr/includ... |
s108468570 | p00330 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int H, R;
cin>>H>>R;
if(H - R <= 0) cot<<"0"<endl;
if(H < 0) cot<<"-1"<endl;
if(H > 0) cot<<"1"<endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:24: error: 'cot' was not declared in this scope; did you mean 'cos'?
8 | if(H - R <= 0) cot<<"0"<endl;
| ^~~
| cos
a.cc:9:19: error: 'cot' was not declared in this scope; did you mean 'cos'?
9 | if(H... |
s486818602 | p00330 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int H, R;
cin>>H>>R;
if(H - R <= 0) cout<<"0"<endl;
if(H < 0) cout<<"-1"<endl;
if(H > 0) cout<<"1"<endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:8:33: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>')
8 | if(H - R <= 0) cout<<"0"<endl;
| ~~~~~~~~~^~~~~
In file included from /usr/include/c++/14/regex:68,
... |
s961861092 | p00330 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int x;
cin>>x;
cout<<32*x<<endl;
return0;
}
| a.cc: In function 'int main()':
a.cc:8:1: error: 'return0' was not declared in this scope
8 | return0;
| ^~~~~~~
|
s468331066 | p00330 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int h,r;
cin>>h>>r;
if(h+r>=0){
cout<<1<<endl;
}
else if(h+r=0){
cout<<0<<endl;
}
else(h+r<=0){
cout<<-1<<endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:10:14: error: lvalue required as left operand of assignment
10 | else if(h+r=0){
| ~^~
a.cc:13:17: error: expected ';' before '{' token
13 | else(h+r<=0){
| ^
| ;
|
s595864676 | p00330 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int h,r;
cin>>h>>r;
if(h+r>0){
cout<<1<<endl;
}
else if(h+r=0){
cout<<0<<endl;
}
else(h+r<0){
cout<<-1<<endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:10:14: error: lvalue required as left operand of assignment
10 | else if(h+r=0){
| ~^~
a.cc:13:16: error: expected ';' before '{' token
13 | else(h+r<0){
| ^
| ;
|
s555856521 | p00330 | C++ | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s895432997 | p00330 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int W;
cin>>W;
cout<<W*32<<endl;
return 0
}
| a.cc: In function 'int main()':
a.cc:11:13: error: expected ';' before '}' token
11 | return 0
| ^
| ;
12 | }
| ~
|
s605137429 | p00330 | C++ | int main(){
int W;
cin>>W;
cout<<W*32<<endl;
return 0;
}
| a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope
5 | cin>>W;
| ^~~
a.cc:7:1: error: 'cout' was not declared in this scope
7 | cout<<W*32<<endl;
| ^~~~
a.cc:7:13: error: 'endl' was not declared in this scope
7 | cout<<W*32<<endl;
| ^~~~
|
s683223551 | p00330 | C++ | #include<bits/stdc++.h>
using namespace std;
#define all(vec) vec.begin(),vec.end()
typedef long long int ll;
typedef pair<ll,ll> P;
const ll MOD=1000000007;
const ll INF=1000000010;
const ll LINF=4000000000000000010LL;
const int MAX=310;
const double EPS=1e-9;
int dx[4]={0,1,0,-1};
int dy[4]={1,0,-1,0};
int main(){
i... | a.cc:14:1: error: extended character is not valid in an identifier
14 | int w;cin>>w;
| ^
a.cc:15:1: error: extended character is not valid in an identifier
15 | cout<<w*32<<endl;
| ^
a.cc: In function 'int main()':
a.cc:14:1: error: '\U00003000int' was not declared in this scope
14 | int w;... |
s514068359 | p00330 | C++ | #include<bits/stdc++.h>
using namespace std;
#define all(vec) vec.begin(),vec.end()
typedef long long int ll;
typedef pair<ll,ll> P;
const ll MOD=1000000007;
const ll INF=1000000010;
const ll LINF=4000000000000000010LL;
const int MAX=310;
const double EPS=1e-9;
int dx[4]={0,1,0,-1};
int dy[4]={1,0,-1,0};
int main(){
i... | a.cc:14:1: error: extended character is not valid in an identifier
14 | int w;cin>>w;
| ^
a.cc: In function 'int main()':
a.cc:14:1: error: '\U00003000int' was not declared in this scope
14 | int w;cin>>w;
| ^~~~~
a.cc:14:14: error: 'w' was not declared in this scope
14 | int w;cin>>w;
|... |
s192803737 | p00330 | C++ | #include<bits/stdc++.h>
using name std;
int main(){
int a;
cin>>a;
cout<<a*32<<endl;
return 0;
}
| a.cc:2:7: error: expected nested-name-specifier before 'name'
2 | using name std;
| ^~~~
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
5 | cin>>a;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linu... |
s396666222 | p00331 | Java | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int h = sc.nextInt();
int r = sc.nextInt();
if (h + r > 0)
System.out.println(1);
if (h + r = 0)
System.out.println(0);
if (h + r < 0)
System.out.println(-1);
}
}... | Main.java:10: error: unexpected type
if (h + r = 0)
^
required: variable
found: value
1 error
|
s629130698 | p00331 | C | #include <stdio.h>
int main() {
int h, r;
scanf("%d %d", &h, &r);
if ( h+r > 0 ) printf(“1\n");
else if ( h+r < 0 ) printf(“-1\n");
else printf(“0\n");
return 0;
}
| main.c: In function 'main':
main.c:7:30: error: stray '\342' in program
7 | if ( h+r > 0 ) printf(<U+201C>1\n");
| ^~~~~~~~
main.c:7:32: error: stray '\' in program
7 | if ( h+r > 0 ) printf(“1\n");
| ^
main.c:7:32: error: exp... |
s411431270 | p00331 | C | #include <stdio.h>
int main() {
int h, r;
scanf("%d %d", &h, &r);
if ( h+r > 0 ){
printf(“1\n");
} else if ( h+r < 0 ){
printf(“-1\n");
} else {
printf(“0\n");
}
return 0;
}
| main.c: In function 'main':
main.c:8:9: error: stray '\342' in program
8 | printf(<U+201C>1\n");
| ^~~~~~~~
main.c:8:11: error: stray '\' in program
8 | printf(“1\n");
| ^
main.c:8:11: error: expected ')' before 'n'
8 | printf(“1\n");
| ~ ^~
| )... |
s546321883 | p00331 | C | #include<stdio.h>
int main(void)
{
??int H,R,a,b;
??scanf("%d %d",&H,&R);
??a=H+R;
??if(a>0){
????b=1;
??}
??else if(a==0){
????b=0;
??}
??else{
????b=-1;
??}
??printf("%d",b);
??return(0);
} | main.c: In function 'main':
main.c:4:1: error: expected expression before '?' token
4 | ??int H,R,a,b;
| ^
main.c:5:1: error: expected expression before '?' token
5 | ??scanf("%d %d",&H,&R);
| ^
main.c:5:18: error: 'H' undeclared (first use in this function)
5 | ??scanf("%d %d",&H,&R);
| ... |
s757968058 | p00331 | C | #include<stdio.h>
int main(void)
{
??int H,R,a,b;
??scanf("%d %d",&H,&R);
??a=H+R;
??if(a>0){
????b=1;
??}
??else if(a==0){
????b=0;
??}
??else{
????b=-1;
??}
??printf("%d\n",b);
??return(0);
} | main.c: In function 'main':
main.c:4:1: error: expected expression before '?' token
4 | ??int H,R,a,b;
| ^
main.c:5:1: error: expected expression before '?' token
5 | ??scanf("%d %d",&H,&R);
| ^
main.c:5:18: error: 'H' undeclared (first use in this function)
5 | ??scanf("%d %d",&H,&R);
| ... |
s750434933 | p00331 | C | #include<stdio.h>
int main(void)
{
??int H,R,a,b;
??scanf("%d %d\n",&H,&R);
??a=H+R;
??if(a>0){
????b=1;
??}
??else if(a==0){
????b=0;
??}
??else{
????b=-1;
??}
??printf("%d",b);
??return(0);
} | main.c: In function 'main':
main.c:4:1: error: expected expression before '?' token
4 | ??int H,R,a,b;
| ^
main.c:5:1: error: expected expression before '?' token
5 | ??scanf("%d %d\n",&H,&R);
| ^
main.c:5:20: error: 'H' undeclared (first use in this function)
5 | ??scanf("%d %d\n",&H,&R);
... |
s266746580 | p00331 | C | #include<stdio.h>
int main(void)
{
int H,R,n;
scanf("%d %d",&H,&R);
if(H+R<0){
n=-1
}
else if(H+R=0){
n=0;
}
else{
n=1;
}
printf"%d",n);
return(0);
} | main.c: In function 'main':
main.c:7:7: error: expected ';' before '}' token
7 | n=-1
| ^
| ;
8 | }
| ~
main.c:9:13: error: lvalue required as left operand of assignment
9 | else if(H+R=0){
| ^
main.c:15:8: error: expected ';' before string constant
... |
s284135718 | p00331 | C | #include<stdio.h>
main(void)
{
??int H,R,n;
??scanf("%d %d",&H,&R);
??if(H+R<0){
????n=-1;
??}
??else if(H+R=0){
????n=0;
??}
??else{
????n=1;
??}
??printf("%d",n);
??return(0);
} | main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
3 | main(void)
| ^~~~
main.c: In function 'main':
main.c:5:1: error: expected expression before '?' token
5 | ??int H,R,n;
| ^
main.c:6:1: error: expected expression before '?' token
6 | ??scanf("%d %d",&H,&R);
| ^
main.c:6:... |
s597615738 | p00331 | C | #include<iostream>
using namespace std;
int main()
{
int h,r;
cin>>h>>r;
if(h==r)
cout<<'0'<<endl;
else if(h<=r)
cout<<'1'<<endl;
else(h>=r)
cout<<"-1"<<endl;
return 0;
} | main.c:1:9: fatal error: iostream: No such file or directory
1 | #include<iostream>
| ^~~~~~~~~~
compilation terminated.
|
s217926973 | p00331 | C | #include<iostream>
using namespace std;
int main()
{
int h,r;
cin>>h>>r;
if(h==r)
cout<<'0'<<endl;
else if(h<=r)
cout<<'1'<<endl;
else(h>=r)
cout<<"-1"<<endl;
return 0;
} | main.c:1:9: fatal error: iostream: No such file or directory
1 | #include<iostream>
| ^~~~~~~~~~
compilation terminated.
|
s650155329 | p00331 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int H,R;
cin >> H >> R;
if(H<0){
if(R+H>0) cout >> 1 >> endl;
if(R+H==0) cout >> 0 >> endl;
if(R+H<0)cout >> -1 >> endl;
}else{
(R-H == 0)cout >> 0 >> endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:20: error: no match for 'operator>>' (operand types are 'std::ostream' {aka 'std::basic_ostream<char>'} and 'int')
7 | if(R+H>0) cout >> 1 >> endl;
| ~~~~ ^~ ~
| | |
| | int
| std::... |
s739746841 | p00331 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int H,R;
cin >> H >> R;
if(H<0){
if(R+H>0) cout << 1 << endl;
if(R+H==0) cout << 0 << endl;
if(R+H<0)cout << -1 << endl;
}else{
(R-H == 0)cout << 0 << endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:11:15: error: expected ';' before 'cout'
11 | (R-H == 0)cout << 0 << endl;
| ^~~~
| ;
|
s868562368 | p00331 | C++ | #include<bits/stdc++.h>
using namespace std;
int main(){
int H,R;
cin >> H >> R;
if(H<0){
if(R+H>0) cout << 1 << endl;
if(R+H==0) cout << 0 << endl;
if(R+H<0)cout << -1 << endl;
}else{
(R-H == 0)cout << 0 << endl;
}
return 0;
}
| a.cc: In function 'int main()':
a.cc:11:15: error: expected ';' before 'cout'
11 | (R-H == 0)cout << 0 << endl;
| ^~~~
| ;
|
s395221014 | p00331 | C++ | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s299319064 | p00331 | C++ | #include <bits/stdc++.h>
using namespacs std;
int main (){
int x,y,z;
cin >> x >> y;
if ( ( x + y ) > 0){z=1}
else if ( ( x + y )==0){z=0}
else {z=-1}
cout<< z << endl;
return 0;
}
| a.cc:2:7: error: expected nested-name-specifier before 'namespacs'
2 | using namespacs 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 >> x >> y;
| ^~~
| std::cin
In file included from /usr/inc... |
s793670586 | p00331 | C++ | #include <bits/stdc++.h>
using nameplae std;
int main(){
int W;
cin>>W*32;
return 0;
}
| a.cc:2:7: error: expected nested-name-specifier before 'nameplae'
2 | using nameplae 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>>W*32;
| ^~~
| std::cin
In file included from /usr/include/x8... |
s970572590 | p00331 | C++ | #include <bits/stdc++.h>
using namespace std;
intmain(){
int H,R;
cin>>H>>R;
if(H+R>0){
cout<<1;
}else if(H+R=0){
cout<<0;
}else{
cout<<-1<<endl;
}
return 0;
}
| a.cc:4:1: error: ISO C++ forbids declaration of 'intmain' with no type [-fpermissive]
4 | intmain(){
| ^~~~~~~
a.cc: In function 'int intmain()':
a.cc:9:13: error: lvalue required as left operand of assignment
9 | }else if(H+R=0){
| ~^~
|
s220982629 | p00331 | C++ | #include <bits/stdc++.h>
using namespace std;
intmain(){
int H,R;
cin>>H>>R;
if(H+R>0){
cout<<1;endl;
}else if(H+R=0){
cout<<0;endl;
}else{
cout<<-1<<endl;
}
return 0;
}
| a.cc:4:1: error: ISO C++ forbids declaration of 'intmain' with no type [-fpermissive]
4 | intmain(){
| ^~~~~~~
a.cc: In function 'int intmain()':
a.cc:8:17: error: statement cannot resolve address of overloaded function
8 | cout<<1;endl;
| ^
a.cc:9:13: error: lvalue required as l... |
s565289144 | p00331 | C++ | #include <bits/stdc++.h>
using namespace std;
intmain(){
int H,R;
cin>>H>>R;
if(H+R>0){
cout<<1<<endl;
}else if(H+R=0){
cout<<0<<endl;
}else{
cout<<-1<<endl;
}
return 0;
}
| a.cc:4:1: error: ISO C++ forbids declaration of 'intmain' with no type [-fpermissive]
4 | intmain(){
| ^~~~~~~
a.cc: In function 'int intmain()':
a.cc:9:13: error: lvalue required as left operand of assignment
9 | }else if(H+R=0){
| ~^~
|
s368112908 | p00331 | C++ | #include <bits/stdc++.h>
using namespace std;
intmain(){
int H,R;
cin>>H>>R;
if(H+R>0){
cout<<1<<endl;
}else if(H+R=0){
cout<<0<<endl;
}else{
cout<<-1<<endl;
}
return 0;
}
| a.cc:4:1: error: ISO C++ forbids declaration of 'intmain' with no type [-fpermissive]
4 | intmain(){
| ^~~~~~~
a.cc: In function 'int intmain()':
a.cc:9:13: error: lvalue required as left operand of assignment
9 | }else if(H+R=0){
| ~^~
|
s555120407 | p00331 | C++ | #include <bits/stdc++.h>
using namespace std;
intmain(){
int H,R;
cin>>H>>R;
if(H+R>0){
cout<<1<<endl;
}else if(H+R==0){
cout<<0<<endl;
}else{
cout<<-1<<endl;
}
return 0;
}
| a.cc:4:1: error: ISO C++ forbids declaration of 'intmain' with no type [-fpermissive]
4 | intmain(){
| ^~~~~~~
|
s687414163 | p00331 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int H;
if(-i000<=H&&H<0){
}else if(H=0){
}else if(0<H&&H<=1000){
}else
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:7: error: 'i000' was not declared in this scope
7 | if(-i000<=H&&H<0){
| ^~~~
|
s076209110 | p00331 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int H;
if(-i000<=H&&H<0){
}else if(H=0){
}else if(0<H&&H<=1000){
}else
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:7: error: 'i000' was not declared in this scope
7 | if(-i000<=H&&H<0){
| ^~~~
|
s804693374 | p00331 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int H;
if(-i000<=H&&H<0){
}else if(H=0){
}else if(0<H&&H<=1000){
}else
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:7: error: 'i000' was not declared in this scope
7 | if(-i000<=H&&H<0){
| ^~~~
|
s041696773 | p00331 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int H;
if(-i000<=H&&H<0){
}else if(H=0){
}else if(0<H&&H<=1000){
}else
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:7: error: 'i000' was not declared in this scope
7 | if(-i000<=H&&H<0){
| ^~~~
|
s063936491 | p00331 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int H;
if(-i000<=H&&H<0){
}else if(H=0){
}else if(0<H&&H<=1000){
}else
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:7: error: 'i000' was not declared in this scope
7 | if(-i000<=H&&H<0){
| ^~~~
|
s693586734 | p00331 | C++ | #include <bits/stdc++.h>
using namespace std;
int main(){
int H;
if(-i000<=H&&H<0){
}else if(H=0){
}else if(0<H&&H<=1000){
}else
return 0;
}
| a.cc: In function 'int main()':
a.cc:7:7: error: 'i000' was not declared in this scope
7 | if(-i000<=H&&H<0){
| ^~~~
|
s477906012 | p00331 | C++ | /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
| |
s611815492 | p00331 | C++ | #include<cstdio>
#include<iosetream>
using namespace std;
int main(void){
int h,r;
if(h+r==0) cout<<0<<endl;
else if(h+r>0) cout<<1<<endl;
else cout<<-1<<endl;
return 0;
} | a.cc:2:9: fatal error: iosetream: No such file or directory
2 | #include<iosetream>
| ^~~~~~~~~~~
compilation terminated.
|
s811339377 | p00331 | C++ | #include <stdio.h>
int main(void)
{
int a,b,c;
scanf("%d %d",&a,&b);
if (a<=b)
{
printf("-1\n");
}
if else (a==b)
{
printf("0\n");
}
if else (a>=b)
{
printf("1\n");
}
return 0;
} | a.cc: In function 'int main()':
a.cc:10:12: error: expected '(' before 'else'
10 | if else (a==b)
| ^~~~
| (
a.cc:14:12: error: expected '(' before 'else'
14 | if else (a>=b)
| ^~~~
| (
|
s068462734 | p00331 | C++ | #include<stdio.h>
int main()
{
int h,r;
scanf("%d%d",&h,&r);
if(h<0)
{
if(r-h=0)
{
printf("0\n");
}
}
else if(h>0)
{
printf("1\n");
}
else
{
printf("-1\n");
}
return 0;
} | a.cc: In function 'int main()':
a.cc:8:21: error: lvalue required as left operand of assignment
8 | if(r-h=0)
| ~^~
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.