Problem | pairsums |
---|---|
User | YongXin |
Submission Time | 2023-06-02 12:35:40 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
pairsums.cpp: In function ‘int main()’:
pairsums.cpp:7:7: error: ‘i’ was not declared in this scope
7 | for (i=0;i<n;++i) cin>>a[i];
| ^
pairsums.cpp:8:7: error: ‘i’ was not declared in this scope
8 | for (i=0;i<n-1;++i){
| ^
pairsums.cpp:9:8: error: ‘j’ was not declared in this scope
9 | for (j=i+1;j<n;++j){
| ^
pairsums.cpp:11:9: error: expected ‘;’ before ‘}’ token
11 | r+=1
| ^
| ;
12 | }
| ~
pairsums.cpp:15:9: error: expected ‘;’ before ‘}’ token
15 | cout<<r
| ^
| ;
16 | }
| ~