/ Vijos /

记录详情

Compile Error

/in/foo.cc:80:31: error: stray '#' in program
  freopen("in.in", "r", stdin);#include <iostream>
                               ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:80:32: error: 'include' was not declared in this scope
  freopen("in.in", "r", stdin);#include <iostream>
                                ^~~~~~~
/in/foo.cc:80:49: error: expected primary-expression before '>' token
  freopen("in.in", "r", stdin);#include <iostream>
                                                 ^
/in/foo.cc:91:1: error: expected primary-expression before 'using'
 using namespace std;
 ^~~~~
/in/foo.cc:99:1: error: a function-definition is not allowed here before '{' token
 {
 ^
/in/foo.cc:104:1: error: a function-definition is not allowed here before '{' token
 {
 ^
/in/foo.cc:114:1: error: a function-definition is not allowed here before '{' token
 {
 ^
/in/foo.cc:126:1: error: a function-definition is not allowed here before '{' token
 {
 ^
/in/foo.cc:137:1: error: a function-definition is not allowed here before '{' token
 {
 ^
/in/foo.cc:142:1: error: a function-definition is not allowed here before '{' token
 {
 ^
/in/foo.cc:95:2: warning: unused variable 'a' [-Wunused-variable]
 }a[MAXN], b[MAXN << 3];
  ^
/in/foo.cc:95:11: warning: unused variable 'b' [-Wunused-variable]
 }a[MAXN], b[MAXN << 3];
           ^
/in/foo.cc:96:5: warning: unused variable 'n' [-Wunused-variable]
 int n, m;
     ^
/in/foo.cc:96:8: warning: unused variable 'm' [-Wunused-variable]
 int n, m;
        ^
/in/foo.cc:97:4: warning: unused variable 'ans' [-Wunused-variable]
 LL ans, f[MAXN << 2], sora[MAXN << 2], maxle;
    ^~~
/in/foo.cc:97:9: warning: unused variable 'f' [-Wunused-variable]
 LL ans, f[MAXN << 2], sora[MAXN << 2], maxle;
         ^
/in/foo.cc:97:23: warning: unused variable 'sora' [-Wunused-variable]
 LL ans, f[MAXN << 2], sora[MAXN << 2], maxle;
                       ^~~~
/in/foo.cc:97:40: warning: unused variable 'maxle' [-Wunused-variable]
 LL ans, f[MAXN << 2], sora[MAXN << 2], maxle;
                                        ^~~~~
/in/foo.cc:231:1: error: expected '}' at end of input
 }
 ^

信息

递交者
类型
递交
题目
P1901 学姐的钱包
语言
C++
递交时间
2018-04-14 08:42:13
评测时间
2018-04-14 08:42:13
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes