submission_id
stringlengths 10
10
| problem_id
stringlengths 6
6
| language
stringclasses 3
values | code
stringlengths 1
522k
| compiler_output
stringlengths 43
10.2k
|
|---|---|---|---|---|
s795936966
|
p00000
|
C
|
#include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
char s[1111];
int num[10];
void fj(int x)
{
int i;
for(i = 2; i * i <= x; i++) while(x % i == 0)
{
num[i]++;
x /= i;
}
if(x > 1) num[x]++;
}
bool can_f(int x)
{
int i;
for(i = 2; i * i <= x; i++)
{
int k = 0;
while(x % i == 0)
{
x /= i;
k++;
}
if(num[i] < k) return false;
}
if(x > 1) if(num[x] < 1) return false;
return true;
}
void f(int x)
{
int i;
for(i = 2; i * i <= x; i++) while(x % i == 0)
{
num[i]--;
x /= i;
}
if(x > 1) num[x]--;
}
int main()
{
int T;
scanf("%d", &T);
while(T--)
{
memset(num, 0, sizeof(num));
scanf("%s", s);
int len = strlen(s);
if(len == 1)
{
printf("1%s\n", s);
continue;
}
fj(s[len - 1] - '0');
int i, j, minp, t, m;
j = -1;
for(i = 0; i < len; i++) if(s[i] == '0')
{
j = i;
break;
}
if(j >= 0)
{
for(i = len - 1; i >= 0; i--) if(j != len - 1 || i != len - 1)
{
if(s[i] < '9')
{
s[i]++;
break;
}
}
if(i < 0) printf("1");
for(i++; i < len; i++) s[i] = '0';
printf("%s\n");
continue;
}
for(minp = 2; minp < 10; minp++) if(num[minp] > 0) break;
for(i = len - 2; i >= 0; i--)
{
for(minp = 2; minp < 10; minp++) if(num[minp] > 0) break;
int a = s[i] - '0';
for(m = 2; m < 10; m++) if(m > a && num[m] > 0) break;
t = min(a * minp, m);
if(t < 10)
{
s[i] = t + '0';
fj(a);
f(t);
break;
}
fj(s[i] - '0');
}
if(i < 0) printf("1");
int k = i;
for(i = len - 1; i > k; i--)
{
for(j = 9; j > 0; j--)
{
if(can_f(j))
{
f(j);
s[i] = j + '0';
break;
}
}
}
printf("%s\n", s);
}
return 0;
}
|
main.c:1:10: fatal error: cstdio: No such file or directory
1 | #include <cstdio>
| ^~~~~~~~
compilation terminated.
|
s915307368
|
p00000
|
C
|
//C headers
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <limits.h>
#include <ctype.h>
#include <assert.h>
//cpp headers
#include <iostream>
#include <iomanip>
#include <sstream>
#include <algorithm>
#include <vector>
#include <queue>
#include <set>
#include <map>
#include <stack>
#include <deque>
#include <list>
#include <bits/stdc++.h>
//#include <bitset>
using namespace std;
//typedefs
typedef long long ll;
typedef unsigned long long ull;
typedef pair<ll, ll> pll;
typedef pair<int, int> ii;
typedef vector<int> vi;
typedef vector<ii> vii;
typedef char C;
typedef string S;
//some constants
const double PI = 2.0 * acos(0.0);
const double E = exp(1);
//always useful
#define gcd(a,b) __gcd(a,b)
#define clr(a) memset(a, 0, sizeof(a))
#define mem(a,b) memset(a, b, sizeof(a))
#define REP(i, a, n) for(int i = a; i < n; ++i)
#define RREP(i, a, n) for(int i = a; i > n; --i)
#define REPE(i, a, n) for(int i = a; i <= n; ++i)
#define RREPE(i, a, n) for(int i = a; i >= n; --i)
//useful with graphs
#define fr first
#define sc second
#define pb push_back
#define pp pop_back
#define mp make_pair
#define IT iterator
#define all(v) v.begin(), v.end()
#define ssort(v) stable_sort(v.begin(), v.end())
#define LB(v, x) lower_bound(v.begin(), v.end(), x)
#define UB(v, x) upper_bound(v.begin(), v.end(), x)
#define loop(i, x) for(__typeof((x).begin()) i=(x.begin()); i!=(x).end(); ++i)
#define rloop(i, x) for(__typeof((x).rbegin()) i=(x.rbegin()); i!=(x).rend(); ++i)
#define sz(a) (int)a.size()
#define sf scanf
#define pf printf
#define NL pf("\n")
#define sf1(a) scanf("%d",&a)
#define sf2(a,b) scanf("%d %d",&a,&b)
#define sf3(a,b,c) scanf("%d %d %d", &a,&b, &c);
#define sf4(a,b,c,d) scanf("%d%d%d%d",&a,&b,&c,&d);
#define oo 1000000000
#define MOD 1000007
#define M 100099
//ll extGcd(ll a, ll b, ll& x, ll& y){if (b == 0){x = 1;y = 0;return a;}else{int g = extGcd(b, a % b, y, x);y -= a / b * x;return g;}}
//ll modInv(ll a, ll m){ll x, y; extGcd(a, m, x, y); x %= m; while (x < 0){x += m;} return x;}
//ll bigmod(ll a,ll b,ll m){if(b == 0) return 1%m;ll x = bigmod(a,b/2,m);x = (x * x) % m;if(b % 2 == 1) x = (x * a) % m;return x;}
//ll BigMod(ll B,ll P,ll M){ ll R=1%M; while(P>0) {if(P%2==1){R=(R*B)%M;}P/=2;B=(B*B)%M;} ret urn R;} /// (B^P)%M
//template <class T> inline T gcd(T a, T b){if(b == 0) return a;return gcd(b,a%b);}
//template <class T> inline T lcm(T a, T b){return (a/gcd(a,b)) * b;}
//int x[] = {0,0,-1,1};//4-way
//int y[] = {-1,1,0,0};//4-way
//ll x[] = {-1,-1,-1,0,0,1,1,1};//8-way
//ll y[] = {-1,0,1,-1,1,-1,0,1};//8-way
//inline long FastMax(long x, long y) { return (((y-x)>>(32-1))&(x^y))^y; }
//inline long FastMin(long x, long y) { return (((y-x)>>(32-1))&(x^y))^x; }
//inline long FastMin(long x, long y) { return (((y-x)>>(32-1))&(x^y))^x; }
//#include<conio.h>
//#define wait getch()
int cases = 1;
int main()
{
int test;
return 0;
}
|
main.c:10:10: fatal error: iostream: No such file or directory
10 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
s272881347
|
p00000
|
C
|
#include<stdio.h>
int main(void)
{
int a,b;
for(a=1;a<10;a++)
{
for(b=1;b<10;b++)
{
printf("%dx%d=%d",a,b,a*b);
}
return 0;
}
|
main.c: In function 'main':
main.c:14:1: error: expected declaration or statement at end of input
14 | }
| ^
|
s679528479
|
p00000
|
C
|
#include<stdio.h>
int main(void){
|
main.c: In function 'main':
main.c:3:1: error: expected declaration or statement at end of input
3 | int main(void){
| ^~~
|
s899144733
|
p00000
|
C
|
#include<stdio.h>
int main(void){
|
main.c: In function 'main':
main.c:3:1: error: expected declaration or statement at end of input
3 | int main(void){
| ^~~
|
s168237490
|
p00000
|
C
|
***********************************************************/
/* Clear function: reset and initialize the population */
/***********************************************************/
void clear()
{
int i,j;
for (i = 0; i < NVARS; i++)
{
for (j = 0; j <= POPSIZE; j++)
{
population[j].fitness = 0;
population[j].rfitness = 0;
population[j].cfitness = 0;
population[j].gene[i] = randval(population[j].lower[i],
population[j].upper[i]);
}
}
}
|
main.c:1:60: error: expected identifier or '(' before '/' token
1 | ***********************************************************/
| ^
|
s510728572
|
p00000
|
C
|
1x1=1
1x2=2
.
.
9x8=72
9x9=81
1x1=1
1x2=2
.
.
9x8=72
9x9=81
1x1=1
1x2=2
.
.
9x8=72
9x9=81
|
main.c:1:1: error: invalid suffix "x1" on integer constant
1 | 1x1=1
| ^~~
main.c:1:1: error: expected identifier or '(' before numeric constant
main.c:2:1: error: invalid suffix "x2" on integer constant
2 | 1x2=2
| ^~~
main.c:5:1: error: invalid suffix "x8" on integer constant
5 | 9x8=72
| ^~~
main.c:6:1: error: invalid suffix "x9" on integer constant
6 | 9x9=81
| ^~~
main.c:7:1: error: invalid suffix "x1" on integer constant
7 | 1x1=1
| ^~~
main.c:8:1: error: invalid suffix "x2" on integer constant
8 | 1x2=2
| ^~~
main.c:11:1: error: invalid suffix "x8" on integer constant
11 | 9x8=72
| ^~~
main.c:12:1: error: invalid suffix "x9" on integer constant
12 | 9x9=81
| ^~~
main.c:13:1: error: invalid suffix "x1" on integer constant
13 | 1x1=1
| ^~~
main.c:14:1: error: invalid suffix "x2" on integer constant
14 | 1x2=2
| ^~~
main.c:17:1: error: invalid suffix "x8" on integer constant
17 | 9x8=72
| ^~~
main.c:18:1: error: invalid suffix "x9" on integer constant
18 | 9x9=81
| ^~~
|
s007321469
|
p00000
|
C
|
#include <stdio.h>
int main()
{
for(i=1;i<=9;i++)
for(j=1;j<=9;j++)
printf("%d*%d=%d,i,j,i*j");
return 0;
}
|
main.c: In function 'main':
main.c:4:5: error: 'i' undeclared (first use in this function)
4 | for(i=1;i<=9;i++)
| ^
main.c:4:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:5: error: 'j' undeclared (first use in this function)
5 | for(j=1;j<=9;j++)
| ^
|
s442970125
|
p00000
|
C
|
荳雁捉荳サ隕∝惠陦・莉・蜑咲噪鬚倡岼蜥悟姐CF逧ДP,證よ慮豐。譛牙ュヲ譁ー逧?ョ玲ウ?
豈碑オ帶ッ碑セ?、壼黄菴咏噪鬚倡岼霑俶怏蠕亥、壽イ。譛牙所譌カ逧?。・謗?莉・蜷手。・逧??蠎ヲ霑倩ヲ∝刈蠢ォ.
譛?ソ大?蝨コ豈碑オ帑クュ,謌台サャ髦滉シ咲噪驟榊粋荳榊、溷・ス.
1:譛画慮蛟吩シ壼惠荳?%鬚倡岼荳?蝗?クコ荳?コ帷サ?鰍豬ェ雍ケ蠕磯柄逧?慮髣エ,隨ャ6蝨コ扈?弌襍侫鬚伜屏荳コ闌?峩蠑?ー丈コ?ク?せ,蝨ィ隨ャ荳?ャ。謠蝉コ、霑?コ?ソォ蜊贋クェ蟆乗慮謇榊書邇ー.
2:蟇ケ莠取汾莠幃「倡岼螟ェ霑?ーィ諷惹コ?隨ャ8蝨コ扈?弌襍帑ク?峩莉・荳コH鬚倡噪螟肴揩蠎ヲ螟ェ鬮伜柱譌カ髣エ蛻??譛蛾琉鬚伜ーア豐。譛画署莠、,莠句ョ樔ク贋ク崎ヲ∽サ?ケ井シ伜喧驛ス蜿ッ莉・.霑俶怏荳?クェ鬚倡岼WW扈吩コ?クェ霑樊?遞矩?TLE逧?セ句ュ蝉ケ句錘,謌台サャ蟆ア謾セ蠑?コ?蜈カ螳樔ケ滓弍蠎比クコ謨ー謐ョ豌エ蜿ッ莉・髫丈セソ霑?噪.豈碑オ帷噪扈城ェ瑚ソ俶弍荳榊、?
|
main.c:1:13: error: stray '\342' in program
1 | <U+8373><U+96C1><U+6349><U+8373><U+30B5><U+9695><U+221D><U+60E0><U+9666><U+30FB><U+8389><U+30FB><U+8711><U+54B2><U+566A><U+9B1A><U+5021><U+5CBC><U+8725><U+609F><U+59D0>CF<U+9027><U+0414>P,<U+8B49><U+3088><U+616E><U+8C50><U+3002><U+8B5B><U+7259><U+30E5><U+30F2><U+8B41><U+30FC><U+9027>?<U+30E7><U+73B2><U+30A6>?
| ^~~~~~~~
main.c:1:1: error: unknown type name '\U00008373\U000096c1\U00006349\U00008373\U000030b5\U00009695'
1 | 荳雁捉荳サ隕∝惠陦・莉・蜑咲噪鬚倡岼蜥悟姐CF逧ДP,證よ慮豐。譛牙ュヲ譁ー逧?ョ玲ウ?
| ^~~~~~~~~~~~
main.c:1:57: error: stray '\343' in program
1 | <U+8373><U+96C1><U+6349><U+8373><U+30B5><U+9695><U+221D><U+60E0><U+9666><U+30FB><U+8389><U+30FB><U+8711><U+54B2><U+566A><U+9B1A><U+5021><U+5CBC><U+8725><U+609F><U+59D0>CF<U+9027><U+0414>P,<U+8B49><U+3088><U+616E><U+8C50><U+3002><U+8B5B><U+7259><U+30E5><U+30F2><U+8B41><U+30FC><U+9027>?<U+30E7><U+73B2><U+30A6>?
| ^~~~~~~~
main.c:1:59: error: expected '=', ',', ';', 'asm' or '__attribute__' before '\U00008b5b\U00007259\U000030e5\U000030f2\U00008b41\U000030fc\U00009027'
1 | 荳雁捉荳サ隕∝惠陦・莉・蜑咲噪鬚倡岼蜥悟姐CF逧ДP,證よ慮豐。譛牙ュヲ譁ー逧?ョ玲ウ?
| ^~~~~~~~~~~~~~
main.c:2:16: error: stray '\343' in program
2 | <U+8C48><U+7891><U+30AA><U+5E36><U+30C3><U+7891><U+30BB>?<U+3001><U+58FC><U+9EC4><U+83F4><U+548F><U+566A><U+9B1A><U+5021><U+5CBC><U+9711><U+4FF6><U+600F><U+8815><U+4EA5><U+3001><U+58FD><U+30A4><U+3002><U+8B5B><U+7259><U+6240><U+8B4C><U+30AB><U+9027>?<U+3002><U+30FB><U+8B17>?<U+8389><U+30FB><U+8737><U+624B><U+3002><U+30FB><U+9027>??<U+880E><U+30F2><U+9711><U+5029><U+30F2><U+221D><U+5208><U+8822><U+30A9>.
| ^~~~~~~~
main.c:2:44: error: stray '\343' in program
2 | <U+8C48><U+7891><U+30AA><U+5E36><U+30C3><U+7891><U+30BB>?<U+3001><U+58FC><U+9EC4><U+83F4><U+548F><U+566A><U+9B1A><U+5021><U+5CBC><U+9711><U+4FF6><U+600F><U+8815><U+4EA5><U+3001><U+58FD><U+30A4><U+3002><U+8B5B><U+7259><U+6240><U+8B4C><U+30AB><U+9027>?<U+3002><U+30FB><U+8B17>?<U+8389><U+30FB><U+8737><U+624B><U+3002><U+30FB><U+9027>??<U+880E><U+30F2><U+9711><U+5029><U+30F2><U+221D><U+5208><U+8822><U+30A9>.
| ^~~~~~~~
main.c:2:50: error: stray '\343' in program
2 | <U+8C48><U+7891><U+30AA><U+5E36><U+30C3><U+7891><U+30BB>?<U+3001><U+58FC><U+9EC4><U+83F4><U+548F><U+566A><U+9B1A><U+5021><U+5CBC><U+9711><U+4FF6><U+600F><U+8815><U+4EA5><U+3001><U+58FD><U+30A4><U+3002><U+8B5B><U+7259><U+6240><U+8B4C><U+30AB><U+9027>?<U+3002><U+30FB><U+8B17>?<U+8389><U+30FB><U+8737><U+624B><U+3002><U+30FB><U+9027>??<U+880E><U+30F2><U+9711><U+5029><U+30F2><U+221D><U+5208><U+8822><U+30A9>.
| ^~~~~~~~
main.c:2:65: error: stray '\343' in program
2 | <U+8C48><U+7891><U+30AA><U+5E36><U+30C3><U+7891><U+30BB>?<U+3001><U+58FC><U+9EC4><U+83F4><U+548F><U+566A><U+9B1A><U+5021><U+5CBC><U+9711><U+4FF6><U+600F><U+8815><U+4EA5><U+3001><U+58FD><U+30A4><U+3002><U+8B5B><U+7259><U+6240><U+8B4C><U+30AB><U+9027>?<U+3002><U+30FB><U+8B17>?<U+8389><U+30FB><U+8737><U+624B><U+3002><U+30FB><U+9027>??<U+880E><U+30F2><U+9711><U+5029><U+30F2><U+221D><U+5208><U+8822><U+30A9>.
| ^~~~~~~~
main.c:2:80: error: stray '\343' in program
2 | <U+8C48><U+7891><U+30AA><U+5E36><U+30C3><U+7891><U+30BB>?<U+3001><U+58FC><U+9EC4><U+83F4><U+548F><U+566A><U+9B1A><U+5021><U+5CBC><U+9711><U+4FF6><U+600F><U+8815><U+4EA5><U+3001><U+58FD><U+30A4><U+3002><U+8B5B><U+7259><U+6240><U+8B4C><U+30AB><U+9027>?<U+3002><U+30FB><U+8B17>?<U+8389><U+30FB><U+8737><U+624B><U+3002><U+30FB><U+9027>??<U+880E><U+30F2><U+9711><U+5029><U+30F2><U+221D><U+5208><U+8822><U+30A9>.
| ^~~~~~~~
main.c:2:98: error: stray '\342' in program
2 | <U+8C48><U+7891><U+30AA><U+5E36><U+30C3><U+7891><U+30BB>?<U+3001><U+58FC><U+9EC4><U+83F4><U+548F><U+566A><U+9B1A><U+5021><U+5CBC><U+9711><U+4FF6><U+600F><U+8815><U+4EA5><U+3001><U+58FD><U+30A4><U+3002><U+8B5B><U+7259><U+6240><U+8B4C><U+30AB><U+9027>?<U+3002><U+30FB><U+8B17>?<U+8389><U+30FB><U+8737><U+624B><U+3002><U+30FB><U+9027>??<U+880E><U+30F2><U+9711><U+5029><U+30F2><U+221D><U+5208><U+8822><U+30A9>.
| ^~~~~~~~
main.c:4:54: error: stray '\343' in program
4 | <U+8B5B>?<U+30BD><U+5927>?<U+8768><U+30B3><U+8C48><U+7891><U+30AA><U+5E11><U+30AF><U+30E5>,<U+8B0C><U+53F0><U+30B5><U+30E3><U+9AE6><U+6EC9><U+30B7><U+54B2><U+566A><U+9A5F><U+698A><U+7C8B><U+8373><U+698A><U+3001><U+6EB7><U+30FB><U+30B9>.
| ^~~~~~~~
main.c:6:138: error: stray '\343' in program
6 | 1:<U+8B5B><U+753B><U+616E><U+86DF><U+5429><U+30B7><U+58FC><U+60E0><U+8373>?<U+FF05><U+9B1A><U+5021><U+5CBC><U+8373>?<U+8757>?<U+30AF><U+30B3><U+8373>?<U+30B3><U+5E37><U+30B5>?<U+9C0D><U+8C6C><U+30A7><U+96CD><U+30B1><U+8815><U+78EF><U+67C4><U+9027>?<U+616E><U+9AE3><U+30A8>,<U+96A8><U+30E3>6<U+8768><U+30B3><U+6248>?<U+5F0C><U+894D><U+4FAB><U+9B1A><U+4F1C><U+5C4F><U+8373><U+30B3><U+95CC>?<U+5CE9><U+8811>?<U+30FC><U+4E08><U+30B3>?<U+30AF>?<U+305B>,<U+8768><U+30A3><U+96A8><U+30E3><U+8373>?<U+30E3><U+3002><U+8B20><U+8749><U+30B3><U+3001><U+9711>?<U+30B3>?<U+30BD><U+30A9><U+870A><U+8D0B><U+30AF><U+30A7><U+87C6><U+4E57><U+616E><U+8B07><U+698A><U+66F8><U+9087><U+30FC>.
| ^~~~~~~~
main.c:6:146: error: stray '\343' in program
6 | 1:<U+8B5B><U+753B><U+616E><U+86DF><U+5429><U+30B7><U+58FC><U+60E0><U+8373>?<U+FF05><U+9B1A><U+5021><U+5CBC><U+8373>?<U+8757>?<U+30AF><U+30B3><U+8373>?<U+30B3><U+5E37><U+30B5>?<U+9C0D><U+8C6C><U+30A7><U+96CD><U+30B1><U+8815><U+78EF><U+67C4><U+9027>?<U+616E><U+9AE3><U+30A8>,<U+96A8><U+30E3>6<U+8768><U+30B3><U+6248>?<U+5F0C><U+894D><U+4FAB><U+9B1A><U+4F1C><U+5C4F><U+8373><U+30B3><U+95CC>?<U+5CE9><U+8811>?<U+30FC><U+4E08><U+30B3>?<U+30AF>?<U+305B>,<U+8768><U+30A3><U+96A8><U+30E3><U+8373>?<U+30E3><U+3002><U+8B20><U+8749><U+30B3><U+3001><U+9711>?<U+30B3>?<U+30BD><U+30A9><U+870A><U+8D0B><U+30AF><U+30A7><U+87C6><U+4E57><U+616E><U+8B07><U+698A><U+66F8><U+9087><U+30FC>.
| ^~~~~~~~
main.c:8:17: error: stray '\343' in program
8 | 2:<U+87C7><U+30B1><U+83A0><U+53D6><U+6C7E><U+83A0><U+5E43><U+300C><U+5021><U+5CBC><U+879F><U+30A7><U+9711>?<U+30FC><U+30A3><U+8AF7><U+60F9><U+30B3>?<U+96A8><U+30E3>8<U+8768><U+30B3><U+6248>?<U+5F0C><U+894D><U+5E11><U+30AF>?<U+5CE9><U+8389><U+30FB><U+8373><U+30B3>H<U+9B1A><U+5021><U+566A><U+879F><U+80B4><U+63E9><U+880E><U+30F2><U+879F><U+30A7><U+9B2E><U+4F1C><U+67F1><U+8B4C><U+30AB><U+9AE3><U+30A8><U+86FB>??<U+8B5B><U+86FE><U+7409><U+9B1A><U+4F1C><U+30FC><U+30A2><U+8C50><U+3002><U+8B5B><U+753B><U+7F72><U+83A0><U+3001>,<U+83A0><U+53E5><U+30E7><U+6A14><U+30AF><U+8D0B><U+30AF><U+5D0E><U+30F2><U+223D><U+30B5>?<U+30B1><U+4E95><U+30B7><U+4F1C><U+55A7><U+9A5B><U+30B9><U+873F><U+30C3><U+8389><U+30FB>.<U+9711><U+4FF6><U+600F><U+8373>?<U+30AF><U+30A7><U+9B1A><U+5021><U+5CBC>WW<U+6248><U+5429><U+30B3>?<U+30AF><U+30A7><U+9711><U+6A0A>?<U+905E><U+77E9>?TLE<U+9027>?<U+30BB><U+53E5><U+30E5><U+8749><U+30B1><U+53E5><U+9318>,<U+8B0C><U+53F0><U+30B5><U+30E3><U+87C6><U+30A2><U+8B3E><U+30BB><U+8811>?<U+30B3>?<U+8708><U+30AB><U+87B3><U+6A14><U+30B1><U+6ED3><U+5F0D><U+880E><U+6BD4><U+30AF><U+30B3><U+8B28><U+30FC><U+8B10><U+30E7><U+8C4C><U+30A8><U+873F><U+30C3><U+8389><U+30FB><U+9AEB><U+4E08><U+30BB><U+30BD><U+9711>?<U+566A>.<U+8C48><U+7891><U+30AA><U+5E37><U+566A><U+6248><U+57CE><U+30A7><U+745A><U+30BD><U+4FF6><U+5F0D><U+8373><U+698A><U+3
|
s188682007
|
p00000
|
C
|
#include <cstdio>
#include <iostream>
#include <algorithm>
using namespace std;
const int N = 1009;
int mabs(int x)
{
if(x > 0) return x;
return -x;
}
struct xiang
{
int xs[1001];
int n;
void print()
{
printf("(");
for(int i = n - 1; i >= 0; i--)
{
if(xs[i] == 0) continue;
if(i < n - 1)
{
if(xs[i] < 0) printf("-");
else printf("+");
}
if(i == 1)
{
printf("x");
continue;
}
if(i == 0)
{
printf("%d", mabs(xs[i]));
continue;
}
if(xs[i] == 1 || xs[i] == -1) printf("x^%d", i);
else printf("%dx^%d", mabs(xs[i]), i);
}
printf(")");
}
}x[222];
int isp[1111];
int xn;
bool cmp(const xiang &a, const xiang &b)
{
if(a.n != b.n) return a.n < b.n;
int i;
for(i = a.n - 1; i >= 0; i--)
{
if(a.xs[i] != b.xs[i]) return a.xs[i] < b.xs[i];
}
return a.n < b.n;
}
void dfs(int t, int n, int k)
{
printf("%d %d %d\n", t, n, k);
int i;
if(k > 0)
{
if((n & 1) == 0)
{
x[xn].n = n * t + 1;
x[xn].xs[n * t] = 1;
x[xn].xs[0] = 1;
xn++;
return;
}
dfs(1, t, -1);
x[xn].n = n * t + 1;
for(i = x[xn].n - 1; i >= 0; i -= t)
{
x[xn].xs[i] = k;
k = -k;
}
xn++;
return;
}
if(!isp[n])
{
dfs(1, t, -1);
xn++;
x[xn].n = n;
for(i = x[xn].n - 1; i >= 0; i--) x[xn].xs[i] = 1;
xn++;
return;
}
for(i = 2; i < n; i++) if(n % i == 0)
{
n /= i;
dfs(i, n, -1);
if(i == 2) dfs(i, n, 1);
return;
}
}
int main()
{
int n, i, j;
for(i = 2; i * i < N; i++) if(!isp[i]) for(j = i * i; j < N; j += i) isp[j] = 1;
while(scanf("%d", &n) != EOF)
{
if(n == 0) break;
if(n == 1)
{
puts("x-1");
continue;
}
xn = 0;
dfs(1, n, -1);
sort(x, x + xn, cmp);
for(i = 0; i < xn; i++) x[i].print();
printf("\n");
}
return 0;
}
|
main.c:1:10: fatal error: cstdio: No such file or directory
1 | #include <cstdio>
| ^~~~~~~~
compilation terminated.
|
s689283395
|
p00000
|
C
|
#include <cstdio>
#include <cstring>
#include <vector>
using namespace std;
int n, q;
#define N 100005
vector<int> e[N], w[N];
vector< pair<int,int> > g[N];
int p[N], f[N];
#define pb push_back
typedef long long ll;
ll d[N], ans[N];
int getf(int k){
return (f[k] == k) ? k : f[k] = getf(f[k]);
}
void dfs(int k,int fa){
for (int i=0;i<e[k].size();i++){
if (e[k][i] == fa) continue;
d[e[k][i]] = d[k] + w[k][i];
dfs(e[k][i],k);
}
}
void gao(int k){
p[k] = 1;
for (int i=0;i<g[k].size();i++){
int x = g[k][i].first, y = g[k][i].second;
if (p[x] == 0) continue;
int fa = getf(x);
ans[y] = d[k] + d[x] - d[fa];
}
for (int i=0;i<e[k].size();i++){
if (p[e[k][i]]) continue;
gao(e[k][i]);
f[e[k][i]] = k;
}
}
int main(){
freopen("in","r",stdin);
while (scanf("%d",&n) != EOF && n > 0){
int a, b;
for (int i=1;i<n;i++){
scanf("%d%d",&a,&b);
e[i].pb(a); w[i].pb(b);
e[a].pb(i); w[a].pb(b);
}
scanf("%d",&q);
for (int i=0;i<q;i++){
scanf("%d%d",&a,&b);
g[a].pb(make_pair(b,i));
g[b].pb(make_pair(a,i));
}
dfs(0,-1);
for (int i=0;i<n;i++){
printf("%lld\n",d[i]);
}
memset(p,0,sizeof(p));
for (int i=0;i<n;i++){
f[i] = i;
}
for (int i=0;i<q;i++){
printf("%lld",ans[i]);
if (i != q - 1){
printf(" ");
} else {
printf("\n");
}
}
}
return 0;
}
|
main.c:1:10: fatal error: cstdio: No such file or directory
1 | #include <cstdio>
| ^~~~~~~~
compilation terminated.
|
s929801418
|
p00000
|
C
|
#include<stdio.h>
int main(void)
{
int i;
int j;
for(i = 1;i <= 9;i++){
for(j = 0;j <= 9;j++){
printf("%dx%d=%d\n", i, j, i * j);
}
}
return (0);
}s
|
main.c:15:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
15 | }s
| ^
|
s956154426
|
p00000
|
C
|
#include <stdio.h>
int d[1000000];
int main(void)
{
int n, m, p, pp, ppp;
int i, j, x, y;
int index, work, an1, an2, yen, yen2, yen3;
int min, max, mid;
int xx, yy;
scanf("%d %d %d", &n, &m, &p);
for (i = 0; i < m; i++){
scanf("%d", &d[i]);
}
for (an1 = 0; an1 < m; an1++) {
index = an1;
for (an2 = an1 + 1; an2 < m; an2++) {
if (d[an2] < d[index]) {
index = an2;
}
}
work = d[an1];
d[an1] = d[index];
d[index] = work;
}
yen = 0;
yen2 = 0;
pp = p;
ppp = p;
for (i = 0; i < m; i++){
x = d[i] - p;
if (x < 0){
x *= -1;
}
y = n - x;
if (x >= y) {
yen += y;
p = d[i];
}
else {
yen += x;
p = d[i];
}
}
for (i = m - 1; i >= 0; i--){
x = d[i] - pp;
if (x < 0){
x *= -1;
}
y = n - x;
if (x >= y) {
yen2 += y;
pp = d[i];
}
else {
yen2 += x;
pp = d[i];
}
}
yen3 = 0;
xx = 0;
yy = m - 1;
min = d[xx];
max = d[yy];
while (min <= max) {
if (ppp > d[xx]) {
x = n - (ppp - d[xx]);
}
else {
x = d[xx] - ppp;
}
if (x < 0) {
x *= -1;
}
if (ppp < d[xx] && (n - d[yy] + ppp) < 100) {
y = n - d[yy] + ppp
}
else {
y = d[yy] - ppp;
}
if (y < 0) {
y *= -1;
}
if (x > y) {
yen3 += y;
ppp = d[yy];
yy--;
}
else {
yen3 += x;
ppp = d[xx];
xx++;
}
min = d[xx];
max = d[yy];
}
if (yen <= yen2 && yen <= yen3){
printf("%d\n", yen * 100);
}
else if (yen2 <= yen && yen2 <= yen3){
printf("%d\n", yen2 * 100);
}
else if (yen3 <= yen && yen3 <= yen2){
printf("%d\n", yen3 * 100);
}
return (0);
}
|
main.c: In function 'main':
main.c:85:44: error: expected ';' before '}' token
85 | y = n - d[yy] + ppp
| ^
| ;
86 | }
| ~
|
s846138457
|
p00000
|
C
|
#include<cstdio>
main(){
}
|
main.c:1:9: fatal error: cstdio: No such file or directory
1 | #include<cstdio>
| ^~~~~~~~
compilation terminated.
|
s061170357
|
p00000
|
C
|
#include<stdio.h>
int main(){
int i,j;
for(i=1;i<10;i++){
for(j=1;j<10;j++{
printf("%dx%d=%d",i,j,i*j);
}
}
return 0;
}
|
main.c: In function 'main':
main.c:6:21: error: expected ')' before '{' token
6 | for(j=1;j<10;j++{
| ~ ^
| )
main.c:9:3: error: expected expression before '}' token
9 | }
| ^
|
s165465584
|
p00000
|
C
|
#include<stdio.h>
#define FOR( i,a ) for( i = 0;i < a;i++ )
int main(){
int i = 0,j = 0;
FOR( i,10 ){ FOR( j,10 ){ printf( "%dx%d=%d",i,j,i*j ); }}
return 0;
}
|
main.c: In function 'main':
main.c:4:1: error: stray '\343' in program
4 | <U+3000>int i = 0,j = 0;
| ^~~~~~~~
|
s324137799
|
p00000
|
C
|
null
|
main.c:1:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
1 | null
| ^~~~
|
s727225452
|
p00000
|
C
|
null
|
main.c:1:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
1 | null
| ^~~~
|
s560519928
|
p00000
|
C
|
null
|
main.c:1:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
1 | null
| ^~~~
|
s491258206
|
p00000
|
C
|
null
|
main.c:1:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
1 | null
| ^~~~
|
s368747109
|
p00000
|
C
|
null
|
main.c:1:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
1 | null
| ^~~~
|
s259426879
|
p00000
|
C
|
null
|
main.c:1:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
1 | null
| ^~~~
|
s861847786
|
p00000
|
C
|
null
|
main.c:1:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
1 | null
| ^~~~
|
s240751823
|
p00000
|
C
|
null
|
main.c:1:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
1 | null
| ^~~~
|
s523278169
|
p00000
|
C
|
null
|
main.c:1:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
1 | null
| ^~~~
|
s572576599
|
p00000
|
C
|
#include<stdio.h> int main() {int a,i,j; for(i=1;i<=9;i++) { for(j=1;j<=9;j++) { printf("%d x %d = %d",i,j,i*j); printf("\n"); } } return 0; }
|
main.c:1:19: warning: extra tokens at end of #include directive
1 | #include<stdio.h> int main() {int a,i,j; for(i=1;i<=9;i++) { for(j=1;j<=9;j++) { printf("%d x %d = %d",i,j,i*j); printf("\n"); } } return 0; }
| ^~~
/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
|
s295580220
|
p00000
|
C
|
/* ***********************************************
Author :CKboss
Created Time :2015蟷エ01譛?7譌・ 譏滓悄蜈ュ 00譌カ19蛻?3遘?File Name :fenxi.cpp
************************************************ */
#include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <string>
#include <cmath>
#include <cstdlib>
#include <vector>
#include <queue>
#include <set>
#include <map>
using namespace std;
/// 33 KeyWords
char KeyWord[35][10] =
{ "auto","break","case","char","const","continue",
"default","do","double","else","enum","extern",
"float","for","goto","if","int","long","bool",
"register","return","short","signed","sizeof","static",
"struct","switch","typedef","union","unsigned","void",
"volatile","while"};
/// 21 sig
char sig[22][5] = { "=","+","-","*","/","<","<=","!","&","|","~","^",">",">=","==",";","(",")","#","++","--" };
map<int,string> mis;
/*****************ac********************************/
const int maxn = 1000;
int ch[maxn][130],fail[maxn],end[maxn];
int root,sz;
int newnode()
{
memset(ch[sz],-1,sizeof(ch[sz]));
end[sz++]=0;
return sz-1;
}
void ac_init()
{
sz=0; root = newnode();
}
void insert(char str[],int id)
{
int len = strlen(str);
int now = root;
for(int i=0;i<len;i++)
{
int& temp = ch[now][(int)str[i]];
if(temp==-1) temp = newnode();
now = temp;
}
end[now]=id;
}
void build()
{
queue<int> q;
fail[root] = root;
for(int i=0;i<130;i++)
{
int& temp = ch[root][i];
if(temp==-1) temp = root;
else
{
fail[temp]=root;
q.push(temp);
}
}
while(!q.empty())
{
int now = q.front(); q.pop();
for(int i=0;i<130;i++)
{
if(ch[now][i]==-1)
ch[now][i]=ch[fail[now]][i];
else
{
fail[ch[now][i]]=ch[fail[now]][i];
q.push(ch[now][i]);
}
}
}
}
vector<int> vi;
vector<int> pos;
void query(char str[])
{
int len = strlen(str);
int now = root;
int ret = 0;
queue<int> qq;
queue<int> ppp;
for(int i=0;i<len;i++)
{
now = ch[now][(int)str[i]];
int temp = now;
while(temp!=root&&end[temp])
{
/// 謇セ蛻ー荳?クェ蜈ウ髞ョ蟄玲?閠?ョ玲惘隨ヲ蜿キ
qq.push(end[temp]); ppp.push(i);
temp = fail[temp];
}
}
while(!qq.empty())
{
int f = qq.front(); qq.pop();
int p = ppp.front(); ppp.pop();
/// 蟇ケ >= <= == ++ -- 逧?愛譁ュ
if(f==47||f==40||f==48||f==53||f==54)
{
vi.pop_back(); qq.pop();
pos.pop_back(); ppp.pop();
}
/// do 蜥?double 逧?愛譁ュ
if(f==9)
{
vi.pop_back();
pos.pop_back();
}
vi.push_back(f);
pos.push_back(p);
}
}
/*****************ac********************************/
map<string,int> msi;
map<string,int> mss;
int Len[1000];
void init()
{
mis.clear();
msi.clear(); mss.clear();
ac_init();
for(int i=0;i<33;i++)
{
insert(KeyWord[i],i+1);
msi[(string)KeyWord[i]]=i+1;
mis[i+1]=KeyWord[i];
Len[i+1]=strlen(KeyWord[i]);
}
for(int i=0;i<21;i++)
{
insert(sig[i],i+34);
mss[(string)sig[i]]=i+34;
mis[i+34]=sig[i];
Len[i+34]=strlen(sig[i]);
}
build();
}
bool isLetter(char c)
{
if((c>='a'&&c<='z')||(c>='A'&&c<='Z')) return true;
else return false;
}
bool isDigit(char c)
{
if(c>='0'&&c<='9') return true;
return false;
}
bool isEmpty(char c)
{
if(c=='\n'||c=='\t'||c==' ') return true;
return false;
}
bool checkVar(string str)
{
int len = str.length(),i=0;
while(isEmpty(str[i])) { i++; continue; }
int state = 0;
if(isLetter(str[i])==true) state = 1,i++; else return false;
for(;i<len;i++) { if(isDigit(str[i])==true||isLetter(str[i])==true) continue; else break; }
bool flag=true;
for(;i<len;i++)
{
if(isEmpty(str[i])) continue;
else { flag=false; break; }
}
return flag;
}
bool checkInt(string str)
{
int len = str.length(),i=0;
while(isEmpty(str[i])) { i++; continue; }
for(;i<len;i++) { if(isDigit(str[i])==true) continue; else break; }
bool flag=true;
for(;i<len;i++)
{
if(isEmpty(str[i])) continue;
else { flag=false; break; }
}
return flag;
}
bool checkFloat(string str)
{
int len = str.length(),i=0;
while(isEmpty(str[i])) { i++; continue; }
int state = 0;
if(isDigit(str[i])==true) state = 1;
else if(str[i]=='.') goto label;
else return false;
for(;i<len;i++) { if(isDigit(str[i])==true) continue; else break; }
label:
if(str[i]=='.') state = 2,i++; else return false;
for(;i<len;i++) { if(isDigit(str[i])==true) continue; else break; }
bool flag=true;
for(;i<len;i++)
{
if(isEmpty(str[i])) continue;
else { flag=false; break; }
}
return flag;
}
int checkOther(string str) /// 蜿倬? 1 謨エ謨ー 2 豬ョ轤ケ謨ー 3 譛ェ隸?悪 0
{
bool fA=false; /// 蜷ォ譛牙ュ玲ッ? bool fB=false; /// 蜷ォ譛画焚蟄? bool fC=false; /// 蜷ォ譛?
int len = str.length();
for(int i=0;i<len;i++)
{
if(isLetter(str[i])) fA=true;
if(isDigit(str[i])) fB=true;
if(str[i]=='.') fC=true;
}
if(fA)///蜷ォ譛牙ュ玲ッ肴」?衍譏ッ蜷ヲ譏ッ蜿倬?
{
if(checkVar(str)) return 1;
else return 0;
}
else
{
if(fC)
{
if(checkFloat(str)) return 3;
else return 0;
}
else
{
if(checkInt(str)) return 2;
else return 0;
}
}
return 0;
}
int INT = 0, FLOAT = 0 , VAR = 0;
int NUM[100];
void solve(char* st)
{
int sz= vi.size();
int lastpos=0;
string str = st;
string temp ;
int len = str.length();
for(int i=0;i<sz;i++)
{
int beg = pos[i]+1-Len[vi[i]];
int end = pos[i];
int id = vi[i];
/// 蟇ケ蠑?、エ蜥御クュ髣エ譽?衍
if(beg==lastpos) ;
else
{
int from = lastpos,to = beg-1;
temp=str.substr(from,to-from+1);
int kind = checkOther(temp);
if(kind==1) cout<<"( "<<temp<<" , 蜿倬?)"<<endl;
else if(kind==2) cout<<"( "<<temp<<" , 謨エ謨ー)"<<endl;
else if(kind==3) cout<<"( "<<temp<<" , 豬ョ轤ケ謨ー)"<<endl;
else if(kind==0) cout<<"( "<<temp<<" , 譛ェ隸?悪)"<<endl;
}
temp=str.substr(beg,end-beg+1);
if(id<34)
cout<<"( "<<temp<<" , 蜈ウ髞ョ蟄?"<<mis[id]<<++NUM[id]<<" )"<<endl;
else
cout<<"( "<<temp<<" , 隨ヲ蜿キ "<<mis[id]<<++NUM[id]<<" )"<<endl;
if(i==sz-1)///蟇ケ扈灘ーセ譽?衍
{
if(end==len-1) ;
else
{
int from = lastpos,to = len-1;
int kind = checkOther(temp);
if(kind==1) cout<<"( "<<temp<<" , 蜿倬?)"<<endl;
else if(kind==2) cout<<"( "<<temp<<" , 謨エ謨ー)"<<endl;
else if(kind==3) cout<<"( "<<temp<<" , 豬ョ轤ケ謨ー)"<<endl;
else if(kind==0) cout<<"( "<<temp<<" , 譛ェ隸?悪)"<<endl;
}
}
lastpos=end+1;
}
}
int main()
{
//freopen("in.txt","r",stdin);
//freopen("out.txt","w",stdout);
init();
char str[100];
memset(NUM,0,sizeof(NUM));
VAR=0;INT=0;FLOAT=0;
while(cin>>str)
{
vi.clear(); pos.clear();
query(str);
solve(str);
}
return 0;
}
|
main.c:6:10: fatal error: iostream: No such file or directory
6 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
s539712783
|
p00000
|
C
|
#include <iostream>
int main(){for(int i=1;i<10;i++)for(int j=1;j<10;j++)printf("%dx%d=%d\n",i,j,i*j);return 0;}
|
main.c:1:10: fatal error: iostream: No such file or directory
1 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
s094869579
|
p00000
|
C
|
#include <stdio.h>
int main() {
int i, j;
for(i=1; i<10; i++) {
for(j=1; j<10; i++) {
printf("%dx%d=%d\n", i, j, i*j);
}
}
return 0;
}
|
main.c: In function 'main':
main.c:7:21: error: '\U0000ff4a' undeclared (first use in this function)
7 | for(j=1; j<10; i++) {
| ^~
main.c:7:21: note: each undeclared identifier is reported only once for each function it appears in
|
s906253259
|
p00000
|
C
|
a
|
main.c:1:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
1 | a
| ^
|
s869158087
|
p00000
|
C
|
#include<stdio.h>
int main(){
for(int i=1;i<=9;i++){
for(int j=1;j<=9;j++){
printf("%d×%d=%d\n",i,j,i*j)
}
}
return 0;
}
|
main.c: In function 'main':
main.c:6:29: error: expected ';' before '}' token
6 | printf("%d×%d=%d\n",i,j,i*j)
| ^
| ;
7 | }
| ~
|
s756953937
|
p00000
|
C
|
/* ***********************************************
Author :CKboss
Created Time :2015蟷エ04譛?1譌・ 譏滓悄荳?19譌カ00蛻?7遘?File Name :CF514E.cpp
************************************************ */
#include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <string>
#include <cmath>
#include <cstdlib>
#include <vector>
#include <queue>
#include <set>
#include <map>
using namespace std;
typedef long long int LL;
const LL mod = 1e9+7;
const LL maxn = 100100;
LL n,x;
LL dist[maxn];
LL dp[120],cnt[120];
struct Matrix
{
LL m[110][110];
void initB()
{
memset(m,0,sizeof(m));
for(LL i=0;i<100;i++)
m[i][99]=m[i][100]=cnt[100-i];
m[100][100]=1;
for(LL i=1;i<100;i++) m[i][i-1]=1;
}
void initE()
{
memset(m,0,sizeof(m));
for(LL i=0;i<=101;i++) m[i][i]=1;
}
};
Matrix Cheng(const Matrix& A,const Matrix& B)
{
Matrix ret ;
for(LL i=0;i<101;i++)
{
for(LL j=0;j<101;j++)
{
for(LL k=0;k<101;k++)
{
ret.m[i][j]=(ret.m[i][j]+(A.m[i][k]*B.m[k][j])%mod)%mod;
}
}
}
return ret;
}
void shoWM(Matrix a)
{
cout<<"show it: \n";
for(int i=0;i<2;i++)
{
for(int j=0;j<2;j++)
cout<<a.m[i][j]<<" ";
cout<<endl;
}
}
Matrix QuickPow(Matrix M,LL n)
{
Matrix E; E.initE();
while(n)
{
cout<<"n: "<<n<<endl;
if(n&1LL)
{
cout<<" xiang cheng "<<endl;
E=Cheng(E,M);
}
shoWM(M);
shoWM(E);
M=Cheng(M,M);
n/=2LL;
}
return E;
}
int main()
{
//freopen("in.txt","r",stdin);
//freopen("out.txt","w",stdout);
Matrix E; E.m[0][0]=1; E.m[1][1]=1;
Matrix M; M.m[0][0]=2; M.m[0][1]=1; M.m[1][0]=1; M.m[1][1]=1;
Matrix D; D.m[0][0]=1; D.m[0][1]=1; D.m[1][0]=1; D.m[1][1]=0;
Matrix A; A.m[0][0]=2; A.m[0][1]=1; A.m[1][0]=1; A.m[1][1]=1;
Matrix C = QuickPow(D,2);
//Matrix C = E*M;
//A=Cheng(A,A);
shoWM(C);
return 0;
cin>>n>>x;
for(LL i=0;i<n;i++)
{
cin>>dist[i];
cnt[dist[i]]++;
}
dp[0]=1;
for(LL i=1;i<=100;i++)
for(LL j=1;j<=i;j++)
dp[i]=(dp[i]+(cnt[j]*dp[i-j])%mod)%mod;
LL ans=0;
if(x<=100)
{
for(LL i=0;i<=x;i++) ans=(ans+dp[i])%mod;
}
else
{
Matrix B; B.initB();
/*
for(int i=0;i<=100;i++)
{
for(int j=0;j<=100;j++)
cout<<B.m[i][j]<<" ";
cout<<endl;
}
*/
Matrix mat = QuickPow(B,x-100);
LL sum=0;
for(LL i=0;i<=100;i++) sum=(sum+dp[i])%mod;
dp[101]=sum;
//for(int i=0;i<=101;i++) cout<<dp[i]<<","; cout<<endl;
/*
for(int i=0;i<=100;i++)
{
for(int j=0;j<=100;j++)
cout<<mat.m[i][j]<<" ";
cout<<endl;
}
*/
for(LL i=0;i<=100;i++)
{
ans=(ans+(dp[i+1]*mat.m[i][100])%mod)%mod;
}
ans=(ans+sum)%mod;
}
cout<<ans<<endl;
return 0;
}
|
main.c:6:10: fatal error: iostream: No such file or directory
6 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
s460896098
|
p00000
|
C
|
test
|
main.c:1:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
1 | test
| ^~~~
|
s042277292
|
p00000
|
C
|
test
|
main.c:1:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
1 | test
| ^~~~
|
s261487928
|
p00000
|
C
|
@0000.cpp
|
main.c:1:1: error: stray '@' in program
1 | @0000.cpp
| ^
main.c:1:2: error: invalid suffix "cpp" on floating constant
1 | @0000.cpp
| ^~~~~~~~
main.c:1:2: error: expected identifier or '(' before numeric constant
|
s921443226
|
p00000
|
C
|
#include <iostream>
using namespace std;
int main() {
for(int i = 1; i <= 9; i) {
for(int j = 1; j <= 9; j) {
cout << i << "x" << j << "=" << i*j << endl;
}
}
return 0;
}
|
main.c:1:10: fatal error: iostream: No such file or directory
1 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
s801524022
|
p00000
|
C
|
sourceCode
|
main.c:1:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
1 | sourceCode
| ^~~~~~~~~~
|
s344088958
|
p00000
|
C
|
#include <iostream>
using namespace std;
int main() {
for(int i = 1; i <= 9; i) {
for(int j = 1; j <= 9; j) {
cout << i << "x" << j << "=" << i*j << endl;
}
}
return 0;
}
|
main.c:1:10: fatal error: iostream: No such file or directory
1 | #include <iostream>
| ^~~~~~~~~~
compilation terminated.
|
s415755557
|
p00000
|
C
|
include<stdio.h>
int main(){
int x,y;
int i,j;
for(i=1; i<10; i++){
for(j=1; j<10; j++){
printf("%dx%d=%d\n",i,j,i*j);
}
}
return 0;
}
|
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
1 | include<stdio.h>
| ^
|
s178159623
|
p00000
|
C
|
include<stdio.h>
int main(){
int x,y;
int i,j;
for(i=1; i<10; i++){
for(j=1; j<10; j++){
printf("%dx%d=%d\n",i,j,i*j);
}
}
return 0;
}
|
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
1 | include<stdio.h>
| ^
|
s026201599
|
p00000
|
C
|
package com.degree45;
import java.io.FileOutputStream;
import java.io.FileWriter;
import java.io.IOException;
import java.net.*;
import java.util.*;
import org.dom4j.*;
import org.dom4j.io.OutputFormat;
import org.dom4j.io.SAXReader;
import org.dom4j.io.*;
public class XML_Account {
private Document doc;
private String url;
public XML_Account(String u) {
// TODO Auto-generated constructor stub
url=u;
try {
doc = getDoc(url);
} catch (DocumentException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
public Document getDoc(String url) throws DocumentException{
SAXReader reader = new SAXReader();
Document document = reader.read(url);
return document;
}
public void bar(Document doc) {
Element root = doc.getRootElement();
System.out.println("root: "+root.getName());
for(Iterator i=root.elementIterator();i.hasNext();){
Element element = (Element) i.next();
String name = element.elementText("username");
String pass = element.elementText("password");
System.out.println(element.getName()+","+name+","+pass);
}
}
public boolean findAccount(int kind,String name,String passwd){
Element root = doc.getRootElement();
for(Iterator i=root.elementIterator();i.hasNext();){
Element element=(Element)i.next();
if(element.elementText("username").equals(name)){
if(kind==0) {
if(element.elementText("password").equals(passwd)) return true;
return false;
}
else if(kind==1){
return true;
}
}
}
return false;
}
public void addAccount(String name,String passwd){
Element root = doc.getRootElement();
Element e = root.addElement("account");
e.addElement("username").addText(name);
e.addElement("password").addText(passwd);
try {
XMLWriter writer;
writer = new XMLWriter(new FileWriter( url ));
writer.write( doc );
writer.close();
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}
public static void main(String[] args) {
// TODO Auto-generated method stub
XML_Account xa = new XML_Account("./WebRoot/WEB-INF/Accounts/BlackAccounts.xml");
System.out.println("---> "+xa.findAccount(1,"bigming","123"));
xa.bar(xa.doc);
System.out.println("All Right");
}
}
|
main.c:1:1: error: unknown type name 'package'
1 | package com.degree45;
| ^~~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
1 | package com.degree45;
| ^
main.c:3:1: error: unknown type name 'import'
3 | import java.io.FileOutputStream;
| ^~~~~~
main.c:3:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
3 | import java.io.FileOutputStream;
| ^
main.c:4:1: error: unknown type name 'import'
4 | import java.io.FileWriter;
| ^~~~~~
main.c:4:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
4 | import java.io.FileWriter;
| ^
main.c:5:1: error: unknown type name 'import'
5 | import java.io.IOException;
| ^~~~~~
main.c:5:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
5 | import java.io.IOException;
| ^
main.c:6:1: error: unknown type name 'import'
6 | import java.net.*;
| ^~~~~~
main.c:6:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
6 | import java.net.*;
| ^
main.c:7:1: error: unknown type name 'import'
7 | import java.util.*;
| ^~~~~~
main.c:7:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
7 | import java.util.*;
| ^
main.c:9:1: error: unknown type name 'import'
9 | import org.dom4j.*;
| ^~~~~~
main.c:9:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
9 | import org.dom4j.*;
| ^
main.c:10:1: error: unknown type name 'import'
10 | import org.dom4j.io.OutputFormat;
| ^~~~~~
main.c:10:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
10 | import org.dom4j.io.OutputFormat;
| ^
main.c:11:1: error: unknown type name 'import'
11 | import org.dom4j.io.SAXReader;
| ^~~~~~
main.c:11:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
11 | import org.dom4j.io.SAXReader;
| ^
main.c:12:1: error: unknown type name 'import'
12 | import org.dom4j.io.*;
| ^~~~~~
main.c:12:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
12 | import org.dom4j.io.*;
| ^
main.c:14:1: error: unknown type name 'public'
14 | public class XML_Account {
| ^~~~~~
main.c:14:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'XML_Account'
14 | public class XML_Account {
| ^~~~~~~~~~~
|
s823388115
|
p00000
|
C
|
#include<cstdio>
#include<algorithm>
#include<set>
using namespace std;
struct Point
{
int x, y;
Point(int x = 0, int y = 0) : x(x), y(y){}
bool operator < (const Point t) const{
if(x != t.x) return x < t.x;
return y < t.y;
}
};
int main()
{
int T; scanf("%d", &T);
while(T--) {
int n; scanf("%d", &n);
set<Point> fruit[n];
for(int i = 0 ; i < n ; i++) {
int k; scanf("%d", &k);
int x, y;
for(int j = 0 ; j < k ; j++) {
scanf("%d%d", x, y);
fruit[i].insert(Point(x, y));
}
}
}
return 0;
}
|
main.c:1:9: fatal error: cstdio: No such file or directory
1 | #include<cstdio>
| ^~~~~~~~
compilation terminated.
|
s544876094
|
p00000
|
C
|
#include<stdio.h>
int main(){
int i;
int j;
int seki;
for(i=1;i<10;i++){
for(j=1;j<10;j++){
seki = i*j;
printf("%dx%d=%d\n",i,j,seki);
}
}
|
main.c: In function 'main':
main.c:12:9: error: expected declaration or statement at end of input
12 | }
| ^
|
s765624212
|
p00000
|
C
|
#include<stdio.h>
int main(){
int i;
int j;
int seki;
for(i=1;i<10;i++){
for(j=1 ;j<10;j++){
seki = i*j;
printf("%dx%d=%d\n",i,j,seki);
}
}
}
~
|
main.c:18:1: error: expected identifier or '(' before '~' token
18 | ~
| ^
|
s012189594
|
p00000
|
C
|
#include<stdio.h>
int main(){
int i;
int j;
int seki;
for(i=1;i<10;i++){
for(j=1 ;j<10;j++){
seki = i*j;
printf("%dx%d=%d\n",i,j,seki);
}
}
}
~
|
main.c:18:1: error: expected identifier or '(' before '~' token
18 | ~
| ^
|
s367974237
|
p00000
|
C
|
include<stdio.h>
int main(){
int i,j;
for(i=1;i<=9;i++){
for(j=1;j<=9;j++){
printf("%dx%d=%d\n",i,j,i*j);
}
}
return 0;
}
|
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
1 | include<stdio.h>
| ^
|
s690396175
|
p00000
|
C
|
####索引
****
```sql
create table TD(
id number,
sq number,
tri number,
fac number,
fib number,
pow number
);
create or replace procedure proce1
AS
id number:=1;
last1 number:=0;
last2 number:=1;
lastpow number:=1;
lastfac number:=1;
md number:=1000003;
temp number;
begin
for i in 1..100000 loop
insert into TD values ( i,MOD((i*i),md),MOD((i*i*i),md),Mod(lastfac*i,md)
,Mod(last1+last2,md),Mod(lastpow*2,md));
temp:=last1;
last1:=last2;
last2:=Mod(temp+last1,md);
lastpow:=Mod(lastpow*2,md);
lastfac:=Mod(lastfac*i,md);
end loop;
end;
create index myindex1 on TD(id);
```
* ??比?,索引???速度?快了一点.
<br>
####数据字典表
****
#### PL/SQL 程序基?
****
* 判断偶数
```sql
create or replace procedure pro1 (x number) as
begin
if Mod(x,2)=0 then
dbms_output.put_line('even');
else
dbms_output.put_line('odd');
end if;
end;
```
* 判断素数
```sql
create or replace procedure isPrime(x number) as
flag number:=1;
begin
if x<2 then
dbms_output.put_line('not prime');
else
for i in 2..x loop
if i*i>x then
goto here;
end if;
if Mod(x,i)=0 then
flag:=0;
goto here;
end if;
end loop;
<<here>>
if flag=1 then
dbms_output.put_line('is prime');
else
dbms_output.put_line('not prime');
end if;
end if;
end;
```
|
main.c:2:1: error: stray '##' in program
2 | ####索引
| ^~
main.c:2:3: error: stray '##' in program
2 | ####索引
| ^~
main.c:2:5: error: unknown type name '\U00007d22\U00005f15'
2 | ####索引
| ^~~~
main.c:4:1: error: stray '`' in program
4 | ```sql
| ^
main.c:4:2: error: stray '`' in program
4 | ```sql
| ^
main.c:4:3: error: stray '`' in program
4 | ```sql
| ^
main.c:5:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'create'
5 | create table TD(
| ^~~~~~
main.c:5:1: error: unknown type name 'create'
main.c:14:1: error: unknown type name 'create'
14 | create or replace procedure proce1
| ^~~~~~
main.c:14:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'replace'
14 | create or replace procedure proce1
| ^~~~~~~
main.c:14:11: error: unknown type name 'replace'
main.c:17:8: error: unknown type name 'last1'
17 | last1 number:=0;
| ^~~~~
main.c:17:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
17 | last1 number:=0;
| ^
main.c:18:8: error: unknown type name 'last2'
18 | last2 number:=1;
| ^~~~~
main.c:18:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
18 | last2 number:=1;
| ^
main.c:19:8: error: unknown type name 'lastpow'
19 | lastpow number:=1;
| ^~~~~~~
main.c:19:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
19 | lastpow number:=1;
| ^
main.c:20:8: error: unknown type name 'lastfac'
20 | lastfac number:=1;
| ^~~~~~~
main.c:20:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
20 | lastfac number:=1;
| ^
main.c:21:8: error: unknown type name 'md'
21 | md number:=1000003;
| ^~
main.c:21:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
21 | md number:=1000003;
| ^
main.c:22:8: error: unknown type name 'temp'
22 | temp number;
| ^~~~
main.c:24:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'for'
24 | for i in 1..100000 loop
| ^~~
main.c:24:17: error: too many decimal points in number
24 | for i in 1..100000 loop
| ^~~~~~~~~
main.c:27:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
27 | temp:=last1;
| ^
main.c:28:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
28 | last1:=last2;
| ^
main.c:29:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
29 | last2:=Mod(temp+last1,md);
| ^
main.c:30:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
30 | lastpow:=Mod(lastpow*2,md);
| ^
main.c:31:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
31 | lastfac:=Mod(lastfac*i,md);
| ^
main.c:32:8: error: unknown type name 'end'
32 | end loop;
| ^~~
main.c:33:1: warning: data definition has no type or storage class
33 | end;
| ^~~
main.c:33:1: error: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
main.c:35:1: error: unknown type name 'create'
35 | create index myindex1 on TD(id);
| ^~~~~~
main.c:35:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'myindex1'
35 | create index myindex1 on TD(id);
| ^~~~~~~~
main.c:35:14: error: unknown type name 'myindex1'
main.c:36:1: error: stray '`' in program
36 | ```
| ^
main.c:36:2: error: stray '`' in program
36 | ```
| ^
main.c:36:3: error: stray '`' in program
36 | ```
| ^
main.c:38:3: error: expected identifier or '(' before '?' token
38 | * ??比?,索引???速度?快了一点.
| ^
main.c:43:1: error: stray '##' in program
43 | ####数据字典表
| ^~
main.c:43:3: error: stray '##' in program
43 | ####数据字典表
| ^~
main.c:46:1: error: stray '##' in program
46 | #### PL/SQL 程序基?
| ^~
main.c:46:3: error: stray '##' in program
46 | #### PL/SQL 程序基?
| ^~
main.c:50:1: error: stray '`' in program
50 | ```sql
| ^
main.c:50:2: error: stray '`' in program
50 | ```sql
| ^
main.c:50:3: error: stray '`' in program
50 | ```sql
| ^
main.c:54:26: warning: multi-character character constant [-Wmultichar]
54 | dbms_output.put_line('even');
| ^~~~~~
main.c:55:3: error: expected identifier or '(' before 'else'
55 | else
| ^~~~
main.c:56:26: warning: multi-character character constant [-Wmultichar]
56 | dbms_output.put_line('odd');
| ^~~~~
main.c:57:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'if'
57 | end if;
| ^~
main.c:58:1: warning: data definition has no type or storage class
58 | end;
| ^~~
main.c:58:1: error: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
main.c:59:1: error: stray '`' in program
59 | ```
| ^
main.c:59:2: error: stray '`' in program
59 | ```
| ^
main.c:59:3: error: stray '`' in program
59 | ```
| ^
main.c:62:1: error: stray '`' in program
62 | ```sql
| ^
main.c:62:2: error: stray '`' in program
62 | ```sql
| ^
main.c:62:3: error: stray '`' in program
62 | ```sql
| ^
main.c:62:4: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'sql'
62 | ```sql
| ^~~
main.c:62:4: error: unknown type name 'sql'
main.c:66:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'if'
66 | if x<2 then
| ^~
main.c:67:26: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
67 | dbms_output.put_line('not prime');
| ^~~~~~~~~~~
main.c:68:3: error: expected identifier or '(' before 'else'
68 | else
| ^~~~
main.c:69:14: error: too many decimal points in number
69 | for i in 2..x loop
| ^~~~
main.c:72:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'if'
72 | end if;
| ^~
main.c:73:7: error: expected identifier or '(' before 'if'
73 | if Mod(x,i)=0 then
| ^~
main.c:75:9: error: expected identifier or '(' before 'goto'
75 | goto here;
| ^~~~
main.c:76:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'if'
76 | end if;
| ^~
main.c:77:5: error: unknown type name 'end'
77 | end loop;
| ^~~
main.c:78:5: error: expected identifier or '(' before '<<' token
78 | <<here>>
| ^~
main.c:80:28: warning: multi-character literal with 8 characters exceeds 'int' size of 4 bytes
80 | dbms_output.put_line('is prime');
| ^~~~~~~~~~
main.c:81:5: error: expected identifier or '(' before 'else'
81 | else
| ^~~~
main.c:82:28: warning: multi-character literal with 9 characters exceeds 'int' size of 4 bytes
82 | dbms_output.put_line('not prime');
| ^~~~~~~~~~~
main.c:83:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'if'
83 | end if;
| ^~
main.c:84:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'if'
84 | end if;
| ^~
main.c:85:1: warning: data definition has no type or storage class
85 | end;
| ^~~
main.c:85:1: error: type defaults to 'int' in declaration of 'end' [-Wimplicit-int]
main.c:86:1: error: stray '`' in program
86 | ```
| ^
main.c:86:2: error: stray '`' in program
86 | ```
| ^
main.c:86:3: error: stray '`' in program
86 | ```
| ^
|
s804098312
|
p00000
|
C
|
#include<stdio.h>
int main(){
int i,j,sum;
sum=0;
for(i=0;i<10;i++){
for(j=0;j<10;j++){
sum=i*j;
printf(i+"x"+j+"="+sum\n);
}
}
return 0;
}
|
main.c: In function 'main':
main.c:9:39: error: invalid operands to binary + (have 'char *' and 'char *')
9 | printf(i+"x"+j+"="+sum\n);
| ~~~~~~~^
| | |
| | char *
| char *
main.c:9:47: error: stray '\' in program
9 | printf(i+"x"+j+"="+sum\n);
| ^
main.c:9:47: error: expected ')' before 'n'
9 | printf(i+"x"+j+"="+sum\n);
| ~ ^~
| )
|
s592903825
|
p00000
|
C
|
include<stdio.h>
int main(){
for(int i=1; i<=9; i++){
for(int j=1; j<=9; j++){
printf("%dx%d=%d\n", i,j,i*j);
}
}
return 0;
}
|
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
1 | include<stdio.h>
| ^
|
s858804448
|
p00000
|
C
|
include<stdio.h>
main(){
for(int i=1; i<=9; i++){
for(int j=1; j<=9; j++){
printf("%dx%d=%d\n", i,j,i*j);
}
}
return 0;
}
|
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
1 | include<stdio.h>
| ^
|
s140688092
|
p00000
|
C
|
#include <stdio.h>
int main(void){
int i = j = 0;
for(i = 1;i <= 9;i++){
for(j = 1;j <= 9;j++){
printf("%dx%d=%d\n", i, j, i*j);
}
}
return 0;
}
|
main.c: In function 'main':
main.c:5:17: error: 'j' undeclared (first use in this function)
5 | int i = j = 0;
| ^
main.c:5:17: note: each undeclared identifier is reported only once for each function it appears in
|
s646379112
|
p00000
|
C
|
#include<stdio.h>
int main(int argc,const char *argv[]){
int i,j;
for(i=1;i<=9;i++){
for(j=1;i<=9;i++){
printf("%d??%d=%d",i,j,seki);
}
printf("\n");
}
return 0;
}
|
main.c: In function 'main':
main.c:7:38: error: 'seki' undeclared (first use in this function)
7 | printf("%d??%d=%d",i,j,seki);
| ^~~~
main.c:7:38: note: each undeclared identifier is reported only once for each function it appears in
|
s294359007
|
p00000
|
C
|
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in=new Scanner(System.in);
int i,j;
for(i=1; i<=9; i++)
{
for(j=1; j<=9; j++){
System.out.println(i+"x"+j+"="+i*j);
}
}
}
}
|
main.c:1:1: error: unknown type name 'import'
1 | import java.util.Scanner;
| ^~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
1 | import java.util.Scanner;
| ^
main.c:2:1: error: unknown type name 'public'
2 | public class Main {
| ^~~~~~
main.c:2:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Main'
2 | public class Main {
| ^~~~
|
s031791017
|
p00000
|
C
|
import java.util.Scanner;
public class Solution {
public static void main(String[] args) {
Scanner in=new Scanner(System.in);
int i,j;
for(i=1; i<=9; i++)
{
for(j=1; j<=9; j++){
System.out.println(i+"x"+j+"="+i*j);
}
}
}
}
|
main.c:1:1: error: unknown type name 'import'
1 | import java.util.Scanner;
| ^~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
1 | import java.util.Scanner;
| ^
main.c:2:1: error: unknown type name 'public'
2 | public class Solution {
| ^~~~~~
main.c:2:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Solution'
2 | public class Solution {
| ^~~~~~~~
|
s361433507
|
p00000
|
C
|
select stu.GRADE,stu.SEX,inj.KIND_ID,count(*) from REGISTERATION as reg join STUDENT as stu join INJURE as inj
where reg.STUDENT = stu.S_ID and reg.INJURE = inj.KIND_ID
group by stu.GRADE , stu.SEX , inj.KIND_ID
with rollup;
|
main.c:1:1: error: unknown type name 'select'
1 | select stu.GRADE,stu.SEX,inj.KIND_ID,count(*) from REGISTERATION as reg join STUDENT as stu join INJURE as inj
| ^~~~~~
main.c:1:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
1 | select stu.GRADE,stu.SEX,inj.KIND_ID,count(*) from REGISTERATION as reg join STUDENT as stu join INJURE as inj
| ^
|
s453029117
|
p00000
|
C
|
#include<stdio.h>
int main(){
int i,j;
for(i = 1; i < 10; i++){
for(j = 1; j < 10; j++){
printf(i + "*" + j + "=" + i*j + "\n");
}
}
return 0;
}
|
main.c: In function 'main':
main.c:7:44: error: invalid operands to binary + (have 'char *' and 'char *')
7 | printf(i + "*" + j + "=" + i*j + "\n");
| ~~~~~~~~~~~ ^
| | |
| | char *
| char *
|
s386553776
|
p00000
|
C
|
include<stdio.h>
int main(void){
for(a=1;a<10;a++){
for(b=1;b<10;b++){
printf("%dx%d\n",a,b);
}
}
return 0;
}
|
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
1 | include<stdio.h>
| ^
|
s794547346
|
p00000
|
C
|
#include<stdio.h>
int main(){
for(i=0;i<10;i++;){
for(j=0;j<10;j++;){
y=i*j;
printf(i "x" j "=" y);
}
}
return 0;
}
|
main.c: In function 'main':
main.c:5:5: error: 'i' undeclared (first use in this function)
5 | for(i=0;i<10;i++;){
| ^
main.c:5:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:17: error: expected ')' before ';' token
5 | for(i=0;i<10;i++;){
| ~ ^
| )
main.c:7:5: error: 'j' undeclared (first use in this function)
7 | for(j=0;j<10;j++;){
| ^
main.c:7:17: error: expected ')' before ';' token
7 | for(j=0;j<10;j++;){
| ~ ^
| )
main.c:9:1: error: 'y' undeclared (first use in this function)
9 | y=i*j;
| ^
main.c:11:9: error: expected ')' before string constant
11 | printf(i "x" j "=" y);
| ~ ^~~~
| )
|
s809955676
|
p00000
|
C
|
#include<stdio.h>
int main(){
for(i = 1; i <= 9; i++){
for(j = 1; j <= 9; j++){
printf("%d x %d = %d\n", i, j, i*j)
}
}
return 0;
}
|
main.c: In function 'main':
main.c:5:7: error: 'i' undeclared (first use in this function)
5 | for(i = 1; i <= 9; i++){
| ^
main.c:5:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:9: error: 'j' undeclared (first use in this function)
6 | for(j = 1; j <= 9; j++){
| ^
main.c:7:41: error: expected ';' before '}' token
7 | printf("%d x %d = %d\n", i, j, i*j)
| ^
| ;
8 | }
| ~
|
s714461712
|
p00000
|
C
|
#include<stdio.h>
int main(){
for(i = 1; i <= 9; i++){
for(j = 1; j <= 9; j++){
printf("%i x %j = %i*j", i, j, i*j)
}
}
return 0;
}
|
main.c: In function 'main':
main.c:5:7: error: 'i' undeclared (first use in this function)
5 | for(i = 1; i <= 9; i++){
| ^
main.c:5:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:9: error: 'j' undeclared (first use in this function)
6 | for(j = 1; j <= 9; j++){
| ^
main.c:7:41: error: expected ';' before '}' token
7 | printf("%i x %j = %i*j", i, j, i*j)
| ^
| ;
8 | }
| ~
|
s247460698
|
p00000
|
C
|
#include<stdio.h>
int main(){
for(i = 1; i <= 9; i++){
for(j = 1; j <= 9; j++){
printf("%i x %j = %i*j", i, j, i*j)
}
}
return 0;
}
|
main.c: In function 'main':
main.c:5:7: error: 'i' undeclared (first use in this function)
5 | for(i = 1; i <= 9; i++){
| ^
main.c:5:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:9: error: 'j' undeclared (first use in this function)
6 | for(j = 1; j <= 9; j++){
| ^
main.c:7:41: error: expected ';' before '}' token
7 | printf("%i x %j = %i*j", i, j, i*j)
| ^
| ;
8 | }
| ~
|
s276511830
|
p00000
|
C
|
#include<stdio.h>
int main(){
for(i=0;i<10;i++;){
for(j=0;j<10;j++;){
y=i*j;
printf(i "x" j "=" y \n);
}
}
return 0;
}
|
main.c: In function 'main':
main.c:5:5: error: 'i' undeclared (first use in this function)
5 | for(i=0;i<10;i++;){
| ^
main.c:5:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:17: error: expected ')' before ';' token
5 | for(i=0;i<10;i++;){
| ~ ^
| )
main.c:7:5: error: 'j' undeclared (first use in this function)
7 | for(j=0;j<10;j++;){
| ^
main.c:7:17: error: expected ')' before ';' token
7 | for(j=0;j<10;j++;){
| ~ ^
| )
main.c:9:1: error: 'y' undeclared (first use in this function)
9 | y=i*j;
| ^
main.c:11:9: error: expected ')' before string constant
11 | printf(i "x" j "=" y \n);
| ~ ^~~~
| )
main.c:11:22: error: stray '\' in program
11 | printf(i "x" j "=" y \n);
| ^
|
s207561300
|
p00000
|
C
|
#include<stdio.h>
int main(){
for(i=0;i<10;i++;){
for(j=0;j<10;j++;){
y=i*j;
printf(i "x" j "=" y \n);
}
}
return 0;
}
|
main.c: In function 'main':
main.c:5:5: error: 'i' undeclared (first use in this function)
5 | for(i=0;i<10;i++;){
| ^
main.c:5:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:17: error: expected ')' before ';' token
5 | for(i=0;i<10;i++;){
| ~ ^
| )
main.c:7:5: error: 'j' undeclared (first use in this function)
7 | for(j=0;j<10;j++;){
| ^
main.c:7:17: error: expected ')' before ';' token
7 | for(j=0;j<10;j++;){
| ~ ^
| )
main.c:9:1: error: 'y' undeclared (first use in this function)
9 | y=i*j;
| ^
main.c:11:9: error: expected ')' before string constant
11 | printf(i "x" j "=" y \n);
| ~ ^~~~
| )
main.c:11:22: error: stray '\' in program
11 | printf(i "x" j "=" y \n);
| ^
|
s944562902
|
p00000
|
C
|
#include<stdio.h>
int main(){
int i;
int j;
int y;
for(i=0;i<10;i++;){
for(j=0;j<10;j++;){
y=i*j;
printf(i "x" j "=" y \n);
}
}
return 0;
}
|
main.c: In function 'main':
main.c:7:17: error: expected ')' before ';' token
7 | for(i=0;i<10;i++;){
| ~ ^
| )
main.c:9:17: error: expected ')' before ';' token
9 | for(j=0;j<10;j++;){
| ~ ^
| )
main.c:13:9: error: expected ')' before string constant
13 | printf(i "x" j "=" y \n);
| ~ ^~~~
| )
main.c:13:22: error: stray '\' in program
13 | printf(i "x" j "=" y \n);
| ^
main.c:13:8: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
13 | printf(i "x" j "=" y \n);
| ^
| |
| int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
363 | extern int printf (const char *__restrict __format, ...);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
|
s265842780
|
p00000
|
C
|
#include<stdio.h>
int main(){
for(i = 1; i <= 9; i++){
for(j = 1; j <= 9; j++){
printf("%i x %j = %i*j", i, j, i*j)
}
}
return 0;
}
|
main.c: In function 'main':
main.c:5:7: error: 'i' undeclared (first use in this function)
5 | for(i = 1; i <= 9; i++){
| ^
main.c:5:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:9: error: 'j' undeclared (first use in this function)
6 | for(j = 1; j <= 9; j++){
| ^
main.c:7:41: error: expected ';' before '}' token
7 | printf("%i x %j = %i*j", i, j, i*j)
| ^
| ;
8 | }
| ~
|
s764307978
|
p00000
|
C
|
#include<stdio.h>
int main(){
for(i = 1; i <= 9; i++){
for(j = 1; j <= 9; j++){
printf(i x j "=" i*j);
}
}
return 0;
}
|
main.c: In function 'main':
main.c:4:7: error: 'i' undeclared (first use in this function)
4 | for(i = 1; i <= 9; i++){
| ^
main.c:4:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:9: error: 'j' undeclared (first use in this function)
5 | for(j = 1; j <= 9; j++){
| ^
main.c:6:14: error: expected ')' before 'x'
6 | printf(i x j "=" i*j);
| ~ ^~
| )
|
s021187294
|
p00000
|
C
|
#include<stdio.h>
int main(){
for(i = 1; i <= 9; i++){
for(j = 1; j <= 9; j++){
printf(i "x" j "=" i*j);
}
}
return 0;
}
|
main.c: In function 'main':
main.c:4:7: error: 'i' undeclared (first use in this function)
4 | for(i = 1; i <= 9; i++){
| ^
main.c:4:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:9: error: 'j' undeclared (first use in this function)
5 | for(j = 1; j <= 9; j++){
| ^
main.c:6:14: error: expected ')' before string constant
6 | printf(i "x" j "=" i*j);
| ~ ^~~~
| )
|
s872846253
|
p00000
|
C
|
#include<stdio.h>
int main(){
int i;
int j;
int y=0;
for(i=0;i<10;i++;){
for(j=0;j<10;j++;){
y=i*j;
printf(i "x" j "=" y \n);
}
}
return 0;
}
|
main.c: In function 'main':
main.c:7:17: error: expected ')' before ';' token
7 | for(i=0;i<10;i++;){
| ~ ^
| )
main.c:9:17: error: expected ')' before ';' token
9 | for(j=0;j<10;j++;){
| ~ ^
| )
main.c:13:9: error: expected ')' before string constant
13 | printf(i "x" j "=" y \n);
| ~ ^~~~
| )
main.c:13:22: error: stray '\' in program
13 | printf(i "x" j "=" y \n);
| ^
main.c:13:8: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
13 | printf(i "x" j "=" y \n);
| ^
| |
| int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
363 | extern int printf (const char *__restrict __format, ...);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
|
s070635978
|
p00000
|
C
|
#include<stdio.h>
int main(){
for(i = 1; i <= 9; i++){
for(j = 1; j <= 9; j++){
k = i * j;
printf(i "x" j "=" k){
}
}
}
return 0;
}
|
main.c: In function 'main':
main.c:5:7: error: 'i' undeclared (first use in this function)
5 | for(i = 1; i <= 9; i++){
| ^
main.c:5:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:9: error: 'j' undeclared (first use in this function)
6 | for(j = 1; j <= 9; j++){
| ^
main.c:7:4: error: 'k' undeclared (first use in this function)
7 | k = i * j;
| ^
main.c:8:14: error: expected ')' before string constant
8 | printf(i "x" j "=" k){
| ~ ^~~~
| )
main.c:8:27: error: expected ';' before '{' token
8 | printf(i "x" j "=" k){
| ^
| ;
|
s947196201
|
p00000
|
C
|
#include<stdio.h>
int main(){
for(i = 1; i <= 9; i++){
for(j = 1; j <= 9; j++){
int k = 0;
k = i * j;
printf(i "x" j "=" k){
}
}
}
return 0;
}
|
main.c: In function 'main':
main.c:6:7: error: 'i' undeclared (first use in this function)
6 | for(i = 1; i <= 9; i++){
| ^
main.c:6:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:9: error: 'j' undeclared (first use in this function)
7 | for(j = 1; j <= 9; j++){
| ^
main.c:10:14: error: expected ')' before string constant
10 | printf(i "x" j "=" k){
| ~ ^~~~
| )
main.c:10:27: error: expected ';' before '{' token
10 | printf(i "x" j "=" k){
| ^
| ;
|
s123086118
|
p00000
|
C
|
include<stdio.h>
int main(){
for(a=1;a<10;a++){
for(b=1;b<10;b++){
printf("%dx%d\n",a,b);
}
}
return 0;
}
|
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
1 | include<stdio.h>
| ^
|
s362268062
|
p00000
|
C
|
include<stdio.h>
int main(){
for(int a=1;a<10;a++){
for(int b=1;b<10;b++){
printf("%dx%d\n",a,b);
}
}
return 0;
}
|
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
1 | include<stdio.h>
| ^
|
s343754132
|
p00000
|
C
|
#include<stdio.h>
int main(void){
int i;
int j;
int y = 0;
for(i=0;i<=9;i++;){
for(j=0;j<=9;j++;){
printf(i"x"j"= %d");
}
printf("\n");
}
return 0;
}
|
main.c: In function 'main':
main.c:7:17: error: expected ')' before ';' token
7 | for(i=0;i<=9;i++;){
| ~ ^
| )
main.c:9:17: error: expected ')' before ';' token
9 | for(j=0;j<=9;j++;){
| ~ ^
| )
main.c:11:9: error: expected ')' before string constant
11 | printf(i"x"j"= %d");
| ~ ^~~
| )
main.c:11:8: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
11 | printf(i"x"j"= %d");
| ^
| |
| int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
363 | extern int printf (const char *__restrict __format, ...);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
|
s005792573
|
p00000
|
C
|
include<stdio.h>
int main(){
int a,b;
for(a=1;a<10;a++){
for(b=1;b<10;b++){
printf("%dx%d\n",a,b);
}
}
return 0;
}
|
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
1 | include<stdio.h>
| ^
|
s628467980
|
p00000
|
C
|
#include<stdio.h>
int main(){
int i,j,k;
for(i = 1; i <= 9; i++){
for(j = 1; j <= 9; j++){
k = i * j;
printf(i "x" j "=" k){
}
}
}
return 0;
}
|
main.c: In function 'main':
main.c:9:14: error: expected ')' before string constant
9 | printf(i "x" j "=" k){
| ~ ^~~~
| )
main.c:9:13: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
9 | printf(i "x" j "=" k){
| ^
| |
| int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
363 | extern int printf (const char *__restrict __format, ...);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:9:27: error: expected ';' before '{' token
9 | printf(i "x" j "=" k){
| ^
| ;
|
s155685266
|
p00000
|
C
|
#include<stdio.h>
int main(void){
int i,j;
int y;
for(i=0;i<=9;i++;){
for(j=0;j<=9;j++;){
y = 0;
y = i*j;
printf(i"x"j "=" y);
}
printf("\n");
}
return 0;
}
|
main.c: In function 'main':
main.c:6:17: error: expected ')' before ';' token
6 | for(i=0;i<=9;i++;){
| ~ ^
| )
main.c:8:17: error: expected ')' before ';' token
8 | for(j=0;j<=9;j++;){
| ~ ^
| )
main.c:11:11: error: expected ')' before string constant
11 | printf(i"x"j "=" y);
| ~ ^~~
| )
main.c:11:10: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
11 | printf(i"x"j "=" y);
| ^
| |
| int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
363 | extern int printf (const char *__restrict __format, ...);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
|
s963221609
|
p00000
|
C
|
#include<stdio.h>
int main(void){
int i,j;
int y;
for(i=0;i<=9;i++){
for(j=0;j<=9;j++){
y = 0;
y = i*j;
printf(i"x"j "=" y);
}
printf("\n");
}
return 0;
}
|
main.c: In function 'main':
main.c:11:11: error: expected ')' before string constant
11 | printf(i"x"j "=" y);
| ~ ^~~
| )
main.c:11:10: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
11 | printf(i"x"j "=" y);
| ^
| |
| int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
363 | extern int printf (const char *__restrict __format, ...);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
|
s962119010
|
p00000
|
C
|
#include<stdio.h>
int main(){
int i,j,k;
for(i = 1; i <= 9; i++){
for(j = 1; j <= 9; j++){
k = i * j;
printf(%dx%d=%d\n",i,j,k){
}
}
}
return 0;
}
|
main.c: In function 'main':
main.c:9:13: error: expected expression before '%' token
9 | printf(%dx%d=%d\n",i,j,k){
| ^
main.c:9:21: error: stray '\' in program
9 | printf(%dx%d=%d\n",i,j,k){
| ^
main.c:9:23: warning: missing terminating " character
9 | printf(%dx%d=%d\n",i,j,k){
| ^
main.c:9:23: error: missing terminating " character
9 | printf(%dx%d=%d\n",i,j,k){
| ^~~~~~~~~
main.c:9:23: error: expected ';' before '}' token
9 | printf(%dx%d=%d\n",i,j,k){
| ^
| ;
10 | }
| ~
main.c: At top level:
main.c:13:5: error: expected identifier or '(' before 'return'
13 | return 0;
| ^~~~~~
main.c:14:1: error: expected identifier or '(' before '}' token
14 | }
| ^
|
s479961758
|
p00000
|
C
|
#include<stdio.h>
int main(){
int i,j,k;
for(i = 1; i <= 9; i++){
for(j = 1; j <= 9; j++){
k = i * j;
printf(i "x" j "=" k){
}
}
}
return 0;
}
|
main.c: In function 'main':
main.c:9:14: error: expected ')' before string constant
9 | printf(i "x" j "=" k){
| ~ ^~~~
| )
main.c:9:13: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
9 | printf(i "x" j "=" k){
| ^
| |
| int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
363 | extern int printf (const char *__restrict __format, ...);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
main.c:9:27: error: expected ';' before '{' token
9 | printf(i "x" j "=" k){
| ^
| ;
|
s459519309
|
p00000
|
C
|
#include<stdio.h>
int main(void){
int i,j;
int y;
for(i=1;i<=9;i++){
for(j=1;j<=9;j++){
y = 0;
y = i*j;
printf(i"x"j "=" y);
}
printf("\n");
}
return 0;
}
|
main.c: In function 'main':
main.c:11:11: error: expected ')' before string constant
11 | printf(i"x"j "=" y);
| ~ ^~~
| )
main.c:11:10: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
11 | printf(i"x"j "=" y);
| ^
| |
| int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
363 | extern int printf (const char *__restrict __format, ...);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
|
s772205810
|
p00000
|
C
|
#include<stdio.h>
int main(){
int i,j,k;
for(i = 1; i <= 9; i++){
for(j = 1; j <= 9; j++){
k = i * j;
printf(i "x" j "=" k);
}
}
return 0;
}
|
main.c: In function 'main':
main.c:9:14: error: expected ')' before string constant
9 | printf(i "x" j "=" k);
| ~ ^~~~
| )
main.c:9:13: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
9 | printf(i "x" j "=" k);
| ^
| |
| int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
363 | extern int printf (const char *__restrict __format, ...);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
|
s745445059
|
p00000
|
C
|
#include<stdio.h>
int main(){
int i,j,k;
for(i = 1; i <= 9; i++){
for(j = 1; j <= 9; j++){
k = i * j;
printf(i "x" j "=" k);
}
}
return 0;
}
|
main.c: In function 'main':
main.c:8:14: error: expected ')' before string constant
8 | printf(i "x" j "=" k);
| ~ ^~~~
| )
main.c:8:13: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
8 | printf(i "x" j "=" k);
| ^
| |
| int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
363 | extern int printf (const char *__restrict __format, ...);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
|
s838413482
|
p00000
|
C
|
#include<stdio.h>
int main(){
int i,j,k;
for(i = 1; i <= 9; i++){
for(j = 1; j <= 9; j++){
k = i * j;
printf(i "x" j "=" k);
}
}
return 0;
}
|
main.c: In function 'main':
main.c:8:14: error: expected ')' before string constant
8 | printf(i "x" j "=" k);
| ~ ^~~~
| )
main.c:8:13: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
8 | printf(i "x" j "=" k);
| ^
| |
| int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
363 | extern int printf (const char *__restrict __format, ...);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
|
s285868052
|
p00000
|
C
|
#include<stdio.h>
int main(){
int i,j;
for(i = 1; i <= 9; i++){
for(j = 1; j <= 9; j++){
printf(i "x" j "=" i * j);
}
}
return 0;
}
|
main.c: In function 'main':
main.c:7:14: error: expected ')' before string constant
7 | printf(i "x" j "=" i * j);
| ~ ^~~~
| )
main.c:7:13: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
7 | printf(i "x" j "=" i * j);
| ^
| |
| int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
363 | extern int printf (const char *__restrict __format, ...);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
|
s185459593
|
p00000
|
C
|
#include<stdio.h>
int main(void){
int i,j;
for(i=1;i<=9;i++){
for(j=1;j<=9;j++){
printf(i"x"j "= %d",d*j);
}
printf("\n");
}
return 0;
}
|
main.c: In function 'main':
main.c:8:10: error: expected ')' before string constant
8 | printf(i"x"j "= %d",d*j);
| ~ ^~~
| )
main.c:8:9: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
8 | printf(i"x"j "= %d",d*j);
| ^
| |
| int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
363 | extern int printf (const char *__restrict __format, ...);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
|
s035572838
|
p00000
|
C
|
#include<stdio.h>
int main(void){
int i,j;
for(i=1;i<=9;i++){
for(j=1;j<=9;j++){
printf(" %d x %d = %d", i , j ,d*j);
}
printf("\n");
}
return 0;
}
|
main.c: In function 'main':
main.c:8:33: error: 'd' undeclared (first use in this function)
8 | printf(" %d x %d = %d", i , j ,d*j);
| ^
main.c:8:33: note: each undeclared identifier is reported only once for each function it appears in
|
s697257956
|
p00000
|
C
|
#include<stdio.h>
int main()
{
int i,j;
int y;
for(i=1;i<=9;i++){
for(j=1;j<=9;j++){
y = 0;
y = i * j;
printf(" %d x %d = %d", i , j ,y);
printf("\n")
}
}
return 0;
}
|
main.c: In function 'main':
main.c:12:14: error: expected ';' before '}' token
12 | printf("\n")
| ^
| ;
13 | }
| ~
|
s396126097
|
p00000
|
C
|
#include<stdio.h>
int main(){
int a,b,i;
for(a=1,a<9,a++){
for(b=2,b<9,b++){
i=a*b;
printf("i");
}}
return 0;
}
|
main.c: In function 'main':
main.c:4:16: error: expected ';' before ')' token
4 | for(a=1,a<9,a++){
| ^
| ;
main.c:4:16: error: expected expression before ')' token
main.c:5:16: error: expected ';' before ')' token
5 | for(b=2,b<9,b++){
| ^
| ;
main.c:5:16: error: expected expression before ')' token
|
s582830544
|
p00000
|
C
|
#include<stdio.h>
int main(void){
int i.j;
for(i=1; i<=9; i++){
for(j=1; j<=9; j++){
printf("%d x %d = %d",i,j,i*j);
}
}
}
|
main.c: In function 'main':
main.c:3:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
3 | int i.j;
| ^
main.c:3:11: error: expected expression before '.' token
main.c:4:10: error: 'i' undeclared (first use in this function)
4 | for(i=1; i<=9; i++){
| ^
main.c:4:10: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:21: error: 'j' undeclared (first use in this function)
5 | for(j=1; j<=9; j++){
| ^
|
s343480293
|
p00000
|
C
|
#include <stdio.h>
int main(void){
int num=0;
for(int i=1;i<10;i++){
num=i*i;
}
printf(%d+"x"+%d+"="+%d+"\n", &i, &i, &num);
}
|
main.c: In function 'main':
main.c:7:10: error: expected expression before '%' token
7 | printf(%d+"x"+%d+"="+%d+"\n", &i, &i, &num);
| ^
|
s121727035
|
p00000
|
C
|
include<stdio.h>
main()
{
int num;
int i,j;
for(i=1;i<10;i++){
for(j=1;j<10;j++){
num=i*j;
printf("%dx%d=%d\n",i,j,num);
}
}
}
|
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
1 | include<stdio.h>
| ^
|
s059965895
|
p00000
|
C
|
include<stdio.h>
main()
{
int num;
int i,j;
for(i=1;i<10;i++){
for(j=1;j<10;j++){
num=i*j;
printf("%dx%d=%d\n",i,j,num);
}
}
}
|
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
1 | include<stdio.h>
| ^
|
s133392482
|
p00000
|
C
|
include<stdio.h>
main()
{
int num;
int i,j;
for(i=1;i<10;i++){
for(j=1;j<10;j++){
num=i*j;
printf("%dx%d=%d\n",i,j,num);
}
}
return 0;
}
|
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
1 | include<stdio.h>
| ^
|
s934558344
|
p00000
|
C
|
include<stdio.h>
int main()
{
int num;
int i,j;
for(i=1;i<10;i++){
for(j=1;j<10;j++){
num=i*j;
printf("%dx%d=%d\n",i,j,num);
}
}
return 0;
}
|
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
1 | include<stdio.h>
| ^
|
s172911864
|
p00000
|
C
|
#include<stdio.h>
int main()
{
int c=0;
for(int i2=1;i2<=9;i2++)
{
for(int i=1;i<=9;i++)
{
c=i*i2;
printf("\n",i,"*",i2,"=",c)
}
}
}
|
main.c: In function 'main':
main.c:12:28: error: expected ';' before '}' token
12 | printf("\n",i,"*",i2,"=",c)
| ^
| ;
13 |
14 | }
| ~
|
s259562569
|
p00000
|
C
|
#include<stdio.h>
int main(){
for(int i=0;i<9;i++){
for(int j=0;j<9;j++){
printf('%d×%d = %d',i,j,i*j);
}
}
return 0;
}
|
main.c: In function 'main':
main.c:7:8: warning: multi-character literal with 11 characters exceeds 'int' size of 4 bytes
7 | printf('%d×%d = %d',i,j,i*j);
| ^~~~~~~~~~~~
main.c:7:8: error: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion]
7 | printf('%d×%d = %d',i,j,i*j);
| ^~~~~~~~~~~~
| |
| int
In file included from main.c:1:
/usr/include/stdio.h:363:43: note: expected 'const char * restrict' but argument is of type 'int'
363 | extern int printf (const char *__restrict __format, ...);
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
|
s511830120
|
p00000
|
C
|
#include<stdio.h>
int main(){
for(i = 1; i <= 9; i++) {
for(j = 1; j <= 9; j++) {
printf("%d×%d = %d",i,j,i*j);
}
}
return 0;
}
|
main.c: In function 'main':
main.c:5:5: error: 'i' undeclared (first use in this function)
5 | for(i = 1; i <= 9; i++) {
| ^
main.c:5:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:8: error: 'j' undeclared (first use in this function)
7 | for(j = 1; j <= 9; j++) {
| ^
|
s500493913
|
p00000
|
C
|
#include<stdio.h>
#include<math.h>
int main(){
for(i = 1; i <= 9; i++) {
for(j = 1; j <= 9; j++) {
printf("%d×%d = %d\n",i,j,i*j);
}
}
return 0;
}
|
main.c: In function 'main':
main.c:6:5: error: 'i' undeclared (first use in this function)
6 | for(i = 1; i <= 9; i++) {
| ^
main.c:6:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:8: error: 'j' undeclared (first use in this function); did you mean 'jn'?
8 | for(j = 1; j <= 9; j++) {
| ^
| jn
|
s606631011
|
p00000
|
C
|
j;main(i){for(;j-9?++j:j=i++<9;printf("%dx%d=%d\n",i,j,i*j));}
|
main.c:1:1: warning: data definition has no type or storage class
1 | j;main(i){for(;j-9?++j:j=i++<9;printf("%dx%d=%d\n",i,j,i*j));}
| ^
main.c:1:1: error: type defaults to 'int' in declaration of 'j' [-Wimplicit-int]
main.c:1:3: error: return type defaults to 'int' [-Wimplicit-int]
1 | j;main(i){for(;j-9?++j:j=i++<9;printf("%dx%d=%d\n",i,j,i*j));}
| ^~~~
main.c: In function 'main':
main.c:1:3: error: type of 'i' defaults to 'int' [-Wimplicit-int]
main.c:1:25: error: lvalue required as left operand of assignment
1 | j;main(i){for(;j-9?++j:j=i++<9;printf("%dx%d=%d\n",i,j,i*j));}
| ^
main.c:1:32: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
1 | j;main(i){for(;j-9?++j:j=i++<9;printf("%dx%d=%d\n",i,j,i*j));}
| ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
+++ |+#include <stdio.h>
1 | j;main(i){for(;j-9?++j:j=i++<9;printf("%dx%d=%d\n",i,j,i*j));}
main.c:1:32: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
1 | j;main(i){for(;j-9?++j:j=i++<9;printf("%dx%d=%d\n",i,j,i*j));}
| ^~~~~~
main.c:1:32: note: include '<stdio.h>' or provide a declaration of 'printf'
|
s838644188
|
p00000
|
C
|
j;main(i){for(;j<9?++j:j=i++<9;printf("%dx%d=%d\n",i,j,i*j));}
|
main.c:1:1: warning: data definition has no type or storage class
1 | j;main(i){for(;j<9?++j:j=i++<9;printf("%dx%d=%d\n",i,j,i*j));}
| ^
main.c:1:1: error: type defaults to 'int' in declaration of 'j' [-Wimplicit-int]
main.c:1:3: error: return type defaults to 'int' [-Wimplicit-int]
1 | j;main(i){for(;j<9?++j:j=i++<9;printf("%dx%d=%d\n",i,j,i*j));}
| ^~~~
main.c: In function 'main':
main.c:1:3: error: type of 'i' defaults to 'int' [-Wimplicit-int]
main.c:1:25: error: lvalue required as left operand of assignment
1 | j;main(i){for(;j<9?++j:j=i++<9;printf("%dx%d=%d\n",i,j,i*j));}
| ^
main.c:1:32: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
1 | j;main(i){for(;j<9?++j:j=i++<9;printf("%dx%d=%d\n",i,j,i*j));}
| ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
+++ |+#include <stdio.h>
1 | j;main(i){for(;j<9?++j:j=i++<9;printf("%dx%d=%d\n",i,j,i*j));}
main.c:1:32: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
1 | j;main(i){for(;j<9?++j:j=i++<9;printf("%dx%d=%d\n",i,j,i*j));}
| ^~~~~~
main.c:1:32: note: include '<stdio.h>' or provide a declaration of 'printf'
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.