记录详情

Compile Error

/in/foo.cc:24:10: error: stray '#' in program
   if(A>B)#include<iostream>
          ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:19:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
     if((a[A]-'0')+(b[B]-'0')>9)
     ^~
/in/foo.cc:21:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
  c[C]=((a[A]-'0')+(b[B]-'0'))%10;
  ^
/in/foo.cc:24:11: error: 'include' was not declared in this scope
   if(A>B)#include<iostream>
           ^~~~~~~
/in/foo.cc:24:27: error: expected primary-expression before '>' token
   if(A>B)#include<iostream>
                           ^
/in/foo.cc:25:1: error: expected primary-expression before 'using'
 using namespace std;
 ^~~~~
/in/foo.cc:30:1: error: a function-definition is not allowed here before '{' token
 {
 ^
/in/foo.cc:27:11: warning: unused variable 'A' [-Wunused-variable]
 long long A,B,i,C,MAX;
           ^
/in/foo.cc:27:13: warning: unused variable 'B' [-Wunused-variable]
 long long A,B,i,C,MAX;
             ^
/in/foo.cc:27:15: warning: unused variable 'i' [-Wunused-variable]
 long long A,B,i,C,MAX;
               ^
/in/foo.cc:27:17: warning: unused variable 'C' [-Wunused-variable]
 long long A,B,i,C,MAX;
                 ^
/in/foo.cc:27:19: warning: unused variable 'MAX' [-Wunused-variable]
 long long A,B,i,C,MAX;
                   ^~~
/in/foo.cc:28:5: warning: unused variable 'c' [-Wunused-variable]
 int c[600010];
     ^
/in/foo.cc:66:1: error: expected '}' at end of input
 }
 ^

信息

递交者
类型
递交
题目
巴蜀中学签到题
语言
C++
递交时间
2018-07-19 20:56:17
评测时间
2018-07-19 20:56:17
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes