Загрузка данных


 *  Выполнение задачи: C/C++: clang++ сборка активного файла 

Запуск сборки…
/usr/bin/clang++ -std=gnu++14 -fcolor-diagnostics -fansi-escape-codes -g /Users/hellomen/Code/Lab8.cpp -o /Users/hellomen/Code/Lab8
/Users/hellomen/Code/Lab8.cpp:60:23: error: redefinition of 'data' with a different type: 'std::ifstream' (aka 'basic_ifstream<char>') vs 'std::ofstream' (aka 'basic_ofstream<char>')
        std::ifstream data("Students.txt");
                      ^
/Users/hellomen/Code/Lab8.cpp:22:23: note: previous definition is here
        std::ofstream data("Students.txt");
                      ^
/Users/hellomen/Code/Lab8.cpp:65:18: error: redefinition of 'Student'
        Students Student;
                 ^
/Users/hellomen/Code/Lab8.cpp:27:18: note: previous definition is here
        Students Student;
                 ^
/Users/hellomen/Code/Lab8.cpp:67:21: error: invalid operands to binary expression ('std::ofstream' (aka 'basic_ofstream<char>') and 'char[30]')
        while (data >> Student.FIO
               ~~~~ ^  ~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__random/uniform_int_distribution.h:295:1: note: candidate template ignored: could not match 'basic_istream' against 'basic_ofstream'
operator>>(basic_istream<_CharT, _Traits>& __is,
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/istream:607:1: note: candidate template ignored: could not match 'basic_istream' against 'basic_ofstream'
operator>>(basic_istream<_CharT, _Traits>& __is, _CharT* __s)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/istream:618:1: note: candidate template ignored: could not match 'basic_istream' against 'basic_ofstream'
operator>>(basic_istream<char, _Traits>& __is, unsigned char* __s)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/istream:626:1: note: candidate template ignored: could not match 'basic_istream' against 'basic_ofstream'
operator>>(basic_istream<char, _Traits>& __is, signed char* __s)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/istream:635:1: note: candidate template ignored: could not match 'basic_istream' against 'basic_ofstream'
operator>>(basic_istream<_CharT, _Traits>& __is, _CharT& __c)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/istream:670:1: note: candidate template ignored: could not match 'basic_istream' against 'basic_ofstream'
operator>>(basic_istream<char, _Traits>& __is, unsigned char& __c)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/istream:678:1: note: candidate template ignored: could not match 'basic_istream' against 'basic_ofstream'
operator>>(basic_istream<char, _Traits>& __is, signed char& __c)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/istream:1444:1: note: candidate template ignored: could not match 'basic_istream' against 'basic_ofstream'
operator>>(basic_istream<_CharT, _Traits>& __is,
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/istream:1580:1: note: candidate template ignored: could not match 'basic_istream' against 'basic_ofstream'
operator>>(basic_istream<_CharT, _Traits>& __is, bitset<_Size>& __x)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/istream:1384:11: note: candidate template ignored: requirement 'integral_constant<bool, false>::value' was not satisfied [with _Stream = std::ofstream &, _Tp = char (&)[30]]
_Stream&& operator>>(_Stream&& __is, _Tp&& __x)
          ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/iomanip:302:1: note: candidate template ignored: could not match 'basic_istream' against 'basic_ofstream'
operator>>(basic_istream<_CharT, _Traits>& __is, const __iom_t7<_MoneyT>& __x)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/iomanip:421:1: note: candidate template ignored: could not match 'basic_istream' against 'basic_ofstream'
operator>>(basic_istream<_CharT, _Traits>& __is, const __iom_t9<_CharT>& __x)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/iomanip:602:33: note: candidate template ignored: could not match 'basic_istream' against 'basic_ofstream'
basic_istream<_CharT, _Traits>& operator>>(
                                ^
/Users/hellomen/Code/Lab8.cpp:87:23: error: redefinition of 'data'
        std::ofstream data("Students.txt", std::ios::app);
                      ^
/Users/hellomen/Code/Lab8.cpp:22:23: note: previous definition is here
        std::ofstream data("Students.txt");
                      ^
/Users/hellomen/Code/Lab8.cpp:92:18: error: redefinition of 'Student'
        Students Student;
                 ^
/Users/hellomen/Code/Lab8.cpp:27:18: note: previous definition is here
        Students Student;
                 ^
/Users/hellomen/Code/Lab8.cpp:104:13: error: redefinition of 'SumM'
        int SumM=0;
            ^
/Users/hellomen/Code/Lab8.cpp:39:13: note: previous definition is here
        int SumM=0;
            ^
/Users/hellomen/Code/Lab8.cpp:124:23: error: redefinition of 'data'
        std::ofstream data("Students.txt", std::ios::app);
                      ^
/Users/hellomen/Code/Lab8.cpp:22:23: note: previous definition is here
        std::ofstream data("Students.txt");
                      ^
/Users/hellomen/Code/Lab8.cpp:130:18: error: redefinition of 'Student'
        Students Student;
                 ^
/Users/hellomen/Code/Lab8.cpp:27:18: note: previous definition is here
        Students Student;
                 ^
/Users/hellomen/Code/Lab8.cpp:134:21: error: invalid operands to binary expression ('std::ofstream' (aka 'basic_ofstream<char>') and 'char[30]')
        while (data >> Student.FIO
               ~~~~ ^  ~~~~~~~~~~~
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/__random/uniform_int_distribution.h:295:1: note: candidate template ignored: could not match 'basic_istream' against 'basic_ofstream'
operator>>(basic_istream<_CharT, _Traits>& __is,
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/istream:607:1: note: candidate template ignored: could not match 'basic_istream' against 'basic_ofstream'
operator>>(basic_istream<_CharT, _Traits>& __is, _CharT* __s)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/istream:618:1: note: candidate template ignored: could not match 'basic_istream' against 'basic_ofstream'
operator>>(basic_istream<char, _Traits>& __is, unsigned char* __s)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/istream:626:1: note: candidate template ignored: could not match 'basic_istream' against 'basic_ofstream'
operator>>(basic_istream<char, _Traits>& __is, signed char* __s)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/istream:635:1: note: candidate template ignored: could not match 'basic_istream' against 'basic_ofstream'
operator>>(basic_istream<_CharT, _Traits>& __is, _CharT& __c)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/istream:670:1: note: candidate template ignored: could not match 'basic_istream' against 'basic_ofstream'
operator>>(basic_istream<char, _Traits>& __is, unsigned char& __c)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/istream:678:1: note: candidate template ignored: could not match 'basic_istream' against 'basic_ofstream'
operator>>(basic_istream<char, _Traits>& __is, signed char& __c)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/istream:1444:1: note: candidate template ignored: could not match 'basic_istream' against 'basic_ofstream'
operator>>(basic_istream<_CharT, _Traits>& __is,
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/istream:1580:1: note: candidate template ignored: could not match 'basic_istream' against 'basic_ofstream'
operator>>(basic_istream<_CharT, _Traits>& __is, bitset<_Size>& __x)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/istream:1384:11: note: candidate template ignored: requirement 'integral_constant<bool, false>::value' was not satisfied [with _Stream = std::ofstream &, _Tp = char (&)[30]]
_Stream&& operator>>(_Stream&& __is, _Tp&& __x)
          ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/iomanip:302:1: note: candidate template ignored: could not match 'basic_istream' against 'basic_ofstream'
operator>>(basic_istream<_CharT, _Traits>& __is, const __iom_t7<_MoneyT>& __x)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/iomanip:421:1: note: candidate template ignored: could not match 'basic_istream' against 'basic_ofstream'
operator>>(basic_istream<_CharT, _Traits>& __is, const __iom_t9<_CharT>& __x)
^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1/iomanip:602:33: note: candidate template ignored: could not match 'basic_istream' against 'basic_ofstream'
basic_istream<_CharT, _Traits>& operator>>(
                                ^
/Users/hellomen/Code/Lab8.cpp:162:5: error: cannot jump from switch statement to this case label
    default:
    ^
/Users/hellomen/Code/Lab8.cpp:132:14: note: jump bypasses variable initialization
        bool found = false ;
             ^
/Users/hellomen/Code/Lab8.cpp:39:13: note: jump bypasses variable initialization
        int SumM=0;
            ^
/Users/hellomen/Code/Lab8.cpp:22:23: note: jump bypasses variable initialization
        std::ofstream data("Students.txt");
                      ^
/Users/hellomen/Code/Lab8.cpp:123:5: error: cannot jump from switch statement to this case label
    case 4:
    ^
/Users/hellomen/Code/Lab8.cpp:39:13: note: jump bypasses variable initialization
        int SumM=0;
            ^
/Users/hellomen/Code/Lab8.cpp:22:23: note: jump bypasses variable initialization
        std::ofstream data("Students.txt");
                      ^
/Users/hellomen/Code/Lab8.cpp:86:5: error: cannot jump from switch statement to this case label
    case 3:
    ^
/Users/hellomen/Code/Lab8.cpp:39:13: note: jump bypasses variable initialization
        int SumM=0;
            ^
/Users/hellomen/Code/Lab8.cpp:22:23: note: jump bypasses variable initialization
        std::ofstream data("Students.txt");
                      ^
/Users/hellomen/Code/Lab8.cpp:59:5: error: cannot jump from switch statement to this case label
    case 2:
    ^
/Users/hellomen/Code/Lab8.cpp:39:13: note: jump bypasses variable initialization
        int SumM=0;
            ^
/Users/hellomen/Code/Lab8.cpp:22:23: note: jump bypasses variable initialization
        std::ofstream data("Students.txt");
                      ^
13 errors generated.

Сборка завершена с ошибками.

 *  Процесс терминала завершен с кодом выхода: -1. 
 *  Терминал будет повторно использоваться задачами. Чтобы закрыть его, нажмите любую клавишу.