0_0_24418464_21927.cpp:2:1: error: 'LL' does not name a type
LL sum[10][100010];
^
0_0_24418464_21927.cpp: In function 'int main()':
0_0_24418464_21927.cpp:5:12: error: 'mem' was not declared in this scope
mem(a,0);
^
0_0_24418464_21927.cpp:6:9: error: 'sum' was not declared in this scope
mem(sum,0);
^
0_0_24418464_21927.cpp:8:5: error: 'LL' was not declared in this scope
LL p;
^
0_0_24418464_21927.cpp:9:5: error: 'cin' was not declared in this scope
cin>>n>>p;
^
0_0_24418464_21927.cpp:9:13: error: 'p' was not declared in this scope
cin>>n>>p;
^
0_0_24418464_21927.cpp:12:32: error: 'scanf' was not declared in this scope
scanf("%d",&a[i][j]);
^
0_0_24418464_21927.cpp:16:5: error: 'set' was not declared in this scope
set <int> s;
^
0_0_24418464_21927.cpp:16:10: error: expected primary-expression before 'int'
set <int> s;
^
0_0_24418464_21927.cpp:17:5: error: 's' was not declared in this scope
s.clear();
^
0_0_24418464_21927.cpp:18:8: error: expected ';' before 'ans'
LL ans=(sum[1][n]+a[2][n]+a[3][n])%p;
^
0_0_24418464_21927.cpp:20:12: error: expected ';' before 'temp'
LL temp=(sum[1][i]-sum[2][i-1]+p)%p;
^
0_0_24418464_21927.cpp:21:18: error: 'temp' was not declared in this scope
s.insert(temp);
^
0_0_24418464_21927.cpp:24:14: error: expected primary-expression before 'int'
set <int>::iterator it = s.lower_bound(p-temp);
^
0_0_24418464_21927.cpp:25:12: error: 'it' was not declared in this scope
if(it!=s.begin())
^
0_0_24418464_21927.cpp:26:13: error: 'ans' was not declared in this scope
ans=max(ans,(temp+*(--it))%p);
^
0_0_24418464_21927.cpp:26:41: error: 'max' was not declared in this scope
ans=max(ans,(temp+*(--it))%p);
^
0_0_24418464_21927.cpp:28:5: error: 'cout' was not declared in this scope
cout<<ans<<endl;
^
0_0_24418464_21927.cpp:28:11: error: 'ans' was not declared in this scope
cout<<ans<<endl;
^
0_0_24418464_21927.cpp:28:16: error: 'endl' was not declared in this scope
cout<<ans<<endl;
^
|