Submission #154699


Source Code Expand

#include <iostream>

int main() {
	int n;
	cin >> n;
	
	if (n%3==0) cout << "YES" << endl;
	else cout << "NO" << endl;
	
	return 0;
}

Submission Info

Submission Time
Task A - 世界のFizzBuzz
User tsukasa_diary
Language C++ (G++ 4.6.4)
Score 0
Code Size 143 Byte
Status CE

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:5:2: error: ‘cin’ was not declared in this scope
./Main.cpp:5:2: note: suggested alternative:
/usr/include/c++/4.6/iostream:61:18: note:   ‘std::cin’
./Main.cpp:7:14: error: ‘cout’ was not declared in this scope
./Main.cpp:7:14: note: suggested alternative:
/usr/include/c++/4.6/iostream:62:18: note:   ‘std::cout’
./Main.cpp:7:31: error: ‘endl’ was not declared in this scope
./Main.cpp:7:31: note: suggested alternative:
/usr/include/c++/4.6/ostream:543:5: note:   ‘std::endl’
./Main.cpp:8:7: error: ‘cout’ was not declared in this scope
./Main.cpp:8:7: note: suggested alternative:
/usr/include/c++/4.6/iostream:62:18: note:   ‘std::cout’
./Main.cpp:8:23: error: ‘endl’ was not declared in this scope
./Main.cpp:8:23: note: suggested alternative:
/usr/include/c++/4.6/ostream:543:5: note:   ‘std::endl’