120602024-11-27 12:43:54KissCsongor777Oszthatóság 31-gyelcsharpCompilation error
#include <iostream>

using namespace std;

int main()
{
    int N;
    cin>>N;
    if(N%31==0)cout<<"IGEN "<<endl;
    else cout<<"NEM "<<endl;
    N=N/10-(N%10*3);
    while(N>0)
    {
       cout<<N<<" ";
       N=N/10-(N%10*3);
    }
    if (N==0)cout<<0;
    return 0;
}
Compilation error
open /var/local/lib/isolate/435/box/main.exe: no such file or directory
main.cs(2,0): error CS1024: Wrong preprocessor directive
main.cs(3,6): error CS1525: Unexpected symbol `namespace', expecting `identifier' or `static'
main.cs(3,19): error CS1525: Unexpected symbol `;', expecting `identifier' or `static'
main.cs(7,4): error CS1525: Unexpected symbol `int', expecting `identifier' or `static'
main.cs(14,7): error CS1525: Unexpected symbol `cout', expecting `identifier' or `static'
main.cs(16,5): error CS1514: Unexpected symbol `}', expecting `.' or `{'
Compilation failed: 6 error(s), 0 warnings