fork download
  1. #include<iostream>
  2. using namespace std;
  3. int n[500],a;
  4. int main()
  5. {
  6. cin>>a;
  7. if (n%a==3)
  8. cout<<"TAK"endl;
  9. else
  10. cout<<"NIE"<<endl;
  11. return 0;
  12. }
  13.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
7
1 2 7 2 -6 1 2
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:7:10: error: invalid operands of types ‘int [500]’ and ‘int’ to binary ‘operator%’
     if (n%a==3)
         ~^~
prog.cpp:8:11: error: unable to find string literal operator ‘operator""endl’ with ‘const char [4]’, ‘long unsigned int’ arguments
     cout<<"TAK"endl;
           ^~~~~~~~~
stdout
Standard output is empty