0_0_21232450_18285.cpp:2:1: error: stray '\345' in program
复制 #include<iostream>
^
0_0_21232450_18285.cpp:2:1: error: stray '\244' in program
0_0_21232450_18285.cpp:2:1: error: stray '\215' in program
0_0_21232450_18285.cpp:2:1: error: stray '\345' in program
0_0_21232450_18285.cpp:2:1: error: stray '\210' in program
0_0_21232450_18285.cpp:2:1: error: stray '\266' in program
0_0_21232450_18285.cpp:2:8: error: stray '#' in program
复制 #include<iostream>
^
0_0_21232450_18285.cpp:2:9: error: 'include' does not name a type
复制 #include<iostream>
^
0_0_21232450_18285.cpp: In function 'int main()':
0_0_21232450_18285.cpp:7:10: error: 'cin' was not declared in this scope
while(cin >> a)
^
0_0_21232450_18285.cpp:8:1: error: 'cout' was not declared in this scope
cout << a*(a+1)/2 << endl;
^
0_0_21232450_18285.cpp:8:22: error: 'endl' was not declared in this scope
cout << a*(a+1)/2 << endl;
^
|