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

信息

递交者
类型
递交
题目
P1798 摄影师的烦恼
语言
C++
递交时间
2017-01-26 21:41:28
评测时间
2017-01-26 21:41:28
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes