/ Vijos /

记录详情

Compile Error

/in/foo.cc:1:2: error: invalid preprocessing directive #Inlcude
 #Inlcude<iostream>
  ^~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:16:5: error: 'cin' was not declared in this scope
     cin>>np;
     ^~~
/in/foo.cc:23:9: error: expected unqualified-id at end of input
     for(int
         ^~~
/in/foo.cc:23:9: error: expected ';' at end of input
/in/foo.cc:23:9: error: expected primary-expression at end of input
/in/foo.cc:23:9: error: expected ';' at end of input
/in/foo.cc:23:9: error: expected primary-expression at end of input
/in/foo.cc:23:9: error: expected ')' at end of input
/in/foo.cc:23:9: error: expected statement at end of input
/in/foo.cc:23:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
     for(int
     ^~~
cc1plus: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
/in/foo.cc:9:6: warning: unused variable 'give' [-Wunused-variable]
  int give;
      ^~~~
/in/foo.cc:12:7: warning: unused variable 'm' [-Wunused-variable]
  char m[16];
       ^
/in/foo.cc:13:10: warning: unused variable 'q' [-Wunused-variable]
     char q[12][17];
          ^
/in/foo.cc:14:9: warning: unused variable 'g' [-Wunused-variable]
     int g[100],c[100];
         ^
/in/foo.cc:14:16: warning: unused variable 'c' [-Wunused-variable]
     int g[100],c[100];
                ^
/in/foo.cc:23:9: error: expected '}' at end of input
     for(int
         ^~~

信息

递交者
类型
递交
题目
P1035 贪婪的送礼者
语言
C++
递交时间
2017-11-20 16:07:06
评测时间
2017-11-20 16:07:06
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes