foo.cpp:1:1: error: 'include' does not name a type
include <stdio.h> include <stdlib.h> include <string.h>
^
foo.cpp: In function 'int main()':
foo.cpp:15:19: error: 'scanf' was not declared in this scope
scanf("%d%d",&n,&m);
^
foo.cpp:17:12: error: 'a' was not declared in this scope
scanf("%s",a);
^
foo.cpp:30:15: error: expected ')' before numeric constant
a1[i] = (a1[i]10+a[j]-'0')%p1;
^
foo.cpp:31:15: error: expected ')' before numeric constant
a2[i] = (a2[i]10+a[j]-'0')%p2;
^
foo.cpp:32:15: error: expected ')' before numeric constant
a3[i] = (a3[i]10+a[j]-'0')%p3;
^
foo.cpp:33:15: error: expected ')' before numeric constant
a4[i] = (a4[i]10+a[j]-'0')%p4;
^
foo.cpp:55:23: error: 'printf' was not declared in this scope
printf("%d\n",ans1);
^
foo.cpp:59:31: error: 'memset' was not declared in this scope
memset(can1,0,sizeof(can1));
^
foo.cpp:63:22: error: expected primary-expression before '?' token
s1 = (s1+??a1[i]*tx1)%p1;
^
foo.cpp:63:23: error: expected primary-expression before '?' token
s1 = (s1+??a1[i]*tx1)%p1;
^
foo.cpp:63:33: error: expected ':' before ')' token
s1 = (s1+??a1[i]*tx1)%p1;
^
foo.cpp:63:33: error: expected primary-expression before ')' token
foo.cpp:63:33: error: expected ':' before ')' token
foo.cpp:63:33: error: expected primary-expression before ')' token
foo.cpp:64:27: error: expected primary-expression before ')' token
tx1 = (tx1*x1?)%p1;
^
foo.cpp:64:27: error: expected ':' before ')' token
foo.cpp:64:27: error: expected primary-expression before ')' token
foo.cpp:70:19: error: 'sizeo' was not declared in this scope
memset(can2,0,sizeo?f(can2));
^
foo.cpp:70:31: error: 'f' was not declared in this scope
memset(can2,0,sizeo?f(can2));
^
foo.cpp:70:32: error: expected ':' before ')' token
memset(can2,0,sizeo?f(can2));
^
foo.cpp:70:32: error: expected primary-expression before ')' token
foo.cpp:71:27: error: expected primary-expression before ')' token
for (x = 0;x < p2;x?++) {
^
foo.cpp:71:27: error: expected ':' before ')' token
foo.cpp:71:27: error: expected primary-expression before ')' token
foo.cpp:82:29: error: expected primary-expression before '?' token
for (x = 0;x < p3;x++) {??
^
foo.cpp:82:30: error: expected primary-expression before '?' token
for (x = 0;x < p3;x++) {??
^
foo.cpp:83:15: error: expected ':' before ';' token
x3 = x; s3 = 0; tx3 = 1;
^
foo.cpp:83:15: error: expected primary-expression before ';' token
foo.cpp:83:15: error: expected ':' before ';' token
foo.cpp:83:15: error: expected primary-expression before ';' token
foo.cpp:84:33: error: expected primary-expression before '?' token
for (i = 0;i <= n;i++) {??
^
foo.cpp:84:34: error: expected primary-expression before '?' token
for (i = 0;i <= n;i++) {??
^
foo.cpp:85:35: error: expected ':' before ';' token
s3 = (s3+a3[i]*tx3)%p3;
^
foo.cpp:85:35: error: expected primary-expression before ';' token
foo.cpp:85:35: error: expected ':' before ';' token
foo.cpp:85:35: error: expected primary-expression before ';' token
foo.cpp:87:10: error: expected primary-expression before '?' token
}??
^
foo.cpp:87:11: error: expected primary-expression before '?' token
}??
^
foo.cpp:88:9: error: expected primary-expression before 'if'
if (0 == s3)
^
foo.cpp:88:9: error: expected ':' before 'if'
foo.cpp:88:9: error: expected