/ Vijos /

记录详情

Compile Error

foo.cpp: In function 'int main()':
foo.cpp:11:1: error: expected primary-expression before '?' token
 ??? scanf("%I64d%I64d",&n,&m);
 ^
foo.cpp:11:2: error: expected primary-expression before '?' token
 ??? scanf("%I64d%I64d",&n,&m);
  ^
foo.cpp:11:3: error: expected primary-expression before '?' token
 ??? scanf("%I64d%I64d",&n,&m);
   ^
foo.cpp:11:29: error: 'scanf' was not declared in this scope
 ??? scanf("%I64d%I64d",&n,&m);
                             ^
foo.cpp:11:30: error: expected ':' before ';' token
 ??? scanf("%I64d%I64d",&n,&m);
                              ^
foo.cpp:11:30: error: expected primary-expression before ';' token
foo.cpp:11:30: error: expected ':' before ';' token
foo.cpp:11:30: error: expected primary-expression before ';' token
foo.cpp:11:30: error: expected ':' before ';' token
foo.cpp:11:30: error: expected primary-expression before ';' token
foo.cpp:12:1: error: expected primary-expression before '?' token
 ??? x=1;
 ^
foo.cpp:12:2: error: expected primary-expression before '?' token
 ??? x=1;
  ^
foo.cpp:12:3: error: expected primary-expression before '?' token
 ??? x=1;
   ^
foo.cpp:12:8: error: expected ':' before ';' token
 ??? x=1;
        ^
foo.cpp:12:8: error: expected primary-expression before ';' token
foo.cpp:12:8: error: expected ':' before ';' token
foo.cpp:12:8: error: expected primary-expression before ';' token
foo.cpp:12:8: error: expected ':' before ';' token
foo.cpp:12:8: error: expected primary-expression before ';' token
foo.cpp:13:1: error: expected primary-expression before '?' token
 ??? for (long long i=1; i<=min(n,m); i++)
 ^
foo.cpp:13:2: error: expected primary-expression before '?' token
 ??? for (long long i=1; i<=min(n,m); i++)
  ^
foo.cpp:13:3: error: expected primary-expression before '?' token
 ??? for (long long i=1; i<=min(n,m); i++)
   ^
foo.cpp:13:5: error: expected primary-expression before 'for'
 ??? for (long long i=1; i<=min(n,m); i++)
     ^
foo.cpp:13:5: error: expected ':' before 'for'
foo.cpp:13:5: error: expected primary-expression before 'for'
foo.cpp:13:5: error: expected ':' before 'for'
foo.cpp:13:5: error: expected primary-expression before 'for'
foo.cpp:13:5: error: expected ':' before 'for'
foo.cpp:13:5: error: expected primary-expression before 'for'
foo.cpp:13:25: error: 'i' was not declared in this scope
 ??? for (long long i=1; i<=min(n,m); i++)
                         ^
foo.cpp:18:1: error: expected primary-expression before '?' token
 ??? printf("%I64d\n",ans);
 ^
foo.cpp:18:2: error: expected primary-expression before '?' token
 ??? printf("%I64d\n",ans);
  ^
foo.cpp:18:3: error: expected primary-expression before '?' token
 ??? printf("%I64d\n",ans);
   ^
foo.cpp:18:25: error: 'printf' was not declared in this scope
 ??? printf("%I64d\n",ans);
                         ^
foo.cpp:18:26: error: expected ':' before ';' token
 ??? printf("%I64d\n",ans);
                          ^
foo.cpp:18:26: error: expected primary-expression before ';' token
foo.cpp:18:26: error: expected ':' before ';' token
foo.cpp:18:26: error: expected primary-expression before ';' token
foo.cpp:18:26: error: expected ':' before ';' token
foo.cpp:18:26: error: expected primary-expression before ';' token
foo.cpp:19:1: error: expected primary-expression before '?' token
 ??? return 0;
 ^
foo.cpp:19:2: error: expected primary-expression before '?' token
 ??? return 0;
  ^
foo.cpp:19:3: error: expected primary-expression before '?' token
 ??? return 0;
   ^
foo.cpp:19:5: error: expected primary-expression before 'return'
 ??? return 0;
     ^
foo.cpp:19:5: error: expected ':' before 'return'
foo.cpp:19:5: error: expected primary-expression before 'return'
foo.cpp:19:5: error: expected ':' before 'return'
foo.cpp:19:5: error: expected primary-expression before 'return'
foo.cpp:19:5: error: expected ':' before 'return'
foo.cpp:19:5: error: expected primary-expression before 'return'

信息

递交者
类型
递交
题目
P1964 夜夜的NOIP之旅
语言
C++
递交时间
2015-10-06 20:39:54
评测时间
2015-10-06 20:39:55
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes