# Thread: I need help on Array Question.

1. ## I need help on Array Question.

Code:
```My exercise question is:
Write a program that takes in the students' marks - full marks is 100 (Test 1, Test 2 and Final). After that it will display the total marks and average marks that they get. Use array to solve your problem. Display the final result in the form of:

Student        Test1    Test2    Final     Total     Average
1
2
3

My solution is:
#include<iostream>
#include<iomanip>

using namespace std;

void sum(const int list1[], const int list2[], const int list3[], int list4[], int size)
{
for (int i=0 ; i<size ; i++)
{
[I]         list4[i] = list1[i] + list2[i] + list3;
}

return;
}

void avrg(int list4[], double list5[], int size)
{
for (int i=0 ; i<size ; i++)
{
[I]         list5[i] = list4/3;
}

return;
}

int main()
{
int size=0;
int test1[size], test2[size], final[size], total[size];
double average[size];

cout << "Enter the number of student: ";
cin >> size;
cout << endl;
cout << "Enter the mark for Test 1 of each student: \n";

for (int i=0 ; i<size ; i++)
{
cout << "Student[" << i+1 << "]: ";
[I]        cin >> test1;
}

cout << endl;
cout << "Enter the mark for Test 2 of each student: \n";

for (int i=0 ; i<size ; i++)
{
cout << "Student[" << i+1 << "]: ";
[I]        cin >> test2;
}

cout << endl;
cout << "Enter the mark for Final Test of each student: \n";

for (int i=0 ; i<size ; i++)
{
cout << "Student[" << i+1 << "]: ";
[I]        cin >> final;
}

sum(test1,test2,final,total,size);
avrg(total,average,size);

cout << endl;

cout << "Student" << setw(7) << right << "Test1" << setw(7) << "Test2" <<
setw(7) << "Final" << setw(7) << "Total" << setw(9) << "Average\n";

for (int i=0 ; i<size ; i++)
{
[I]        cout << setw(7) << left << i+1 << setw(7) << right << test1 << setw(7) <<
[I]        test2[i] << setw(7) << final[i] << setw(7) << total << setw(9) << fixed <<
[I]        setprecision(2) << average << endl;
}

system("pause");
return 0;
}

but i get the result appear some unwanted number inside the program.

Who can help me?```

2. That code will not produce the output you have shown.

The code, in fact, will not compile. All of the lines you have marked with [i] are invalid. An array of integers cannot be added to an integer. An array of int cannot be fed directly to a stream.

3. But i have successfully compile it. So i just can capture the picture above.
so as you see. what correction should i make it?

4. Originally Posted by edwinleehs
But i have successfully compile it.
What?
If you've successfully compiled this
"[I] list5[i] = list4/3; "
sort of code ..
you are using a compiler from Naboo (2^64 points to those who fully get this..)

5. I not really understand. But i know i'm using GNU compliler.
I wan to know why the total marks for student 1 and 2 will not get the actual value?

6. Originally Posted by edwinleehs
But i know i'm using GNU compliler.
Really? .. me too..
[manasij7479@manasijn ~]\$ g++ a.cpp -o a -Wall -std=c++0x
a.cpp: In function ‘void sum(const int*, const int*, const int*, int*, int)’:
a.cpp:10:2: error: ‘I’ was not declared in this scope
a.cpp: In lambda function:
a.cpp:10:13: error: expected ‘{’ before ‘list4’
a.cpp: In function ‘void sum(const int*, const int*, const int*, int*, int)’:
a.cpp:10:13: error: expected ‘;’ before ‘list4’
a.cpp: In function ‘void avrg(int*, double*, int)’:
a.cpp:20:2: error: ‘I’ was not declared in this scope
a.cpp: In lambda function:
a.cpp:20:13: error: expected ‘{’ before ‘list5’
a.cpp: In function ‘void avrg(int*, double*, int)’:
a.cpp:20:13: error: expected ‘;’ before ‘list5’
a.cpp: In function ‘int main()’:
a.cpp:40:2: error: ‘I’ was not declared in this scope
a.cpp: In lambda function:
a.cpp:40:12: error: expected ‘{’ before ‘cin’
a.cpp: In function ‘int main()’:
a.cpp:40:12: error: expected ‘;’ before ‘cin’
a.cpp:49:2: error: ‘I’ was not declared in this scope
a.cpp: In lambda function:
a.cpp:49:12: error: expected ‘{’ before ‘cin’
a.cpp: In function ‘int main()’:
a.cpp:49:12: error: expected ‘;’ before ‘cin’
a.cpp:58:2: error: ‘I’ was not declared in this scope
a.cpp: In lambda function:
a.cpp:58:12: error: expected ‘{’ before ‘cin’
a.cpp: In function ‘int main()’:
a.cpp:58:12: error: expected ‘;’ before ‘cin’
a.cpp:71:2: error: ‘I’ was not declared in this scope
a.cpp: In lambda function:
a.cpp:71:12: error: expected ‘{’ before ‘cout’
a.cpp: In function ‘int main()’:
a.cpp:71:12: error: expected ‘;’ before ‘cout’

7. actually the [I] is not over there. just delete it.
mine one can compiler. no syntax error but the result is not correct only.
Headache now...tomorrow wanna hand up the assignment already.

8. If that successfully compiles, you really need to update your router. How are you adding entire arrays to integers? And what's with declaring an array with 0 members.

EDIT:: LOL I SAID ROUTER. compiler*. Sorry, I'm busy with network stuff right now.

9. Originally Posted by edwinleehs
actually the [I] is not over there. just delete it.
mine one can compiler. no syntax error but the result is not correct only.
Headache now...tomorrow wanna hand up the assignment already.
Okay.. even with those removed..

Code:
```\$ g++ a.cpp -o a -Wall -std=c++0x
a.cpp: In function ‘void sum(const int*, const int*, const int*, int*, int)’:
a.cpp:10:43: error: invalid conversion from ‘const int*’ to ‘int’ [-fpermissive]
a.cpp: In function ‘void avrg(int*, double*, int)’:
a.cpp:20:27: error: invalid operands of types ‘int*’ and ‘int’ to binary ‘operator/’
a.cpp: In function ‘int main()’:
a.cpp:40:16: error: no match for ‘operator>>’ in ‘std::cin >> test1’
a.cpp:40:16: note: candidates are:
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:122:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::basic_istream<_CharT, _Traits>::__istream_type& (*)(std::basic_istream<_CharT, _Traits>::__istream_type&)) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:122:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘std::basic_istream<char>::__istream_type& (*)(std::basic_istream<char>::__istream_type&) {aka std::basic_istream<char>& (*)(std::basic_istream<char>&)}’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:126:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::basic_istream<_CharT, _Traits>::__ios_type& (*)(std::basic_istream<_CharT, _Traits>::__ios_type&)) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>, std::basic_istream<_CharT, _Traits>::__ios_type = std::basic_ios<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:126:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘std::basic_istream<char>::__ios_type& (*)(std::basic_istream<char>::__ios_type&) {aka std::basic_ios<char>& (*)(std::basic_ios<char>&)}’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:133:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::ios_base& (*)(std::ios_base&)) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:133:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘std::ios_base& (*)(std::ios_base&)’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:169:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(bool&) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:169:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘bool&’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:173:7: note: std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(short int&) [with _CharT = char, _Traits = std::char_traits<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:173:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘short int&’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:176:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(short unsigned int&) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:176:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘short unsigned int&’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:180:7: note: std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(int&) [with _CharT = char, _Traits = std::char_traits<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:180:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘int&’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:183:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(unsigned int&) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:183:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘unsigned int&’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:187:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long int&) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:187:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘long int&’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:191:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long unsigned int&) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:191:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘long unsigned int&’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:196:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long int&) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:196:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘long long int&’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:200:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long unsigned int&) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:200:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘long long unsigned int&’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:205:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(float&) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:205:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘float&’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:209:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(double&) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:209:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘double&’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:213:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long double&) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:213:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘long double&’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:217:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(void*&) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:217:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘void*&’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:241:7: note: std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(std::basic_istream<_CharT, _Traits>::__streambuf_type*) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__streambuf_type = std::basic_streambuf<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:241:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘std::basic_istream<char>::__streambuf_type* {aka std::basic_streambuf<char>*}’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/bits/basic_string.tcc:998:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::basic_string<_CharT, _Traits, _Alloc>&)
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/bits/istream.tcc:957:5: note: template<class _CharT2, class _Traits2> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT2*)
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/bits/istream.tcc:925:5: note: template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT&)
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:709:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char&)
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:714:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char&)
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:756:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char*)
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:761:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char*)
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:852:5: note: template<class _CharT, class _Traits, class _Tp> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&&, _Tp&)
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/iomanip:70:5: note: template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::_Resetiosflags)
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/iomanip:100:5: note: template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::_Setiosflags)
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/iomanip:131:5: note: template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::_Setbase)
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/iomanip:169:5: note: template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::_Setfill<_CharT>)
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/iomanip:199:5: note: template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::_Setprecision)
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/iomanip:229:5: note: template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::_Setw)
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/iomanip:263:5: note: template<class _CharT, class _Traits, class _MoneyT> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::_Get_money<_MoneyT>)
a.cpp:49:16: error: no match for ‘operator>>’ in ‘std::cin >> test2’
a.cpp:49:16: note: candidates are:
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:122:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::basic_istream<_CharT, _Traits>::__istream_type& (*)(std::basic_istream<_CharT, _Traits>::__istream_type&)) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:122:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘std::basic_istream<char>::__istream_type& (*)(std::basic_istream<char>::__istream_type&) {aka std::basic_istream<char>& (*)(std::basic_istream<char>&)}’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:126:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::basic_istream<_CharT, _Traits>::__ios_type& (*)(std::basic_istream<_CharT, _Traits>::__ios_type&)) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>, std::basic_istream<_CharT, _Traits>::__ios_type = std::basic_ios<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:126:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘std::basic_istream<char>::__ios_type& (*)(std::basic_istream<char>::__ios_type&) {aka std::basic_ios<char>& (*)(std::basic_ios<char>&)}’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:133:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::ios_base& (*)(std::ios_base&)) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:133:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘std::ios_base& (*)(std::ios_base&)’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:169:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(bool&) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:169:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘bool&’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:173:7: note: std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(short int&) [with _CharT = char, _Traits = std::char_traits<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:173:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘short int&’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:176:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(short unsigned int&) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:176:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘short unsigned int&’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:180:7: note: std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(int&) [with _CharT = char, _Traits = std::char_traits<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:180:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘int&’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:183:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(unsigned int&) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:183:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘unsigned int&’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:187:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long int&) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:187:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘long int&’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:191:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long unsigned int&) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:191:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘long unsigned int&’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:196:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long int&) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:196:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘long long int&’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:200:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long unsigned int&) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:200:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘long long unsigned int&’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:205:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(float&) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:205:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘float&’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:209:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(double&) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:209:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘double&’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:213:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long double&) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:213:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘long double&’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:217:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(void*&) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:217:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘void*&’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:241:7: note: std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(std::basic_istream<_CharT, _Traits>::__streambuf_type*) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__streambuf_type = std::basic_streambuf<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:241:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘std::basic_istream<char>::__streambuf_type* {aka std::basic_streambuf<char>*}’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/bits/basic_string.tcc:998:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::basic_string<_CharT, _Traits, _Alloc>&)
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/bits/istream.tcc:957:5: note: template<class _CharT2, class _Traits2> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT2*)
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/bits/istream.tcc:925:5: note: template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT&)
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:709:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char&)
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:714:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char&)
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:756:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char*)
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:761:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char*)
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:852:5: note: template<class _CharT, class _Traits, class _Tp> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&&, _Tp&)
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/iomanip:70:5: note: template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::_Resetiosflags)
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/iomanip:100:5: note: template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::_Setiosflags)
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/iomanip:131:5: note: template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::_Setbase)
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/iomanip:169:5: note: template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::_Setfill<_CharT>)
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/iomanip:199:5: note: template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::_Setprecision)
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/iomanip:229:5: note: template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::_Setw)
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/iomanip:263:5: note: template<class _CharT, class _Traits, class _MoneyT> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::_Get_money<_MoneyT>)
a.cpp:58:16: error: no match for ‘operator>>’ in ‘std::cin >> final’
a.cpp:58:16: note: candidates are:
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:122:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::basic_istream<_CharT, _Traits>::__istream_type& (*)(std::basic_istream<_CharT, _Traits>::__istream_type&)) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:122:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘std::basic_istream<char>::__istream_type& (*)(std::basic_istream<char>::__istream_type&) {aka std::basic_istream<char>& (*)(std::basic_istream<char>&)}’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:126:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::basic_istream<_CharT, _Traits>::__ios_type& (*)(std::basic_istream<_CharT, _Traits>::__ios_type&)) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>, std::basic_istream<_CharT, _Traits>::__ios_type = std::basic_ios<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:126:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘std::basic_istream<char>::__ios_type& (*)(std::basic_istream<char>::__ios_type&) {aka std::basic_ios<char>& (*)(std::basic_ios<char>&)}’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:133:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(std::ios_base& (*)(std::ios_base&)) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:133:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘std::ios_base& (*)(std::ios_base&)’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:169:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(bool&) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:169:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘bool&’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:173:7: note: std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(short int&) [with _CharT = char, _Traits = std::char_traits<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:173:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘short int&’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:176:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(short unsigned int&) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:176:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘short unsigned int&’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:180:7: note: std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(int&) [with _CharT = char, _Traits = std::char_traits<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:180:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘int&’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:183:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(unsigned int&) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:183:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘unsigned int&’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:187:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long int&) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:187:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘long int&’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:191:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long unsigned int&) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:191:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘long unsigned int&’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:196:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long int&) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:196:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘long long int&’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:200:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long long unsigned int&) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:200:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘long long unsigned int&’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:205:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(float&) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:205:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘float&’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:209:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(double&) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:209:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘double&’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:213:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(long double&) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:213:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘long double&’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:217:7: note: std::basic_istream<_CharT, _Traits>::__istream_type& std::basic_istream<_CharT, _Traits>::operator>>(void*&) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__istream_type = std::basic_istream<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:217:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘void*&’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:241:7: note: std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(std::basic_istream<_CharT, _Traits>::__streambuf_type*) [with _CharT = char, _Traits = std::char_traits<char>, std::basic_istream<_CharT, _Traits>::__streambuf_type = std::basic_streambuf<char>]
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:241:7: note:   no known conversion for argument 1 from ‘int [(((unsigned int)(((int)size) + -0x000000001)) + 1)]’ to ‘std::basic_istream<char>::__streambuf_type* {aka std::basic_streambuf<char>*}’
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/bits/basic_string.tcc:998:5: note: template<class _CharT, class _Traits, class _Alloc> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::basic_string<_CharT, _Traits, _Alloc>&)
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/bits/istream.tcc:957:5: note: template<class _CharT2, class _Traits2> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT2*)
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/bits/istream.tcc:925:5: note: template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, _CharT&)
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:709:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char&)
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:714:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char&)
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:756:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, unsigned char*)
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:761:5: note: template<class _Traits> std::basic_istream<char, _Traits>& std::operator>>(std::basic_istream<char, _Traits>&, signed char*)
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/istream:852:5: note: template<class _CharT, class _Traits, class _Tp> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&&, _Tp&)
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/iomanip:70:5: note: template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::_Resetiosflags)
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/iomanip:100:5: note: template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::_Setiosflags)
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/iomanip:131:5: note: template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::_Setbase)
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/iomanip:169:5: note: template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::_Setfill<_CharT>)
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/iomanip:199:5: note: template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::_Setprecision)
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/iomanip:229:5: note: template<class _CharT, class _Traits> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::_Setw)
/usr/lib/gcc/i686-redhat-linux/4.6.2/../../../../include/c++/4.6.2/iomanip:263:5: note: template<class _CharT, class _Traits, class _MoneyT> std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&, std::_Get_money<_MoneyT>)```
Now.. are you convinced that it is a bad idea to copy-paste code on the last day ?

Popular pages Recent additions