/ Vijos /

记录详情

Compile Error

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:16:19: error: 'scanf' was not declared in this scope
 scanf("%d%d",&n,&m);
                   ^
foo.cpp:18:12: error: 'a' was not declared in this scope
 scanf("%s",a);
            ^
foo.cpp:31:15: error: expected ')' before numeric constant
 a1[i] = (a1[i]10+a[j]-'0')%p1;
               ^
foo.cpp:32:15: error: expected ')' before numeric constant
 a2[i] = (a2[i]10+a[j]-'0')%p2;
               ^
foo.cpp:33:15: error: expected ')' before numeric constant
 a3[i] = (a3[i]10+a[j]-'0')%p3;
               ^
foo.cpp:34:15: error: expected ')' before numeric constant
 a4[i] = (a4[i]10+a[j]-'0')%p4;
               ^
foo.cpp:57:23: error: 'printf' was not declared in this scope
     printf("%d\n",ans1);
                       ^
foo.cpp:61:31: error: 'memset' was not declared in this scope
     memset(can1,0,sizeof(can1));
                               ^
foo.cpp:65:22: error: expected primary-expression before '?' token
             s1 = (s1+??a1[i]*tx1)%p1;
                      ^
foo.cpp:65:23: error: expected primary-expression before '?' token
             s1 = (s1+??a1[i]*tx1)%p1;
                       ^
foo.cpp:65:33: error: expected ':' before ')' token
             s1 = (s1+??a1[i]*tx1)%p1;
                                 ^
foo.cpp:65:33: error: expected primary-expression before ')' token
foo.cpp:65:33: error: expected ':' before ')' token
foo.cpp:65:33: error: expected primary-expression before ')' token
foo.cpp:66:27: error: expected primary-expression before ')' token
             tx1 = (tx1*x1?)%p1;
                           ^
foo.cpp:66:27: error: expected ':' before ')' token
foo.cpp:66:27: error: expected primary-expression before ')' token
foo.cpp:72:19: error: 'sizeo' was not declared in this scope
     memset(can2,0,sizeo?f(can2));
                   ^
foo.cpp:72:31: error: 'f' was not declared in this scope
     memset(can2,0,sizeo?f(can2));
                               ^
foo.cpp:72:32: error: expected ':' before ')' token
     memset(can2,0,sizeo?f(can2));
                                ^
foo.cpp:72:32: error: expected primary-expression before ')' token
foo.cpp:73:27: error: expected primary-expression before ')' token
     for (x = 0;x < p2;x?++) {
                           ^
foo.cpp:73:27: error: expected ':' before ')' token
foo.cpp:73:27: error: expected primary-expression before ')' token
foo.cpp:84:29: error: expected primary-expression before '?' token
     for (x = 0;x < p3;x++) {??
                             ^
foo.cpp:84:30: error: expected primary-expression before '?' token
     for (x = 0;x < p3;x++) {??
                              ^
foo.cpp:85:15: error: expected ':' before ';' token
         x3 = x; s3 = 0; tx3 = 1;
               ^
foo.cpp:85:15: error: expected primary-expression before ';' token
foo.cpp:85:15: error: expected ':' before ';' token
foo.cpp:85:15: error: expected primary-expression before ';' token
foo.cpp:86:33: error: expected primary-expression before '?' token
         for (i = 0;i <= n;i++) {??
                                 ^
foo.cpp:86:34: error: expected primary-expression before '?' token
         for (i = 0;i <= n;i++) {??
                                  ^
foo.cpp:87:35: error: expected ':' before ';' token
             s3 = (s3+a3[i]*tx3)%p3;
                                   ^
foo.cpp:87:35: error: expected primary-expression before ';' token
foo.cpp:87:35: error: expected ':' before ';' token
foo.cpp:87:35: error: expected primary-expression before ';' token
foo.cpp:89:10: error: expected primary-expression before '?' token
         }??
          ^
foo.cpp:89:11: error: expected primary-expression before '?' token
         }??
           ^
foo.cpp:90:9: error: expected primary-expression before 'if'
         if (0 == s3)
         ^
foo.cpp:90:9: error: expected ':' before 'if'
foo.cpp:90:9: error: expected

信息

递交者
类型
递交
题目
P1798 摄影师的烦恼
语言
C++
递交时间
2016-10-03 15:42:18
评测时间
2016-10-03 15:42:18
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes