foo.cpp: In function 'int main()':
foo.cpp:33:15: error: expected ')' before numeric constant
a1[i] = (a1[i]10+a[j]-'0')%p1;
^
foo.cpp:34:15: error: expected ')' before numeric constant
a2[i] = (a2[i]10+a[j]-'0')%p2;
^
foo.cpp:35:15: error: expected ')' before numeric constant
a3[i] = (a3[i]10+a[j]-'0')%p3;
^
foo.cpp:36:15: error: expected ')' before numeric constant
a4[i] = (a4[i]10+a[j]-'0')%p4;
^
foo.cpp:67:22: error: expected primary-expression before '?' token
s1 = (s1+??a1[i]*tx1)%p1;
^
foo.cpp:67:23: error: expected primary-expression before '?' token
s1 = (s1+??a1[i]*tx1)%p1;
^
foo.cpp:67:33: error: expected ':' before ')' token
s1 = (s1+??a1[i]*tx1)%p1;
^
foo.cpp:67:33: error: expected primary-expression before ')' token
foo.cpp:67:33: error: expected ':' before ')' token
foo.cpp:67:33: error: expected primary-expression before ')' token
foo.cpp:68:27: error: expected primary-expression before ')' token
tx1 = (tx1*x1?)%p1;
^
foo.cpp:68:27: error: expected ':' before ')' token
foo.cpp:68:27: error: expected primary-expression before ')' token
foo.cpp:74:19: error: 'sizeo' was not declared in this scope
memset(can2,0,sizeo?f(can2));
^
foo.cpp:74:31: error: 'f' was not declared in this scope
memset(can2,0,sizeo?f(can2));
^
foo.cpp:74:32: error: expected ':' before ')' token
memset(can2,0,sizeo?f(can2));
^
foo.cpp:74:32: error: expected primary-expression before ')' token
foo.cpp:75:27: error: expected primary-expression before ')' token
for (x = 0;x < p2;x?++) {
^
foo.cpp:75:27: error: expected ':' before ')' token
foo.cpp:75:27: error: expected primary-expression before ')' token
foo.cpp:86:29: error: expected primary-expression before '?' token
for (x = 0;x < p3;x++) {??
^
foo.cpp:86:30: error: expected primary-expression before '?' token
for (x = 0;x < p3;x++) {??
^
foo.cpp:87:15: error: expected ':' before ';' token
x3 = x; s3 = 0; tx3 = 1;
^
foo.cpp:87:15: error: expected primary-expression before ';' token
foo.cpp:87:15: error: expected ':' before ';' token
foo.cpp:87:15: error: expected primary-expression before ';' token
foo.cpp:88:33: error: expected primary-expression before '?' token
for (i = 0;i <= n;i++) {??
^
foo.cpp:88:34: error: expected primary-expression before '?' token
for (i = 0;i <= n;i++) {??
^
foo.cpp:89:35: error: expected ':' before ';' token
s3 = (s3+a3[i]*tx3)%p3;
^
foo.cpp:89:35: error: expected primary-expression before ';' token
foo.cpp:89:35: error: expected ':' before ';' token
foo.cpp:89:35: error: expected primary-expression before ';' token
foo.cpp:91:10: error: expected primary-expression before '?' token
}??
^
foo.cpp:91:11: error: expected primary-expression before '?' token
}??
^
foo.cpp:92:9: error: expected primary-expression before 'if'
if (0 == s3)
^
foo.cpp:92:9: error: expected ':' before 'if'
foo.cpp:92:9: error: expected primary-expression before 'if'
foo.cpp:92:9: error: expected ':' before 'if'
foo.cpp:92:9: error: expected primary-expression before 'if'
foo.cpp:92:9: error: expected ';' before 'if'
foo.cpp:17:9: warning: unused variable 'k' [-Wunused-variable]
int i,j,k;
^