submission_id stringlengths 10 10 | problem_id stringlengths 6 6 | language stringclasses 3
values | code stringlengths 1 522k | compiler_output stringlengths 43 10.2k |
|---|---|---|---|---|
s123008656 | p02263 | C++ | #include<iostream>
#include<string>
using namespace std;
int S[200];
int top = 0;
void push(int x) {
top += 1;
S[top] = x;
}
int pop() {
top -= 1;
return S[top+1];
}
int main() {
string c;
int a, b;
while(cin >> c){
if (c=="+") {
a = pop();
b = pop();
push(a+b);
} else if (c=... | a.cc: In function 'int main()':
a.cc:35:17: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
35 | push(atoi(c));
| ^
| |
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr... |
s626081313 | p02263 | C++ | #include<iostream>
#include<stdlib.h>
using namespace std;
const int Max=300;
int Stack[Max];
int top=0;
bool isFull()
{
return (top>=Max);
}
bool isEmpty(){
return top==0;
}
int push(int x){
if (!isFull){
Stack[top++]=x;
}
}
int pop(){
if(!isEmpty)
return Stack[--top];... | a.cc: In function 'int push(int)':
a.cc:20:1: warning: no return statement in function returning non-void [-Wreturn-type]
20 | }
| ^
a.cc: In function 'int main()':
a.cc:48:25: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
48 | else push(atoi(c));
| ... |
s228179663 | p02263 | 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
| |
s783147532 | p02263 | C++ | #include <bits/stdc++.h>
using namespace std;
stack<int> s;
char op[3333];
int main(){
gets(op);
int len = strlen(op);
int n = 0;
for(int i = 0; i < len; i++){
if(op[i] >= '0' && op[i] <= '9'){
n = n*10 + (op[i]-'0');
}
else if(op[i] == ' ' && op[i-1] >= '0' && op[i-1... | a.cc: In function 'int main()':
a.cc:6:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
6 | gets(op);
| ^~~~
| getw
|
s284278366 | p02263 | C++ | #include <bits/stdc++.h>
using namespace std;
stack<int> s;
char op[3333];
int main(){
gets(op);
int len = strlen(op);
int n = 0;
for(int i = 0; i < len; i++){
if(op[i] >= '0' && op[i] <= '9'){
n = n*10 + (op[i]-'0');
}
else if(op[i] == ' ' && op[i-1] >= '0' && op[i-1... | a.cc: In function 'int main()':
a.cc:6:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
6 | gets(op);
| ^~~~
| getw
|
s382526476 | p02263 | C++ | #include <iostream>
#include <cstdio>
#include <cstring>
#include <stack>
using namespace std;
stack<int> s;
char op[3333];
int main(){
gets(op);
int len = strlen(op);
int n = 0;
for(int i = 0; i < len; i++){
if(op[i] >= '0' && op[i] <= '9'){
n = n*10 + (op[i]-'0');
}
... | a.cc: In function 'int main()':
a.cc:9:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
9 | gets(op);
| ^~~~
| getw
|
s129187853 | p02263 | C++ | #include <cstdlib>
#include <iostream>
#include <string>
// ---Fixed-length Stuck with template---
// Covers user-defined type
// Instantiating as following:
// Stack<TYPENAME> VARIABLENAME(SIZE);
template <class T>
class Stack{
public:
// Constructor, which is given stack size
Stack( int max_size ){
... | a.cc: In member function 'void Stack<T>::Push(T)':
a.cc:45:9: error: expected ';' before '}' token
45 | }else{
| ^
a.cc: In member function 'void Stack<T>::Print()':
a.cc:63:49: error: there are no arguments to 'GetRest' that depend on a template parameter, so a declaration of 'GetRest' must be... |
s968401945 | p02263 | C++ | #include<iostream>
#include<stack>
using namespace std;
int main(void){
char num;
int a,b;
stack<int> st;
for(int i=0;i<200;i++){
if(!(cin >> num;))break;
if(num=='+'){
a = st.top();
b = st.top();
st.pop();
st.pop();
st.push(a+b... | a.cc: In function 'int main()':
a.cc:9:24: error: expected ')' before ';' token
9 | if(!(cin >> num;))break;
| ~ ^
| )
a.cc:9:24: error: expected ')' before ';' token
9 | if(!(cin >> num;))break;
| ~ ^
| ... |
s034124467 | p02263 | C++ | #include<iostream>
#include<string.h>
#include<stack>
#include<stdio.h>
#include<stdlib.h>
using namespace std;
int Blan(){
stack<int> a;
int x,y;
string s;
while(cin>>s){
if(s[0] == '+'){
x = a.top();a.pop() ;
y = a.top(); a.pop() ;
a.push(x+y);
}
else if(s[0] == '-'){
x = a.top();a.pop() ;
... | a.cc: In function 'int Blan()':
a.cc:29:37: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
29 | a.push(atoi(s));
| ^
| |
| ... |
s824222669 | p02263 | C++ | #include <iostream>
#include <string>
#include <stack>
using namespace std;
int main(void)
{
int a,b;
stack<int> stack;
string instr;
getline(cin,instr);
for(int i=0;i<str.length();i++){
if(input[i]==' ') continue;
if(0<=atoi(&instr[i])&&atoi(&instr[i])<=9){
stack.push(at... | a.cc: In function 'int main()':
a.cc:11:19: error: 'str' was not declared in this scope; did you mean 'std'?
11 | for(int i=0;i<str.length();i++){
| ^~~
| std
a.cc:12:12: error: 'input' was not declared in this scope; did you mean 'int'?
12 | if(input[i]... |
s299212211 | p02263 | C++ | #include <iostream>
#include <stack>
#include <string>
#include <sstream>
using namespace std;
int main()
{
double a,b;
string s;
stack <double> stack;
getline(cin,s);
stringstream ss(s);
while( ss >> s ){
if(s=="+"||s=="-"||s=="*"||s=="/"){
b=stack.top();stack.pop();
a=stack.top();stack.pop();
if(s=="... | a.cc: In function 'int main()':
a.cc:21:38: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
21 | else stack.push(atoi(s));
| ^
| |
| ... |
s941469901 | p02264 | Java | import java.util.Scanner;
public class Main {
public static int LEN = 100005;
public static P[] Q = new P[LEN];
public static int head, tail, n;
public static void enqueue(P x) {
Q[tail] = x;
tail = (tail + 1) % LEN;
}
public static P dequeue() {
P x = Q[head];
head = (head + 1) % LEN;
return x;
}... | Main.java:7: error: cannot find symbol
public static P[] Q = new P[LEN];
^
symbol: class P
location: class Main
Main.java:10: error: cannot find symbol
public static void enqueue(P x) {
^
symbol: class P
location: class Main
Main.java:15: error: cannot find symbo... |
s415749830 | p02264 | Java | import java.util.Scanner;
public class Main {
static int LEN = 100005;
static P[] Q = new P[LEN];
static int head, tail, n;
static void enqueue(P x) {
Q[tail] = x;
tail = (tail + 1) % LEN;
}
static P dequeue() {
P x = Q[head];
head = (head + 1) % LEN;
return x;
}
static int min(int a, int b) {
... | Main.java:7: error: cannot find symbol
static P[] Q = new P[LEN];
^
symbol: class P
location: class Main
Main.java:10: error: cannot find symbol
static void enqueue(P x) {
^
symbol: class P
location: class Main
Main.java:15: error: cannot find symbol
static P dequeue() {
... |
s540664793 | p02264 | Java | import java.util.Scanner;
public class Main {
public static int LEN = 100005;
public static P[] Q = new P[LEN];
public static int head, tail, n;
public static void enqueue(P x) {
Q[tail] = x;
tail = (tail + 1) % LEN;
}
public static P dequeue() {
P x = Q[head];
head = (head + 1) % LEN;
return x;
}... | Main.java:55: error: class, interface, enum, or record expected
package alds1_3_b_Queue;
^
1 error
|
s524100936 | p02264 | Java | import java.util.Scanner;
public class Main {
public static int LEN = 100005;
public static P[] Q = new P[LEN];
public static int head, tail, n;
public static void enqueue(P x) {
Q[tail] = x;
tail = (tail + 1) % LEN;
}
public static P dequeue() {
P x = Q[head];
head = (head + 1) % LEN;
return x;
}... | Main.java:55: error: class P is public, should be declared in a file named P.java
public class P {
^
1 error
|
s061710287 | p02264 | Java |
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayDeque;
import java.util.Queue;
import java.util.Scanner;
class Main {
/*
* 10番目のテストケースでTLEになったのがショックでした
*/
public static void main(String[] args) throws Exception {
//入力と準備
BufferedReader br = new BufferedReader(new Inp... | Main.java:33: error: cannot find symbol
for(;!queue.isEnpty;) {
^
symbol: variable isEnpty
location: variable queue of type Queue<Integer>
1 error
|
s629764438 | p02264 | Java |
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayDeque;
import java.util.Queue;
import java.util.Scanner;
class Main {
/*
* 10番目のテストケースでTLEになったのがショックでした
*/
public static void main(String[] args) throws Exception {
//入力と準備
BufferedReader br = new BufferedReader(new Inp... | Main.java:33: error: cannot find symbol
for(;!queue.isEnpty();) {
^
symbol: method isEnpty()
location: variable queue of type Queue<Integer>
1 error
|
s037579673 | p02264 | Java |
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayDeque;
import java.util.Queue;
import java.util.Scanner;
class Main {
/*
* 10番目のテストケースでTLEになったのがショックでした
*/
public static void main(String[] args) throws Exception {
//入力と準備
BufferedReader br = new BufferedReader(new Inp... | Main.java:23: error: cannot find symbol
Queue<Integer> queue = new ConcurrentLinkedQueue<Integer>();
^
symbol: class ConcurrentLinkedQueue
location: class Main
1 error
|
s956553217 | p02264 | Java | import java.util.ArrayList;
import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int q = sc.nextInt();
Orique oq = new Orique();
for (int i = 0; i < n; i++) {
oq.inque(sc.next(), sc.nextInt());
}
sc.close();
oq.Ro... | Main.java:81: error: reached end of file while parsing
}
^
1 error
|
s867347037 | p02264 | Java | import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
String[] one = s.nextLine().split(" ");
QueueImpl qqq = new Queue().new QueueImpl();
for(int i=0 ; i<new Integer(one[0]).intValue() ; i++){
String[] two = s.nextLine().split(" ");
... | Main.java:9: error: cannot find symbol
QueueImpl qqq = new Queue().new QueueImpl();
^
symbol: class Queue
location: class Main
Main.java:10: warning: [removal] Integer(String) in Integer has been deprecated and marked for removal
for(int i=0 ; i<new Integer(one[0]).intValue() ; i++){
... |
s168839828 | p02264 | Java | import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
String[] one = s.nextLine().split(" ");
Queue.QueueImpl qqq = new Queue().new QueueImpl();
for(int i=0 ; i<new Integer(one[0]).intValue() ; i++){
String[] two = s.nextLine().split(" "... | Main.java:9: error: package Queue does not exist
Queue.QueueImpl qqq = new Queue().new QueueImpl();
^
Main.java:9: error: cannot find symbol
Queue.QueueImpl qqq = new Queue().new QueueImpl();
^
symbol: class Queue
location: class Main
Main.java:10: warning: [removal] Integer... |
s088184366 | p02264 | Java | import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
String[] one = s.nextLine().split(" ");
QueueImpl qqq = new Queue().new QueueImpl();
for(int i=0 ; i<new Integer(one[0]).intValue() ; i++){
String[] two = s.nextLine().split(" ");
... | Main.java:9: error: cannot find symbol
QueueImpl qqq = new Queue().new QueueImpl();
^
symbol: class Queue
location: class Main
Main.java:10: warning: [removal] Integer(String) in Integer has been deprecated and marked for removal
for(int i=0 ; i<new Integer(one[0]).intValue() ; i++){
... |
s886275088 | p02264 | Java | import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
String[] one = s.nextLine().split(" ");
QueueImpl qqq = new Queue().new QueueImpl();
for(int i=0 ; i<new Integer(one[0]).intValue() ; i++){
String[] two = s.nextLine().split(" ");
... | Main.java:9: error: cannot find symbol
QueueImpl qqq = new Queue().new QueueImpl();
^
symbol: class Queue
location: class Main
Main.java:10: warning: [removal] Integer(String) in Integer has been deprecated and marked for removal
for(int i=0 ; i<new Integer(one[0]).intValue() ; i++){
... |
s754779963 | p02264 | Java | import java.io.*;
public class Queue{
private Node first, last;
public Queue(){
int n, limit = 0, timeSt = 0;
String[] tmp;
Node[] process;
BufferedReader br =
new BufferedReader(new InputStreamReader(System.in), 1);
try{
tmp = br.readLine().split(" ");
n = Integer.parseInt(tmp[0]);
limit = ... | Main.java:3: error: class Queue is public, should be declared in a file named Queue.java
public class Queue{
^
1 error
|
s438971549 | p02264 | Java | import java.io.*;
class Main{
private Node first, last;
public Queue(){
int n, limit = 0, timeSt = 0;
String[] tmp;
Node[] process;
BufferedReader br =
new BufferedReader(new InputStreamReader(System.in), 1);
try{
tmp = br.readLine().split(" ");
n = Integer.parseInt(tmp[0]);
limit = Integer.... | Main.java:6: error: invalid method declaration; return type required
public Queue(){
^
1 error
|
s216710162 | p02264 | Java | import java.io.*;
import java.util.*;
class Main {
public static void main(String[] args) {
BufferedReader kb = new BufferedReader( new InputStreamReader( System.in ) );
try {
String[] str = kb.readLine().split( " " );
int n = Integer.parseInt( str[0] );
int... | Main.java:13: error: cannot find symbol
LinkedList<Ps> queue = new LinkedList<Ps>();
^
symbol: class Ps
location: class Main
Main.java:13: error: cannot find symbol
LinkedList<Ps> queue = new LinkedList<Ps>();
^
sym... |
s267212268 | p02264 | Java | import java.io.*;
class Main{
static ArrayDeque<Elem> dq;
static int size;
static int max;
static int time = 0;
static class Elem{
String s;
Integer i;
public Elem(String s, Integer i){
this.s = s;
... | Main.java:4: error: cannot find symbol
static ArrayDeque<Elem> dq;
^
symbol: class ArrayDeque
location: class Main
Main.java:41: error: cannot find symbol
dq = new ArrayDeque<>();
^
symbol: class ArrayDeque
location: class Main
2 errors
|
s900557725 | p02264 | Java | 5 100
p1 150
p2 80
p3 200
p4 350
p5 20 | Main.java:1: error: class, interface, enum, or record expected
5 100
^
1 error
|
s479029886 | p02264 | Java | import java.util.AbstractMap;
import java.util.ArrayDeque;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int q = sc.nextInt();
sc.nextLine();
String[... | Main.java:52: error: reached end of file while parsing
}
^
1 error
|
s011548434 | p02264 | Java | import java.io.*;
import java.util.*;
public class Main
{
public static void main(String[] args)
{
Deque<String> name = new ArrayDeque<String>();
Deque<Integer> time = new ArrayDeque<Integer>();
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int quantum ... | Main.java:36: error: ';' expected
Sytem.out.println(process_name + " " + elapsed_time)
^
1 error
|
s445266529 | p02264 | Java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayDeque;
import java.util.Deque;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String[] str = br.... | Main.java:60: error: reached end of file while parsing
}
^
1 error
|
s714756402 | p02264 | Java | import java.util.*;
public class Main{
private static final Scanner scan = new Scanner(System.in);
private static final int MAX = 100_001;
private static String[] P = new String[MAX];
private static int[] Q = new int[MAX];
private static int head, tail;
private static int headQ, tailQ;
public static void main(... | Main.java:22: error: cannot find symbol
enqueseQ(m);
^
symbol: method enqueseQ(int)
location: class Main
1 error
|
s360420372 | p02264 | Java | import java.util.*;
class process {
private String name;
private int time;
public process(String name,int time){
this.name = name;
this.time = time;
}
public void setName(String name) {
this.name = name;
}
public String getName() {
return name;
}
public void setTime(int time) {
... | Main.java:30: error: class QueueArray is public, should be declared in a file named QueueArray.java
public class QueueArray {
^
1 error
|
s228845384 | p02264 | Java | import java.util.*;
class process {
private String name;
private int time;
public process(String name,int time){
this.name = name;
this.time = time;
}
public void setName(String name) {
this.name = name;
}
public String getName() {
return name;
}
public void setTime(int time) {
... | Main.java:70: error: cannot find symbol
QueueArray queue = new QueueArray(n);
^
symbol: class QueueArray
location: class Main
Main.java:70: error: cannot find symbol
QueueArray queue = new QueueArray(n);
^
symbol: class QueueArray
location: class Main
Main.java:74: err... |
s821725756 | p02264 | Java | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
import java.util.ArrayDeque;
public class P2{
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String[] items = br.readLi... | Main.java:6: error: class P2 is public, should be declared in a file named P2.java
public class P2{
^
1 error
|
s680666158 | p02264 | Java | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
import java.util.ArrayDeque;
public class P2{
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String[] items = br.readLi... | Main.java:6: error: class P2 is public, should be declared in a file named P2.java
public class P2{
^
1 error
|
s898502608 | p02264 | Java | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
import java.util.ArrayDeque;
public class P2{
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String[] items = br.readLi... | Main.java:6: error: class P2 is public, should be declared in a file named P2.java
public class P2{
^
1 error
|
s931177565 | p02264 | Java | import java.util.LinkedList;
import java.util.Scanner;
public class P2 {
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
LinkedList<String> name = new LinkedList<String>();
LinkedList<Integer> time = new LinkedList<Integer>();
int length = scanner.n... | Main.java:4: error: class P2 is public, should be declared in a file named P2.java
public class P2 {
^
1 error
|
s459137919 | p02264 | Java | import java.util.LinkedList;
import java.util.Scanner;
public class P2 {
public static void main(String[] args){
Scanner scanner = new Scanner(System.in);
LinkedList<String> name = new LinkedList<String>();
LinkedList<Integer> time = new LinkedList<Integer>();
int length = scanner.n... | Main.java:4: error: class P2 is public, should be declared in a file named P2.java
public class P2 {
^
1 error
|
s562288237 | p02264 | Java | import java.util.LinkedList;
import java.util.Scanner;
public class P2 {
private static Scanner scanner;
public static void main(String[] args){
scanner = new Scanner(System.in);
LinkedList<String> name = new LinkedList<String>();
LinkedList<Integer> time = new LinkedList<Integer>();
... | Main.java:4: error: class P2 is public, should be declared in a file named P2.java
public class P2 {
^
1 error
|
s972465288 | p02264 | Java | import java.util.LinkedList;
import java.util.Scanner;
public class P2 {
private static Scanner scanner;
public static void main(String[] args){
scanner = new Scanner(System.in);
LinkedList<String> name = new LinkedList<String>();
LinkedList<Integer> time = new LinkedList<Integer>();
... | Main.java:4: error: class P2 is public, should be declared in a file named P2.java
public class P2 {
^
1 error
|
s478335071 | p02264 | Java | import java.util.LinkedList;
import java.util.Scanner;
public class P2 {
private static Scanner scanner;
public static void main(String[] args){
scanner = new Scanner(System.in);
LinkedList<String> name = new LinkedList<String>();
LinkedList<Integer> time = new LinkedList<Integer>();
... | Main.java:4: error: class P2 is public, should be declared in a file named P2.java
public class P2 {
^
1 error
|
s382486125 | p02264 | Java | package Queue;
import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Sample_Queue {
static String ERRORMSG = "WHAT!?";
static class Process {
// ?????§???????????°?????????
final int MIN_NAME_LENGTH = 1;
final int MIN_TIME = 1;
final int MAX_NAME_LENGTH = 10;
final int MAX_TIME = ... | Main.java:122: error: illegal escape character
System.out.println("??????????????????????????????????????\?????????????????????");
^
Main.java:132: error: illegal escape character
System.out.println("???????????????????????????????????????" + N + "????... |
s179734084 | p02264 | Java | import java.util.Scanner;
class Queue{
Process[] a = new Process[100000];
int head;
int tail;
Queue(){
head = 0;
tail = 0;
}
void enqueue(Process p){
if(tail+1 == a.length)
tail = 0;
else
tail++
a[tail] = p;
}
Process dequeue(){
if(head+1 == a.length)
head ... | Main.java:17: error: ';' expected
tail++
^
Main.java:26: error: ';' expected
head++
^
2 errors
|
s089667475 | p02264 | Java | package javaTest;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
/**
* Created by Lenovo on 2017/6/30.
*/
public class Algorithm {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
int q = scanner.n... | Main.java:10: error: class Algorithm is public, should be declared in a file named Algorithm.java
public class Algorithm {
^
1 error
|
s118975664 | p02264 | Java | import java.util.LinkedList;
import java.util.Scanner;
class Task {
public String name;
public int time;
Task(String name, int time) {
this.name = name;
this.time = time;
}
}
public class QueueTest {
static LinkedList<Task> queue = new LinkedList<>();
public static void main(String[] args) {
Scanner sc... | Main.java:13: error: class QueueTest is public, should be declared in a file named QueueTest.java
public class QueueTest {
^
1 error
|
s126580561 | p02264 | Java | import java.util.LinkedList;
import java.util.Scanner;
class Task {
public String name;
public int time;
Task(String name, int time) {
this.name = name;
this.time = time;
}
}
public class ALDS1_3_B{
static LinkedList<Task> queue = new LinkedList<>();
public static void main(String[] args) {
Scanner sc ... | Main.java:13: error: class ALDS1_3_B is public, should be declared in a file named ALDS1_3_B.java
public class ALDS1_3_B{
^
1 error
|
s052285303 | p02264 | Java | package chapter4;
import java.util.ArrayDeque;
import java.util.Scanner;
public class QueueWithLib {
public QueueWithLib() {
}
private Scanner sc;
public static void main(String[] args) {
new QueueWithLib().solve();
}
private void solve() {
sc = new Scanner(System.in);
... | Main.java:6: error: class QueueWithLib is public, should be declared in a file named QueueWithLib.java
public class QueueWithLib {
^
1 error
|
s675861782 | p02264 | Java | import java.util.*;
class Queue {
public static void main(String[] args){
Scanner input=new Scanner(System.in);
int taskNum=input.nextInt();
int taskTime=input.nextInt();
input.nextLine();//?¶??????¢????¬?
Map<String, Integer> map = new LinkedHashMap<String, Integer>();
String[] taskArr=new String[taskNu... | Main.java:55: error: incompatible types: unexpected return value
return 0;
^
1 error
|
s276440435 | p02264 | Java | class Queue {
public static void main(String[] args){
Scanner input=new Scanner(System.in);
int taskNum=input.nextInt();
int taskTime=input.nextInt();
input.nextLine();//?¶??????¢????¬?
Map<String, Integer> map = new LinkedHashMap<String, Integer>();
String[] taskArr=new String[taskNum];
int[] timeArr=... | Main.java:3: error: cannot find symbol
Scanner input=new Scanner(System.in);
^
symbol: class Scanner
location: class Queue
Main.java:3: error: cannot find symbol
Scanner input=new Scanner(System.in);
^
symbol: class Scanner
location: class Queue
Main.java:7: error: cannot find symb... |
s280828695 | p02264 | Java | class Queue {
public static void main(String[] args){
Scanner input=new Scanner(System.in);
int taskNum=input.nextInt();
int taskTime=input.nextInt();
input.nextLine();//?¶??????¢????¬?
Map<String, Integer> map = new LinkedHashMap<String, Integer>();
String[] taskArr=new String[taskNum];
int[] timeArr=... | Main.java:3: error: cannot find symbol
Scanner input=new Scanner(System.in);
^
symbol: class Scanner
location: class Queue
Main.java:3: error: cannot find symbol
Scanner input=new Scanner(System.in);
^
symbol: class Scanner
location: class Queue
Main.java:7: error: cannot find symb... |
s394753854 | p02264 | Java | import java.util.*;
import java.lang.*;
class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
String[] line = sc.nextLine().split(" ");
int n = Integer.parseInt(line[0]);
int work = Integer.parseInt(line[1]);
int sumTime = 0;
ArrayD... | Main.java:41: error: reached end of file while parsing
}
^
1 error
|
s775683030 | p02264 | Java |
public class Queue {
String name;
int time;
public Queue(String n, int t) {
name = n;
time = t;
}
}
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int n = 0, q = 0;
Scanner scanner = new Scanner(System.in);
try {
n = scanner.nextInt();
q = scanner.nextInt... | Main.java:12: error: class, interface, enum, or record expected
import java.util.Scanner;
^
1 error
|
s366329632 | p02264 | Java | import java.util.Scanner;
public class Queue {
String name;
int time;
public Queue(String n, int t) {
name = n;
time = t;
}
}
public class Main {
public static void main(String[] args) {
int n = 0, q = 0;
Scanner scanner = new Scanner(System.in);
try {
n = scanner.nextInt();
q = scanner.nextIn... | Main.java:3: error: class Queue is public, should be declared in a file named Queue.java
public class Queue {
^
1 error
|
s518804117 | p02264 | Java | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayDeque;
import java.util.Deque;
public class Main {
public static void main(String[] args) throws IOException, NumberFormatException {
// TODO ?????????????????????????????????????????????
BufferedRe... | Main.java:54: error: class Pair is public, should be declared in a file named Pair.java
public class Pair {
^
1 error
|
s659792995 | p02264 | Java | import java.util.*;
////queue for round robin
public class Main{
int processid = 0;
int val = 0;
QueueAizu(int a, int b){
processid = a;
val = b;
}
public static void main(String[] args) {
//
Scanner in = new Scanner(System.in);
int n = in.nextInt();
... | Main.java:7: error: invalid method declaration; return type required
QueueAizu(int a, int b){
^
1 error
|
s098334860 | p02264 | Java |
import java.util.Scanner;
import com.sun.corba.se.impl.orbutil.closure.Constant;
public class Main {
public static int size = 5;
public static int interval = 100;
public static int head=0, tail=0;
public static boolean isFull() {
return (tail-head >= size) ? true : false;
}
public static boolean isEm... | Main.java:4: error: package com.sun.corba.se.impl.orbutil.closure does not exist
import com.sun.corba.se.impl.orbutil.closure.Constant;
^
1 error
|
s818918667 | p02264 | Java | import java.util.Scanner;
class Main {
static int quantum = 0;
public static void main (String [] args) {
Scanner scan = new Scanner (System.in);
//プロセス数
int n = scan.nextInt();
String[] str = new String[n];
int[] data = new int[n];
//クオンタム
int q = scan.nextInt();
for (int i = 0; i < n; i++)... | Main.java:36: error: ')' or ',' expected
System.out.println(str[head] " " + quantum);
^
Main.java:36: error: not a statement
System.out.println(str[head] " " + quantum);
^
Main.java:36: error: ';' expected
System.out.println(str[hea... |
s943739996 | p02264 | Java | import java.util.Scanner;
class Main {
static int quantum = 0;
public static void main (String [] args) {
Scanner scan = new Scanner (System.in);
//プロセス数
int n = scan.nextInt();
String[] str = new String[n];
int[] data = new int[n];
//クオンタム
int q = scan.nextInt();
for (int i = 0; i < n; i++)... | Main.java:22: error: cannot find symbol
MainTest obj = new MainTest();
^
symbol: class MainTest
location: class Main
Main.java:22: error: cannot find symbol
MainTest obj = new MainTest();
^
symbol: class MainTest
location: class Main
2 errors
|
s630009313 | p02264 | Java | import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in... | Main.java:51: error: cannot find symbol
private AizuQueue.Node.Queue head;
^
symbol: class Node
location: class AizuQueue
Main.java:52: error: cannot find symbol
private AizuQueue.Node.Queue tail;
^
symbol: class Node
location... |
s989334594 | p02264 | Java | package alds1;
import java.util.Scanner;
public class ALDS1_3_B {
static class Node<E> {
public E value;
public Node<E> next;
public Node(E value) {
this.value = value;
this.next = null;
}
}
static class SimpleQueue<E> {
private Node<E> head;
private Node<E> tail;
int size;
public S... | Main.java:5: error: class ALDS1_3_B is public, should be declared in a file named ALDS1_3_B.java
public class ALDS1_3_B {
^
1 error
|
s016488747 | p02264 | Java | import java.util.*;
import java.io.*;
class Main{
public static void main(String[] args) throws IOFxception{
Scanner S=new Scanner(System.in);
int i,n,m,t=0;
Queue<String>P=new LinkedList<String>();
Queue<Integer>T=new LinkedList<Integer>();
n=S.nextInt();
m=S.nextInt();
for(i=0;i<n;i++){
P.add(S.next(... | Main.java:5: error: cannot find symbol
public static void main(String[] args) throws IOFxception{
^
symbol: class IOFxception
location: class Main
Main.java:20: error: bad operand types for binary operator '+'
t=t+T;
^
first type: int
second type: ... |
s251444218 | p02264 | Java | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
void push(int);
int pup();
int atama;
int A[199];
int main(int argc, char *argv[]){
int x,y;
char a[100];
atama=0;
while(scanf("%s",a)!=EOF){
if(a[0]=='+'){
x=pop();
y=pop();
push(x+y);
}
else if(a[0]... | Main.java:1: error: illegal character: '#'
#include<stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include<stdio.h>
^
Main.java:2: error: illegal character: '#'
#include<stdlib.h>
^
Main.java:3: error: illegal character: '#'
#include<string.h>
^
Main.java:4: error: illegal character:... |
s336391846 | p02264 | Java | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
void push(int);
int pup();
int atama;
int A[199];
int main(int argc, char *argv[]){
int x,y;
char a[100];
atama=0;
while(scanf("%s",a)!=EOF){
if(a[0]=='+'){
x=pop();
y=pop();
push(x+y);
}
else if(a[0]... | Main.java:1: error: illegal character: '#'
#include<stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include<stdio.h>
^
Main.java:2: error: illegal character: '#'
#include<stdlib.h>
^
Main.java:3: error: illegal character: '#'
#include<string.h>
^
Main.java:4: error: illegal character:... |
s493694456 | p02264 | Java | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
void push(int);
int pup();
int atama;
int A[199];
int main(int argc, char *argv[]){
int x,y;
char a[100];
atama=0;
while(scanf("%s",a)!=EOF){
if(a[0]=='+'){
x=pop();
y=pop();
push(x+y);
}
else if(a[0]... | Main.java:1: error: illegal character: '#'
#include<stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include<stdio.h>
^
Main.java:2: error: illegal character: '#'
#include<stdlib.h>
^
Main.java:3: error: illegal character: '#'
#include<string.h>
^
Main.java:4: error: illegal character:... |
s804526057 | p02264 | Java | #include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
void push(int);
int pup();
int atama;
int A[199];
int main(int argc, char *argv[]){
int x,y;
char a[100];
atama=0;
while(scanf("%s",a)!=EOF){
if(a[0]=='+'){
x=pop();
y=pop();
push(x+y);
}
else if(a[0]... | Main.java:1: error: illegal character: '#'
#include<stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include<stdio.h>
^
Main.java:2: error: illegal character: '#'
#include<stdlib.h>
^
Main.java:3: error: illegal character: '#'
#include<string.h>
^
Main.java:4: error: illegal character:... |
s373136471 | p02264 | Java | import java.util.Scanner;
public class Main{
public static void main(String[] args){
new Main.run();
}
public void run(){
Scanner scan = new Scanner(System.in);
while(scan.hasNext()){
int n = scan.nextInt();
int sTime = scan.nextInt();
Process[] schedule = new Process[n];
int count = n;
int j = ... | Main.java:4: error: cannot find symbol
new Main.run();
^
symbol: class run
location: class Main
1 error
|
s797930984 | p02264 | 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
| |
s211707075 | p02264 | 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
| |
s035615272 | p02264 | C | #include<stdio.h>
#include<queue>
using namespace std;
struct Process
{
char name[15];
int time;
};
struct Process pro[100000];
int main()
{
int n,q,t=0,sum=0,i=0;
scanf("%d%d",&n,&q);
queue<int> qu;
queue<char*> p;
while(t<n)
{
scanf("%s%d",pro[t].name,&pro[t].time);
qu.... | main.c:2:9: fatal error: queue: No such file or directory
2 | #include<queue>
| ^~~~~~~
compilation terminated.
|
s857658689 | p02264 | C | #include <stdio.h>
#define LEN 100005
typedef struct pp {
char name [100];
int t;
} p;
P Q[LEN];
int head, tail, n;
void enqueue(P x) {
Q[tail] = x;
tail = (tail + 1) % LEN;
}
P dequeue() {
P x = Q[head];
head = (head +1) % LEN;
return x;
}
int min (int a, int b){
return a < b ? a : b;
}
int main (){
int... | main.c:9:1: error: unknown type name 'P'
9 | P Q[LEN];
| ^
main.c:12:14: error: unknown type name 'P'
12 | void enqueue(P x) {
| ^
main.c:17:1: error: unknown type name 'P'
17 | P dequeue() {
| ^
main.c: In function 'dequeue':
main.c:18:9: error: unknown type name 'P'
18 | ... |
s684443329 | p02264 | C | #include<stdio.h>
#include<stdio.h>
#define LEN 100005
typedef struct pp{
char name[100];
int t;
}P; //構造体の定義
P Q[LEN];
int head;
int tail;
int n;
void enqueue(P x){
Q[tail]=x;
tail = (tail+1)%LEN; //LENで巡回させる。
}
P dequeue(){
P x = Q[head]; //先頭を取り出す。
head = (head+1)%LEN;
return x;
}
int min(int a, ... | main.c:1:1: error: stray '\343' in program
1 | <U+3000>#include<stdio.h>
| ^~~~~~~~
main.c:1:3: error: stray '#' in program
1 | #include<stdio.h>
| ^
main.c:1:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
1 | #include<stdio.h>
| ^
In file includ... |
s031915322 | p02264 | 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
| |
s821939273 | p02264 | C | #include<stdio.h>
typedef struct Process_
{
char name[11];
int tim;
} process;
#define Q_TAIL 100000;
typedef struct Queue_
{
process p[Q_TAIL];
int head;
int tail;
} queue;
process dequeue(queue *q)
{
int b = q->head;
q->head = (q->head+1)%Q_TAIL;
return q->p[b];
}
void enqueue(q... | main.c:9:22: error: expected ']' before ';' token
9 | #define Q_TAIL 100000;
| ^
main.c:13:15: note: in expansion of macro 'Q_TAIL'
13 | process p[Q_TAIL];
| ^~~~~~
main.c: In function 'dequeue':
main.c:23:13: error: 'queue' {aka 'struct Queue_'} has no member n... |
s291626765 | p02264 | C | #include<stdio.h>
#define MAX 100001
struct P{
char name[10];
int time;
};
struct P q[MAX];
int head,tail;
int init(){
head=tail=0;
return:
}
int empty(){
return head==tail;
}
int full(){
return (tail+1)%MAX;
}
int enque... | main.c: In function 'init':
main.c:14:15: error: expected expression before ':' token
14 | return:
| ^
main.c: In function 'enqueue':
main.c:26:19: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch]
26 | if(full())return;
| ... |
s049661199 | p02264 | C | #include<stdio.h>
#define MAX 100001
struct P{
char name[10];
int time;
};
struct P q[MAX];
int head,tail;
int init(){
head=tail=0;
return:
}
int empty(){
return head==tail;
}
int full(){
return (tail+1)%MAX;
}
void enqu... | main.c: In function 'init':
main.c:14:15: error: expected expression before ':' token
14 | return:
| ^
main.c: In function 'dequeue':
main.c:33:20: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch]
33 | if(empty())return;
| ... |
s127974463 | p02264 | C | #include<stdio.h>
#define MAX 100001
struct P{
char name[10];
int time;
};
struct P q[MAX];
int head,tail;
int init(){
return head=tail=0;
}
int empty(){
return head==tail;
}
int full(){
return (tail+1)%MAX;
}
void enqueue(struc... | main.c: In function 'dequeue':
main.c:32:20: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch]
32 | if(empty())return;
| ^~~~~~
main.c:31:6: note: declared here
31 | int dequeue(){
| ^~~~~~~
main.c:36:16: error: incompatible types when r... |
s948730677 | p02264 | C | hy
| main.c:1:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
1 | hy
| ^~
|
s699622399 | p02264 | C | oppai
| main.c:1:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
1 | oppai
| ^~~~~
|
s875141098 | p02264 | C | #include<stdio.h>
typedef struct {
char name[10];
int time;
} queue;
int main(){
int n, q;
int i, temp;
int sum = 0, answer = 0;
int head = 0;
queue Q[10000];
scanf("%d %d", &n, &q);
for (i = 0; i < n; i++) {
scanf("%s", Q[i].name);
scanf("%d", &Q[i].time);
sum += Q[i].time;
}
diff = sum;
while (... | main.c: In function 'main':
main.c:22:9: error: 'diff' undeclared (first use in this function)
22 | diff = sum;
| ^~~~
main.c:22:9: note: each undeclared identifier is reported only once for each function it appears in
|
s235922302 | p02264 | C | #include<stdio.h>
#include<string.h>
#define LEN 100005
typedef struct pp {
char name[100];
int i;
} P;
P Q[100];
int head, tail, n;
void enqueue(P x){
Q[tail] = x;
tail = (tail + 1) % LEN;
}
P dequeue(){
P x = Q[head];
head = (head + 1) % LEN;
return x;
}
int min(int a, int b){
ret... | main.c: In function 'main':
main.c:34:16: error: 'm' undeclared (first use in this function)
34 | for(i=0; i<m; i++){
| ^
main.c:34:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:36:26: error: 'P' {aka 'struct pp'} has no member named 't'
... |
s923210846 | p02264 | C | #include<stdio.h>
#include<string.h>
#define LEN 100005
typedef struct pp {
char name[100];
int i;
} P;
P Q[100];
int head, tail, n;
void enqueue(P x){
Q[tail] = x;
tail = (tail + 1) % LEN;
}
P dequeue(){
P x = Q[head];
head = (head + 1) % LEN;
return x;
}
int min(int a, int b){
ret... | main.c: In function 'main':
main.c:36:26: error: 'P' {aka 'struct pp'} has no member named 't'
36 | scanf("%d", &Q[i].t);
| ^
main.c:44:21: error: 'P' {aka 'struct pp'} has no member named 't'
44 | c = min(q, u.t);
| ^
main.c:45:10: error: '... |
s091833195 | p02264 | C | #include<stdio.h>
#include<string.h>
#define LEN 100005
typedef struct {
char name[100];
int i;
} P;
P Q[100];
int head, tail, n;
void enqueue(P x){
Q[tail] = x;
tail = (tail + 1) % LEN;
}
P dequeue(){
P x = Q[head];
head = (head + 1) % LEN;
return x;
}
int min(int a, int b){
return... | main.c: In function 'main':
main.c:36:26: error: 'P' has no member named 't'
36 | scanf("%d", &Q[i].t);
| ^
main.c:44:21: error: 'P' has no member named 't'
44 | c = min(q, u.t);
| ^
main.c:45:10: error: 'P' has no member named 't'
45 | ... |
s293632261 | p02264 | C | #include<stdio.h>
#include<string.h>
#define LEN 100005
typedef struct {
char name[100];
int t;
} P;
P Q[100];
int head, tail, n;
void enqueue(P x){
Q[tail] = x;
tail = (tail + 1) % LEN;
}
P dequeue(){
P x = Q[head];
head = (head + 1) % LEN;
return x;
}
int min(int a, int b){
return... | main.c: In function 'main':
main.c:52:13: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
52 | print("%s %d\n", u.name, elaps);
| ^~~~~
| printf
|
s413900794 | p02264 | C | #include<stdio.h>
#include<string.h>
#define LEN 100005
typedef struct {
char name[100];
int t;
} P;
P Q[100];
int head, tail, n;
void enqueue(P x){
Q[tail] = x;
tail = (tail + 1) % LEN;
}
P dequeue(){
P x = Q[head];
head = (head + 1) % LEN;
return x;
}
int min(int a, int b){
return... | main.c: In function 'main':
main.c:39:1: error: stray '\343' in program
39 | <U+3000><U+3000>head = 0;
| ^~~~~~~~
main.c:39:3: error: stray '\343' in program
39 | <U+3000><U+3000>head = 0;
| ^~~~~~~~
main.c:42:1: error: stray '\343' in program
42 | <U+3000><U+3000>while(head != tail){
... |
s248585088 | p02264 | C | #include<stdio.h>
#include<string.h>
#define LEN 100005
typedef struct {
char name[100];
int t;
} P;
P Q[100];
int head, tail, n;
void enqueue(P x){
Q[tail] = x;
tail = (tail + 1) % LEN;
}
P dequeue(){
P x = Q[head];
head = (head + 1) % LEN;
return x;
}
int min(int a, int b){
return... | main.c: In function 'main':
main.c:39:1: error: stray '\343' in program
39 | <U+3000><U+3000>head = 0;
| ^~~~~~~~
main.c:39:3: error: stray '\343' in program
39 | <U+3000><U+3000>head = 0;
| ^~~~~~~~
main.c:42:1: error: stray '\343' in program
42 | <U+3000><U+3000>while(head != tail){
... |
s320484381 | p02264 | C | #include<stdio.h>
#include<string.h>
#define LEN 100005
typedef struct {
char name[100];
int t;
} P;
P Q[100];
int head, tail, n;
void enqueue(P x){
Q[tail] = x;
tail = (tail + 1) % LEN;
}
P dequeue(){
P x = Q[head];
head = (head + 1) % LEN;
return x;
}
int min(int a, int b){
return... | main.c: In function 'main':
main.c:39:1: error: stray '\343' in program
39 | <U+3000><U+3000>head = 0;
| ^~~~~~~~
main.c:39:3: error: stray '\343' in program
39 | <U+3000><U+3000>head = 0;
| ^~~~~~~~
main.c:42:1: error: stray '\343' in program
42 | <U+3000><U+3000>while(head != tail){
... |
s540257084 | p02264 | C | #include<stdio.h>
#include<string.h>
#define LEN 100005
typedef struct {
char name[100];
int t;
} P;
P Q[100];
int head, tail, n;
void enqueue(P x){
Q[tail] = x;
tail = (tail + 1) % LEN;
}
P dequeue(){
P x = Q[head];
head = (head + 1) % LEN;
return x;
}
int min(int a, int b){
return... | main.c: In function 'main':
main.c:39:1: error: stray '\343' in program
39 | <U+3000><U+3000>head = 0;
| ^~~~~~~~
main.c:39:3: error: stray '\343' in program
39 | <U+3000><U+3000>head = 0;
| ^~~~~~~~
main.c:42:1: error: stray '\343' in program
42 | <U+3000><U+3000>while(head != tail){
... |
s331657675 | p02264 | C | #include<stdio.h>
#include<string.h>
#define LEN 100005
typedef struct {
char name[100];
int t;
} P;
P Q[100];
int head, tail, n;
void enqueue(P x){
Q[tail] = x;
tail = (tail + 1) % LEN;
}
P dequeue(){
P x = Q[head];
head = (head + 1) % LEN;
return x;
}
int min(int a, int b){
return... | main.c: In function 'main':
main.c:39:1: error: stray '\343' in program
39 | <U+3000><U+3000>head = 0;
| ^~~~~~~~
main.c:39:3: error: stray '\343' in program
39 | <U+3000><U+3000>head = 0;
| ^~~~~~~~
main.c:40:1: error: stray '\343' in program
40 | <U+3000><U+3000>tail = n + 1;
| ^~~~... |
s933345667 | p02264 | C | #include<stdio.h>
#include<string.h>
#define LEN 100005
typedef struct pp {
char name[100];
int t;
} P;
P Q[LEN];
int head, tail, n;
void enqueue(P x){
Q[tail] = x;
tail = (tail + 1) % LEN;
}
P dequeue(){
P x = Q[head];
head = (head + 1) % LEN;
return x;
}
int min(int a, int b){
ret... | main.c: In function 'main':
main.c:39:1: error: stray '\343' in program
39 | <U+3000><U+3000>head = 0;
| ^~~~~~~~
main.c:39:3: error: stray '\343' in program
39 | <U+3000><U+3000>head = 0;
| ^~~~~~~~
main.c:40:1: error: stray '\343' in program
40 | <U+3000><U+3000>tail = n + 1;
| ^~~~... |
s198760617 | p02264 | C | #include<stdio.h>
#include<string.h>
#define LEN 100005
typedef struct {
char name[100];
int t;
} P;
P Q[LEN];
int head, tail, n;
void enqueue(P x){
Q[tail] = x;
tail = (tail + 1) % LEN;
}
P dequeue(){
P x = Q[head];
head = (head + 1) % LEN;
return x;
}
int min(in... | main.c: In function 'main':
main.c:74:1: error: stray '\343' in program
74 | <U+3000><U+3000>head = 0;
| ^~~~~~~~
main.c:74:3: error: stray '\343' in program
74 | <U+3000><U+3000>head = 0;
| ^~~~~~~~
main.c:80:1: error: stray '\343' in program
80 | <U+3000><U+3000>while(head != tail){
... |
s471910809 | p02264 | C | #include<stdio.h>
#include<string.h>
#define LEN 100005
typedef struct {
char name[100];
int t;
} P;
P Q[LEN];
int head, tail, n;
void enqueue(P x){
Q[tail] = x;
tail = (tail + 1) % LEN;
}
P dequeue(){
P x = Q[head];
head = (head + 1) % LEN;
return x;
}
int min(in... | main.c: In function 'main':
main.c:74:1: error: stray '\343' in program
74 | <U+3000><U+3000>head = 1;
| ^~~~~~~~
main.c:74:3: error: stray '\343' in program
74 | <U+3000><U+3000>head = 1;
| ^~~~~~~~
main.c:80:1: error: stray '\343' in program
80 | <U+3000><U+3000>while(head != tail){
... |
s273168806 | p02264 | C | #include<stdio.h>
#include<string.h>
#define LEN 100005
typedef struct {
char name[100];
int t;
} P;
P Q[LEN];
int head, tail, n;
void enqueue(P x){
Q[tail] = x;
tail = (tail + 1) % LEN;
}
P dequeue(){
P x = Q[head];
head = (head + 1) % LEN;
return x;
}
int min(in... | main.c: In function 'main':
main.c:74:1: error: stray '\343' in program
74 | <U+3000><U+3000>int head = 1;
| ^~~~~~~~
main.c:74:3: error: stray '\343' in program
74 | <U+3000><U+3000>int head = 1;
| ^~~~~~~~
main.c:77:1: error: stray '\343' in program
77 | <U+3000><U+3000>while(head != tail... |
s882485232 | p02264 | C | #include<stdio.h>
#include<string.h>
#define LEN 100005
typedef struct {
char name[100];
int t;
} P;
P Q[LEN];
int head, tail, n;
void enqueue(P x){
Q[tail] = x;
tail = (tail + 1) % LEN;
}
P dequeue(){
P x = Q[head];
head = (head + 1) % LEN;
return x;
}
int min(in... | main.c: In function 'main':
main.c:67:1: error: stray '\343' in program
67 | <U+3000><U+3000>int head = 0;
| ^~~~~~~~
main.c:67:3: error: stray '\343' in program
67 | <U+3000><U+3000>int head = 0;
| ^~~~~~~~
main.c:70:1: error: stray '\343' in program
70 | <U+3000><U+3000>while(head != tail... |
s167118107 | p02264 | C | #include<stdio.h>
#include<string.h>
#define LEN 100005
typedef struct pp {
char name[100];
int t;
} P;
P Q[LEN];
int head, tail, n;
void enqueue(P x){
Q[tail] = x;
tail = (tail + 1) % LEN;
}
P dequeue(){
P x = Q[head];
head = (head + 1) % LEN;
return x;
}
int min(int a, int b){
re... | main.c: In function 'main':
main.c:40:1: error: stray '\343' in program
40 | <U+3000><U+3000>head = 0; tail = n + 1;
| ^~~~~~~~
main.c:40:3: error: stray '\343' in program
40 | <U+3000><U+3000>head = 0; tail = n + 1;
| ^~~~~~~~
main.c:42:1: error: stray '\343' in program
42 | <U+3000><U+300... |
s457294566 | p02264 | C | #include<stdio.h>
#include<string.h>
#define LEN 100005
typedef struct pp {
char name[100];
int t;
} P;
P Q[LEN];
int head, tail, n;
void enqueue(P x){
Q[tail] = x;
tail = (tail + 1) % LEN;
}
P dequeue(){
P x = Q[head];
head = (head + 1) % LEN;
return x;
}
int min(int a, int b){
re... | main.c: In function 'main':
main.c:40:1: error: stray '\343' in program
40 | <U+3000><U+3000>head = 0; tail = n + 1;
| ^~~~~~~~
main.c:40:3: error: stray '\343' in program
40 | <U+3000><U+3000>head = 0; tail = n + 1;
| ^~~~~~~~
main.c:42:1: error: stray '\343' in program
42 | <U+3000><U+300... |
s743907237 | p02264 | C | #include<stdio.h>
#include<string.h>
#define LEN 100000;
typedef struct pp{
char name[100];
int t;
}P;
P Q[LEN];
int head,tail,n;
void enqueue(P x){
Q[tail] = x;
tail = (tail+1)%LEN;
}
P dequeue(){
P x = Q[head];
head = (head+1)%LEN;
return x;
}
int min(int a,int b){
return a<b?a:b;
}
... | main.c:3:19: error: expected ']' before ';' token
3 | #define LEN 100000;
| ^
main.c:10:5: note: in expansion of macro 'LEN'
10 | P Q[LEN];
| ^~~
main.c: In function 'enqueue':
main.c:14:5: error: 'Q' undeclared (first use in this function)
14 | Q[tail] = x;
| ^... |
s272594014 | p02264 | C | #include<stdio.h>
#include<string.h>
#define LEN 100005;
typedef struct pp{
char name[100];
int t;
}P;
P Q[LEN];
int head,tail,n;
void enqueue(P x){
Q[tail] = x;
tail = (tail+1)%LEN;
}
P dequeue(){
P x = Q[head];
head = (head+1)%LEN;
return x;
}
int min(int a,int b){
return a<b?a:b;
}
... | main.c:3:19: error: expected ']' before ';' token
3 | #define LEN 100005;
| ^
main.c:10:5: note: in expansion of macro 'LEN'
10 | P Q[LEN];
| ^~~
main.c: In function 'enqueue':
main.c:14:5: error: 'Q' undeclared (first use in this function)
14 | Q[tail] = x;
| ^... |
s133822930 | p02264 | C | #include<stdio.h>
#include<string.h>
struct queues {
char name[11];
int time;
int next;
};
int main( void )
{
struct queues ps[100001];
int i;
int n,q;
int cnt,cur,pre;
int time,res;
int head;
scanf( "%d%d", &n, &q );
head=0;
for( i=0; i<n; i++ ) {
scanf( "%s%d", ps[i].name, &ps[i].time );
ps[i].pr... | main.c: In function 'main':
main.c:23:22: error: 'struct queues' has no member named 'pre'
23 | ps[i].pre=i-1;
| ^
|
s811802091 | p02264 | C | #include<stdio.h>
#include<string.h>
#define LEN 10000
typedef struct pp{
char name[100];
int t;
}P;
int main(){
int n, i, q
long long int sum =0;
P Q[LEN+1];
scanf("%d %d", &n, &q);
for ( i = 1; i <= n; i++){
scanf("%s", Q[i].name);
scanf("%d", &Q[i].t);
}
i = 1;
while(1){
if(i ==... | main.c: In function 'main':
main.c:12:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'long'
12 | long long int sum =0;
| ^~~~
main.c:14:23: error: 'q' undeclared (first use in this function)
14 | scanf("%d %d", &n, &q);
| ^
main.c:14:23: note: each undecl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.